← Run 20261123-054124-b1c49f32
Pre-Q4 tracking audit against the documented standards
task tracking-auditNov 23, 2026skill analytics

Answers & verdicts

Gemini 4 Neon medium effort

Task failed
Task the exact prompt the model was given — assignment, source material, and skill guidance
Loam & Ledger (DTC home goods, Shopify, GA4 via GTM, Meta/Google/TikTok/Klaviyo) has engaged you to audit their tracking before Q4 budgets unlock. You are supplied their documented measurement standards, the full list of live campaign links, a summary of the GTM container, and a memo of unexplained symptoms. Deliver the audit report. For every defect you find: name exactly where it is (which link, tag, trigger, or setting), why it is wrong (against the standards or against correct measurement practice), the measurement or compliance impact — connecting it to the reported symptoms where the evidence supports it — and the concrete fix. Order findings by impact. Close with a short list of what you checked and found clean, so the team knows what they can trust. Flag only real defects: do not pad the report by flagging conforming items. This is an audit document for internal review; change nothing and fetch nothing external. --- ## Supplied source: tracking_standards.md # Loam & Ledger — Measurement Standards (v3, agreed 2026-01) These conventions are the contract between marketing, the web team, and finance. Every live link and every tag change is supposed to conform. ## UTM conventions - All UTM parameter values are **lowercase**, always. - `utm_source` is the platform: `google`, `meta`, `klaviyo`, `tiktok`, `pinterest`, or the partner site's domain for affiliates. (Historical note: we standardized on `meta` — not `facebook` — in v2.) - `utm_medium` is one of exactly: `cpc`, `paidsocial`, `email`, `affiliate`, `organicsocial`. - `utm_campaign` format: `<year>q<quarter>-<line>-<goal>`, hyphen-separated, no spaces, e.g. `2026q3-linen-prospecting`. Campaigns run for the `ca.` storefront append the market suffix `-ca` (e.g. `2026q3-linen-prospecting-ca`). - Every parameter appears at most once per URL. - All destination URLs are `https://` on `www.loamandledger.com` (or the `ca.` storefront). ## GA4 / GTM conventions - GA4 event names are `snake_case` (`begin_checkout`, `add_to_cart`). - Exactly **one** `purchase` event fires per order, on the order confirmation page only, carrying `transaction_id`, `value`, `currency`, and `items`. - `currency` reflects the order's actual currency. The `ca.` storefront transacts in CAD. - Ecommerce values are order totals net of tax and shipping. ## Consent (Consent Mode v2) - Defaults for visitors in the EEA/UK: `analytics_storage: denied` and `ad_storage: denied` until the banner grants them. - Defaults elsewhere: both granted. - Tags must respect consent state; no consent-exempt duplicates. --- ## Supplied source: active_links.csv channel,destination_url,notes google-search,https://www.loamandledger.com/collections/linen?utm_source=google&utm_medium=CPC&utm_campaign=2026q3-linen-prospecting,brand + non-brand search google-search,https://www.loamandledger.com/collections/ceramics?utm_source=google&utm_medium=CPC&utm_campaign=2026q3-ceramics-prospecting,non-brand search google-pmax,https://www.loamandledger.com/collections/new?utm_source=google&utm_medium=CPC&utm_campaign=2026q3-newin-pmax,performance max google-brand,https://www.loamandledger.com/?utm_source=google&utm_medium=cpc&utm_campaign=2026q3-brand-defense,brand exact meta-prospecting,https://www.loamandledger.com/collections/linen?utm_source=facebook&utm_medium=paidsocial&utm_campaign=2026q3-linen-prospecting,advantage+ audience meta-prospecting,https://www.loamandledger.com/collections/table?utm_source=meta&utm_medium=paidsocial&utm_campaign=2026q3-table-prospecting,interest stack meta-retargeting,https://www.loamandledger.com/collections/bestsellers?utm_source=facebook&utm_medium=paidsocial&utm_campaign=2026q3-bestsellers-retargeting,site visitors 30d meta-retargeting,https://www.loamandledger.com/cart?utm_source=meta&utm_medium=paidsocial&utm_campaign=2026q3-cart-recovery&utm_campaign=cart_recovery,cart abandoners 7d meta-summer,https://www.loamandledger.com/collections/summer?utm_source=meta&utm_medium=paidsocial&utm_campaign=2026q3 summer sale,seasonal push landing tiktok-prospecting,https://www.loamandledger.com/collections/linen?utm_source=tiktok&utm_medium=paidsocial&utm_campaign=2026q3-linen-spark,spark ads tiktok-prospecting,https://www.loamandledger.com/collections/ceramics?utm_source=tiktok&utm_medium=paidsocial&utm_campaign=2026q3-ceramics-spark,spark ads klaviyo-newsletter,http://www.loamandledger.com/collections/new?utm_source=klaviyo&utm_medium=email&utm_campaign=2026q3-weekly-newsletter,weekly send klaviyo-newsletter,http://www.loamandledger.com/collections/bestsellers?utm_source=klaviyo&utm_medium=email&utm_campaign=2026q3-weekly-newsletter,weekly send alt hero klaviyo-welcome,https://www.loamandledger.com/collections/starter?utm_medium=email&utm_campaign=2026q3-welcome-flow,welcome series step 2 klaviyo-winback,https://www.loamandledger.com/collections/new?utm_source=klaviyo&utm_medium=email&utm_campaign=2026q3-winback-flow,lapsed 120d pinterest-prospecting,https://www.loamandledger.com/collections/table?utm_source=pinterest&utm_medium=paidsocial&utm_campaign=2026q3-table-pins,standard pins affiliate-domesticnotes,https://www.loamandledger.com/collections/linen?utm_source=domesticnotes.com&utm_medium=affiliate&utm_campaign=2026q3-linen-roundup,editorial roundup affiliate-hearthreview,https://www.loamandledger.com/collections/ceramics?utm_source=hearthreview.com&utm_medium=affiliate&utm_campaign=2026q3-ceramics-review,review placement ca-google-search,https://ca.loamandledger.com/collections/linen?utm_source=google&utm_medium=cpc&utm_campaign=2026q3-linen-prospecting-ca,canadian storefront ca-meta-prospecting,https://ca.loamandledger.com/collections/linen?utm_source=meta&utm_medium=paidsocial&utm_campaign=2026q3-linen-prospecting-ca,canadian storefront organic-instagram,https://www.loamandledger.com/collections/new?utm_source=instagram&utm_medium=organicsocial&utm_campaign=2026q3-ig-bio,link in bio organic-pinterest,https://www.loamandledger.com/collections/table?utm_source=pinterest&utm_medium=organicsocial&utm_campaign=2026q3-boards,board links --- ## Supplied source: gtm_ga4_setup.md # GTM container `GTM-K4WPD2` — current configuration summary Exported from the container as of 2026-08-20. One web container serves both `www.loamandledger.com` and `ca.loamandledger.com`. ## Tags **1. GA4 Configuration — `G-8B21XQ4`** - Trigger: Initialization — All Pages - Fields: `send_page_view: true` - Notes: none **2. GA4 Event — `purchase` (confirmation page)** - Trigger: Page View where Page Path matches RegEx `^/order-confirmation` - Parameters: `value: {{DLV - order_total}}`, `currency: "USD"`, `items: {{DLV - items}}` - Notes: order_total is net of tax/shipping per finance's request **3. GA4 Event — `purchase` (checkout button)** - Trigger: Click — All Elements, matching CSS selector `#place-order-btn` - Parameters: `value: {{DLV - order_total}}`, `currency: "USD"` - Notes: added 2026-06 "as a backup while debugging Safari losses" — still live **4. GA4 Event — `Add to Cart`** - Trigger: Custom Event `add_to_cart_clicked` (from the theme) - Parameters: `items: {{DLV - items}}`, `value: {{DLV - line_value}}` - Notes: renamed from `add_to_cart` during the theme migration "for readability" **5. GA4 Event — `begin_checkout`** - Trigger: Page View where Page Path equals `/checkout` - Parameters: `value: {{DLV - cart_total}}`, `currency: {{DLV - currency}}`, `items: {{DLV - items}}` - Notes: none **6. Meta Pixel — base + purchase** - Base code: All Pages. Purchase event: same RegEx trigger as tag 2. - Purchase parameters: `value: {{DLV - order_total}}`, `currency: "USD"` ## Consent initialization (Consent Mode v2) Set via a consent-initialization tag, before all others: | Region | analytics_storage | ad_storage | |---|---|---| | Default (everywhere) | `granted` | `granted` | | EEA + UK | `granted` | `denied` | The cookie banner (Cookiebot) updates both to `granted` on accept. ## Site structure notes (from the web team) - Order confirmation renders at `/order-confirmation` once payment settles. - If payment is still processing (common for Interac and some PayPal flows), the buyer first lands on `/order-confirmation-pending`, which reloads into `/order-confirmation` when the payment settles — or into `/payment-failed`. - The `ca.` storefront shares the same theme, templates, and container; carts and orders there are in CAD. --- ## Supplied source: analytics_notes.md # Symptoms we can't explain — running memo (head of growth, 2026-08-18) Collected ahead of the Q4 scale-up. These are observations, not diagnoses. - **Purchase counts disagree everywhere.** Last full week: Shopify says 284 orders, GA4 reports 512 purchases, Meta Ads Manager claims 205. GA4 being ~80% above Shopify is new since early June. - **GA4 shows purchases on days with payment incidents.** On 2026-08-04 the payment provider had an outage window; Shopify shows a dip, GA4 barely does. Finance also notes GA4 "revenue" ran ahead of settled revenue that week. - **Email looks broken in GA4.** Klaviyo says the weekly newsletter drives solid clicks, but GA4 session acquisition shows almost none of it — the sessions appear under Direct. Flows (welcome, winback) attribute fine. - **Canadian revenue looks inflated.** Finance says GA4's CAD-storefront revenue reads roughly a third higher than settled CAD revenue converted at book rates. US-storefront revenue reconciles fine. - **Paid search splits oddly.** GA4 shows two separate row groups for what should be one Google Ads channel; the media buyer swears nothing changed in the account. - **Add-to-cart reporting went quiet.** The add-to-cart exploration the CRO agency built in May shows near-zero events since the theme migration, but the site converts normally. - **Legal flagged us.** Outside counsel's privacy review says our analytics cookies are being set for EU visitors before any banner interaction. We told them we run Consent Mode; they stand by the finding. - **Cart recovery reporting is unreadable.** The cart-recovery campaign shows up under two different campaign names in GA4 depending on the report. Deliverable we asked for: a full audit of links + container before Q4 budgets unlock. Please state what you checked and found clean, too — we need to know what's trustworthy, not just what's broken. --- ## Skill guidance you should follow --- name: analytics description: "Set up or audit tracking — GA4, GTM, Mixpanel, Segment; tracking plans, event naming, UTM conventions, conversion and attribution debugging. Rate metrics divide matching closed windows — never full-period spend by partial-period results; a defect is observed, the symptom it would explain is a hypothesis until the data shows the mechanism." metadata: version: 2.3.2 --- # Analytics Tracking You are an expert in analytics implementation and measurement. Your goal is to help set up tracking that provides actionable insights for marketing and product decisions. ## Initial Assessment **Check for product marketing context first:** If `.agents/product-marketing.md` exists (or `.claude/product-marketing.md`, or the legacy `product-marketing-context.md` filename, in older setups), read it before asking questions. Use that context and only ask for information not already covered or specific to this task. **Apply the project's brand:** If `BRAND.md` exists, read it before asking questions and apply it to everything you produce — its voice, messaging, and audience for anything written, and its colors, typography, and logo for anything visual. Never ask for a brand fact it already answers. If it lacks something you need, name the missing fact instead of inventing one or quietly falling back to a generic default. **Use the numbers the brand has already connected:** If `INTEGRATIONS.md` has a `## Data` section, the connected sources' daily numbers are stored under `data/<source>/<property>/` (Google Analytics and Google Ads back two years, Search Console 16 months). Read them (`magister-analytics-read`) for the current numbers and the matching earlier period before you ask the user for numbers or recommend a change. Before implementing tracking, understand: 1. **Business Context** - What decisions will this data inform? What are key conversions? 2. **Current State** - What tracking exists? What tools are in use? 3. **Technical Context** - What's the tech stack? Any privacy/compliance requirements? --- ## Core Principles ### 1. Track for Decisions, Not Data - Every event should inform a decision - Avoid vanity metrics - Quality > quantity of events ### 2. Start with the Questions - What do you need to know? - What actions will you take based on this data? - Work backwards to what you need to track ### 3. Name Things Consistently - Naming conventions matter - Establish patterns before implementing - Document everything ### 4. Maintain Data Quality - Validate implementation - Monitor for issues - Clean data > more data ### 5. Compute, Don't Eyeball - Derive every total, rate, and delta from row-level data with a script or spreadsheet — never by scanning rows and summing mentally. One silently dropped row corrupts every figure downstream of it. - Cross-check each headline figure a second, independent way (a reconciliation total, a recomputation from a different grouping) before reporting it, and chase any mismatch to the exact row. - When a claim is about one segment — a single campaign, ad set, channel, or week — report that segment's own numbers. Never fold it into a neighboring group and let the group's total speak for it. ### 6. Match Observation Windows - A rate or efficiency metric divides a numerator and denominator that cover the same closed observation window. Never divide a full period's spend by a partial period's conversions or revenue — restate both over the weeks that actually have data, and say which weeks those are. - Cohort rates use only cohorts whose observation window has ended. A trial or signup still inside its window is pending, not failed — exclude it from the denominator and label it as pending rather than counting it against the rate. ### 7. Recommend Against the Stated Goal - Analysis ends in a recommendation, and the recommendation must be argued from the goal the brief states — the launch target, audience, revenue, or positioning objective — not only from what is operationally easiest. Name which stated goal each option serves and what it trades away. ### 8. Findings Are Observed, Causes Are Hypotheses - A defect is what you can point at: the link, tag, trigger, setting, or row that breaks a documented standard or correct measurement practice. Report it as a finding with its location and the standard it breaks. - The symptom a defect would explain — a dip, a gap between two tools, a conversion count that looks wrong — is a hypothesis until the data shows the mechanism. Write "consistent with" or "would explain", name what would confirm it (a date range to compare, a tag to fire in debug mode, a report to pull), and never state the cause as settled fact. - Something is clean only when it meets every documented standard. An item that is "fine subject to a note" belongs with the findings, not the clean list. The check is a matrix, item by standard, where the standards include every allowed-value list the documentation gives (the permitted `utm_source` values, the permitted mediums, the host list): a value that is well-formed but not on its list fails that standard, and the item goes to the findings. Build the matrix with a script when there are more than a handful of items; "all have https, correct hosts, lowercase values" is not a matrix. --- ## Tracking Plan Framework ### Structure ``` Event Name | Category | Properties | Trigger | Notes ---------- | -------- | ---------- | ------- | ----- ``` ### Event Types | Type | Examples | |------|----------| | Pageviews | Automatic, enhanced with metadata | | User Actions | Button clicks, form submissions, feature usage | | System Events | Signup completed, purchase, subscription changed | | Custom Conversions | Goal completions, funnel stages | **For comprehensive event lists**: See [references/event-library.md](references/event-library.md) --- ## Event Naming Conventions ### Recommended Format: Object-Action ``` signup_completed button_clicked form_submitted article_read checkout_payment_completed ``` ### Best Practices - Lowercase with underscores - Be specific: `cta_hero_clicked` vs. `button_clicked` - Include context in properties, not event name - Avoid spaces and special characters - Document decisions --- ## Essential Events ### Marketing Site | Event | Properties | |-------|------------| | cta_clicked | button_text, location | | form_submitted | form_type | | signup_completed | method, source | | demo_requested | - | ### Product/App | Event | Properties | |-------|------------| | onboarding_step_completed | step_number, step_name | | feature_used | feature_name | | purchase_completed | plan, value | | subscription_cancelled | reason | **For full event library by business type**: See [references/event-library.md](references/event-library.md) --- ## Event Properties ### Standard Properties | Category | Properties | |----------|------------| | Page | page_title, page_location, page_referrer | | User | user_id, user_type, account_id, plan_type | | Campaign | source, medium, campaign, content, term | | Product | product_id, product_name, category, price | ### Best Practices - Use consistent property names - Include relevant context - Don't duplicate automatic properties - Avoid PII in properties --- ## GA4 Implementation ### Quick Setup 1. Create GA4 property and data stream 2. Install gtag.js or GTM 3. Enable enhanced measurement 4. Configure custom events 5. Mark conversions in Admin ### Custom Event Example ```javascript gtag('event', 'signup_completed', { 'method': 'email', 'plan': 'free' }); ``` **For detailed GA4 implementation**: See [references/ga4-implementation.md](references/ga4-implementation.md) --- ## Google Tag Manager ### Container Structure | Component | Purpose | |-----------|---------| | Tags | Code that executes (GA4, pixels) | | Triggers | When tags fire (page view, click) | | Variables | Dynamic values (click text, data layer) | ### Data Layer Pattern ```javascript dataLayer.push({ 'event': 'form_submitted', 'form_name': 'contact', 'form_location': 'footer' }); ``` **For detailed GTM implementation**: See [references/gtm-implementation.md](references/gtm-implementation.md) --- ## UTM Parameter Strategy ### Standard Parameters | Parameter | Purpose | Example | |-----------|---------|---------| | utm_source | Traffic source | google, newsletter | | utm_medium | Marketing medium | cpc, email, social | | utm_campaign | Campaign name | spring_sale | | utm_content | Differentiate versions | hero_cta | | utm_term | Paid search keywords | running+shoes | ### Naming Conventions - Lowercase everything - Use underscores or hyphens consistently - Be specific but concise: `blog_footer_cta`, not `cta1` - Document all UTMs in a spreadsheet --- ## Debugging and Validation ### Testing Tools | Tool | Use For | |------|---------| | GA4 DebugView | Real-time event monitoring | | GTM Preview Mode | Test triggers before publish | | Browser Extensions | Tag Assistant, dataLayer Inspector | ### Validation Checklist - [ ] Events firing on correct triggers - [ ] Property values populating correctly - [ ] No duplicate events - [ ] Works across browsers and mobile - [ ] Conversions recorded correctly - [ ] No PII leaking ### Common Issues | Issue | Check | |-------|-------| | Events not firing | Trigger config, GTM loaded | | Wrong values | Variable path, data layer structure | | Duplicate events | Multiple containers, trigger firing twice | --- ## Privacy and Compliance ### Considerations - Cookie consent required in EU/UK/CA - No PII in analytics properties - Data retention settings - User deletion capabilities ### Implementation - Use consent mode (wait for consent) - IP anonymization - Only collect what you need - Integrate with consent management platform --- ## Output Format ### Tracking Plan Document ```markdown # [Site/Product] Tracking Plan ## Overview - Tools: GA4, GTM - Last updated: [Date] ## Events | Event Name | Description | Properties | Trigger | |------------|-------------|------------|---------| | signup_completed | User completes signup | method, plan | Success page | ## Custom Dimensions | Name | Scope | Parameter | |------|-------|-----------| | user_type | User | user_type | ## Conversions | Conversion | Event | Counting | |------------|-------|----------| | Signup | signup_completed | Once per session | ``` --- ## Task-Specific Questions 1. What tools are you using (GA4, Mixpanel, etc.)? 2. What key actions do you want to track? 3. What decisions will this data inform? 4. Who implements - dev team or marketing? 5. Are there privacy/consent requirements? 6. What's already tracked? --- ## Tool Integrations For implementation, see the [tools registry](../../tools/REGISTRY.md). Key analytics tools: | Tool | Best For | MCP | Guide | |------|----------|:---:|-------| | **GA4** | Web analytics, Google ecosystem | ✓ | [ga4.md](../../tools/integrations/ga4.md) | | **Mixpanel** | Product analytics, event tracking | - | [mixpanel.md](../../tools/integrations/mixpanel.md) | | **Amplitude** | Product analytics, cohort analysis | - | [amplitude.md](../../tools/integrations/amplitude.md) | | **PostHog** | Open-source analytics, session replay | - | [posthog.md](../../tools/integrations/posthog.md) | | **Segment** | Customer data platform, routing | - | [segment.md](../../tools/integrations/segment.md) | --- ## Related Skills - **ab-testing**: For experiment tracking - **seo-audit**: For organic traffic analysis - **cro**: For conversion optimization (uses this data) - **revops**: For pipeline metrics, CRM tracking, and revenue attribution
Answer the model's full response$0.29 · 141.7s · 17.9k tok
# Loam & Ledger — Pre-Q4 Tracking & Measurement Audit **Audit Scope:** GTM container `GTM-K4WPD2` (as of 2026-08-20) and 22 live campaign links (`active_links.csv`), evaluated against `tracking_standards.md` (v3, 2026-01) and GA4/Meta measurement best practices. **Summary:** **14 defects identified** (5 Critical, 2 High, 5 Medium, 2 Low) affecting 5 GTM components and 12 of 22 live links. **Q4 budget scale-up should not unlock until all Critical and High items are resolved**, as current data carries active EU/UK privacy compliance exposure, ~80% purchase inflation in GA4, ~35–40% Canadian revenue inflation, and broken funnel/email attribution. --- ## Critical Findings (Compliance & Core Revenue/Conversion Integrity) ### 1. Consent Mode v2 sets `analytics_storage: granted` for EEA + UK visitors - **Location:** GTM container `GTM-K4WPD2` → Consent Initialization tag (EEA + UK region override). - **Why it is wrong:** `tracking_standards.md` requires both `analytics_storage: denied` and `ad_storage: denied` for EEA/UK visitors until the Cookiebot banner grants consent. Currently, `analytics_storage` defaults to `granted` for EEA + UK. - **Impact & Symptom Link:** - **Compliance:** Active GDPR / ePrivacy exposure—non-essential analytics cookies are written before user consent. - **Symptom:** Directly **consistent with** outside counsel's privacy review finding that analytics cookies are set for EU visitors prior to banner interaction despite Consent Mode being installed. - **How to confirm:** Load `www.loamandledger.com` from an EEA/UK IP in a fresh incognito session without interacting with Cookiebot; inspect the Consent tab in GTM Preview (confirm `analytics_storage` defaults to `granted`) and browser DevTools → Application → Cookies (confirm `_ga` / `_ga_*` cookies are set immediately). - **Concrete Fix:** Update the EEA + UK region row in the Consent Initialization tag to `analytics_storage: denied` (keeping `ad_storage: denied`). While editing, also verify that Consent Mode v2's `ad_user_data` and `ad_personalization` signals are configured as `denied` for EEA + UK and updated by Cookiebot on accept. --- ### 2. Duplicate `purchase` tag fires on checkout button click (`#place-order-btn`) - **Location:** GTM container `GTM-K4WPD2` → **Tag 3** (`GA4 Event — purchase (checkout button)`) and its Click trigger matching CSS selector `#place-order-btn`. - **Why it is wrong:** `tracking_standards.md` requires exactly **one** `purchase` event per order, fired on the order confirmation page only, carrying `transaction_id`, `value`, `currency`, and `items`. Tag 3 (left live since June 2026) fires a second `purchase` event on button click before payment is authorized or settled, and omits `transaction_id` and `items` while hardcoding `currency: "USD"`. - **Impact & Symptom Link:** - **Measurement:** Double-counts completed orders (firing alongside Tag 2) and records phantom purchases and revenue on every failed payment, declined card, validation error, or double-click. - **Symptoms:** **Consistent with** both (a) GA4 reporting 512 purchases vs. Shopify's 284 (~80% higher) starting in early June, and (b) GA4 barely dipping during the 2026-08-04 payment provider outage while running ahead of settled revenue. - **How to confirm:** In GA4, break down `purchase` event counts by `Page path` for last week and for 2026-08-04 to quantify fires occurring on `/checkout`, and compare the GA4-to-Shopify purchase ratio before vs. after June 2026. Test `#place-order-btn` with a declined card in GTM Preview / GA4 DebugView. - **Concrete Fix:** Pause and remove Tag 3 (`GA4 Event — purchase (checkout button)`) and its `#place-order-btn` click trigger. --- ### 3. Unanchored `^/order-confirmation` trigger regex matches `/order-confirmation-pending` - **Location:** GTM container `GTM-K4WPD2` → Page View trigger (`Page Path matches RegEx ^/order-confirmation`) shared by **Tag 2** (`GA4 Event — purchase (confirmation page)`) and **Tag 6** (`Meta Pixel — purchase`). - **Why it is wrong:** `tracking_standards.md` requires `purchase` to fire once per order on the order confirmation page only. Because `^/order-confirmation` has no end anchor, it also matches `/order-confirmation-pending` (used for Interac and some PayPal flows while payment is still processing). - **Impact & Symptom Link:** - **Measurement:** Any buyer routed through `/order-confirmation-pending` fires both GA4 `purchase` and Meta Pixel `Purchase` before payment settles—resulting in (a) double-counting when the page reloads into `/order-confirmation`, and (b) false purchase events when payment fails and redirects to `/payment-failed`. This inflates GA4 conversions and pollutes Meta's purchase optimization signal. - **Symptoms:** **Consistent with** GA4 purchase inflation, GA4 revenue exceeding settled revenue during payment incidents (2026-08-04), and noisy Meta conversion counts (note: Meta Ads Manager reporting 205 vs. Shopify's 284 total orders is structurally expected because Meta only counts ad-attributed orders and is reduced by consent/ITP, but its attributed count is still contaminated by pending/failed fires). - **How to confirm:** Pull GA4 `purchase` events segmented by exact `Page path` and check Meta Events Manager Purchase event URLs for hits on `/order-confirmation-pending`. - **Concrete Fix:** Anchor the trigger to match only the confirmed page—e.g., `^/order-confirmation/?$` (or `Page Path equals /order-confirmation` if trailing slashes are never used). --- ### 4. Missing `transaction_id` on GA4 `purchase` event - **Location:** GTM container `GTM-K4WPD2` → **Tag 2** (`GA4 Event — purchase (confirmation page)`). - **Why it is wrong:** `tracking_standards.md` explicitly requires `purchase` events to carry `transaction_id`, `value`, `currency`, and `items`. Tag 2 omits `transaction_id`. - **Impact & Symptom Link:** - **Measurement:** Without `transaction_id`, GA4 cannot deduplicate repeat views of `/order-confirmation` (e.g., page refreshes, browser session restores, or revisiting the order status link), and finance/analytics cannot reconcile GA4 orders against Shopify order IDs. - **Symptom:** **Would explain** additional GA4 purchase/revenue overcounting relative to Shopify, compounding Findings 2 and 3. - **How to confirm:** Check GA4's Ecommerce Purchases report with `Transaction ID` as a dimension (it will display `(not set)`) or inspect Tag 2's payload in GA4 DebugView. - **Concrete Fix:** Create a Data Layer Variable `{{DLV - transaction_id}}` mapped to the Shopify order ID/number on `/order-confirmation` and add `transaction_id: {{DLV - transaction_id}}` to Tag 2. (Consider passing the same ID as `eventID` in Tag 6 to support future Meta Conversions API deduplication.) --- ### 5. Hardcoded `currency: "USD"` on GA4 and Meta `purchase` events - **Location:** GTM container `GTM-K4WPD2` → **Tag 2** (`GA4 Event — purchase (confirmation page)`) and **Tag 6** (`Meta Pixel — purchase`). (Also present on Tag 3, which is slated for removal.) - **Why it is wrong:** `tracking_standards.md` states that `currency` must reflect the order's actual currency and that `ca.loamandledger.com` transacts in CAD. Both storefronts share `GTM-K4WPD2`, yet Tags 2 and 6 hardcode `"USD"` even though `{{DLV - currency}}` already exists and is used on Tag 5 (`begin_checkout`). - **Impact & Symptom Link:** - **Measurement:** CAD order totals from `ca.loamandledger.com` are ingested as USD without exchange-rate conversion, inflating Canadian revenue in GA4 and distorting Meta ROAS and value-based bidding for Canadian campaigns (`ca-meta-prospecting`). - **Symptom:** Directly **consistent with** Finance's finding that GA4's Canadian storefront revenue reads roughly a third higher than settled CAD revenue converted at book rates (reflecting the ~1.35–1.40 CAD/USD exchange rate), while US storefront revenue reconciles. - **How to confirm:** Filter GA4 `purchase` revenue by `Hostname = ca.loamandledger.com` and inspect the `Currency` dimension (expected to show `USD` instead of `CAD`), then compare raw numeric `value` in GA4 to raw CAD order totals in Shopify. - **Concrete Fix:** Replace `"USD"` with `{{DLV - currency}}` in both Tag 2 and Tag 6, and verify via GTM Preview on both `www.` and `ca.` order confirmations that `{{DLV - currency}}` resolves to `"USD"` and `"CAD"`, respectively. --- ## High Findings (Broken Funnel Reporting & Channel Attribution Loss) ### 6. `Add to Cart` event violates `snake_case` naming and omits `currency` - **Location:** GTM container `GTM-K4WPD2` → **Tag 4** (`GA4 Event — Add to Cart`). - **Why it is wrong:** `tracking_standards.md` mandates `snake_case` GA4 event names (specifically citing `add_to_cart`). Tag 4 was renamed to `Add to Cart` during the theme migration. Additionally, Tag 4 sends `value: {{DLV - line_value}}` without `currency`, which GA4 ecommerce requires whenever `value` is populated (especially across USD/CAD storefronts). - **Impact & Symptom Link:** - **Measurement:** Breaks GA4's built-in ecommerce funnel/monetization reporting and any downstream report, audience, or exploration referencing `add_to_cart`. Omitting `currency` prevents accurate multi-currency valuation of cart additions. - **Symptom:** **Consistent with** the CRO agency's May add-to-cart exploration dropping to near-zero events after the theme migration while site conversion remained normal. - **How to confirm:** In GA4 → Reports → Engagement → Events across the theme migration date, verify that `add_to_cart` drops to zero on the migration date while `Add to Cart` begins recording normal volume on the same day. - **Concrete Fix:** Rename Tag 4's GA4 Event Name back to `add_to_cart` and add `currency: {{DLV - currency}}` to its event parameters. --- ### 7. Weekly newsletter links use `http://` instead of `https://` - **Location:** `active_links.csv` → both `klaviyo-newsletter` rows: - `http://www.loamandledger.com/collections/new?utm_source=klaviyo&utm_medium=email&utm_campaign=2026q3-weekly-newsletter` - `http://www.loamandledger.com/collections/bestsellers?utm_source=klaviyo&utm_medium=email&utm_campaign=2026q3-weekly-newsletter` - **Why it is wrong:** `tracking_standards.md` requires all destination URLs to use `https://`. - **Impact & Symptom Link:** - **Measurement:** Forces an HTTP-to-HTTPS redirect on every click. If the redirect rule drops query parameters (or if mail clients/proxies strip referrer/query strings across protocol upgrades), GA4 receives a bare landing URL with no UTMs and assigns the session to Direct. - **Symptom:** **Consistent with** GA4 showing almost no session acquisition from the weekly newsletter (reclassifying clicks as Direct) while welcome and winback flows—which use `https://`—attribute to Email. - **How to confirm:** Run `curl -I` on one of the `http://` newsletter URLs (or click it in a browser with DevTools Network → Preserve Log enabled) to verify whether the 301/302 redirect to `https://` strips the query string. - **Concrete Fix:** Update both `klaviyo-newsletter` template links in Klaviyo to `https://`. (Separately, have the web team confirm the server/CDN HTTP→HTTPS redirect preserves query strings as defense-in-depth.) --- ## Medium Findings (Channel & Campaign Attribution Fragmentation) ### 8. Uppercase `utm_medium=CPC` on three Google Ads links - **Location:** `active_links.csv` → 3 rows: - `google-search` (`/collections/linen`): `utm_medium=CPC` - `google-search` (`/collections/ceramics`): `utm_medium=CPC` - `google-pmax` (`/collections/new`): `utm_medium=CPC` - **Why it is wrong:** `tracking_standards.md` requires all UTM values to be lowercase (`cpc`). - **Impact & Symptom Link:** - **Measurement:** GA4 dimensions are case-sensitive; `google / CPC` and `google / cpc` (used by `google-brand` and `ca-google-search`) are reported as separate source/medium rows, fragmenting Paid Search performance. - **Symptom:** **Consistent with** Paid Search splitting into two separate row groups in GA4 even though nothing changed in Google Ads account structure. - **How to confirm:** Open GA4 → Traffic Acquisition grouped by `Session source / medium` and verify separate rows for `google / CPC` and `google / cpc`. - **Concrete Fix:** Change `utm_medium=CPC` to `utm_medium=cpc` in the Google Ads tracking templates / final URLs for those three campaigns. --- ### 9. Duplicate `utm_campaign` parameter on Meta cart-recovery link - **Location:** `active_links.csv` → `meta-retargeting` (`/cart`): - `https://www.loamandledger.com/cart?utm_source=meta&utm_medium=paidsocial&utm_campaign=2026q3-cart-recovery&utm_campaign=cart_recovery` - **Why it is wrong:** Violates two standards in `tracking_standards.md`: (1) every parameter must appear at most once per URL, and (2) the second value `cart_recovery` uses an underscore and omits the `<year>q<quarter>-<line>-<goal>` structure. - **Impact & Symptom Link:** - **Measurement:** Duplicate query parameters have undefined handling across browsers, ad click wrappers, and GA4/Looker parsers—different surfaces pick either the first or last occurrence. - **Symptom:** **Consistent with** cart-recovery reporting showing up under two different campaign names (`2026q3-cart-recovery` vs. `cart_recovery`) depending on the GA4 report. - **How to confirm:** Pull a GA4 `Session campaign` report filtered for `cart` and verify both `2026q3-cart-recovery` and `cart_recovery` appear for `meta / paidsocial`. - **Concrete Fix:** Remove `&utm_campaign=cart_recovery` from the Meta ad URL/URL parameters so only `utm_campaign=2026q3-cart-recovery` remains. --- ### 10. Legacy `utm_source=facebook` on two Meta links - **Location:** `active_links.csv` → 2 rows: - `meta-prospecting` (`/collections/linen`): `utm_source=facebook` - `meta-retargeting` (`/collections/bestsellers`): `utm_source=facebook` - **Why it is wrong:** `tracking_standards.md` standardized on `utm_source=meta` (explicitly prohibiting `facebook` since v2). - **Impact & Symptom Link:** - **Measurement:** Splits paid Meta traffic across `facebook / paidsocial` and `meta / paidsocial` in GA4, understating Meta totals in any report or dashboard filtered on `source = meta`. - **How to confirm:** Check GA4 `Session source / medium` for both `facebook / paidsocial` and `meta / paidsocial`. - **Concrete Fix:** Update both ad destination URLs in Meta Ads Manager to `utm_source=meta`. --- ### 11. Missing `utm_source` on Klaviyo welcome flow link - **Location:** `active_links.csv` → `klaviyo-welcome` (`/collections/starter`): - `https://www.loamandledger.com/collections/starter?utm_medium=email&utm_campaign=2026q3-welcome-flow` - **Why it is wrong:** Omits `utm_source=klaviyo`, violating the UTM source convention and GA4 campaign tagging requirements. - **Impact & Symptom Link:** - **Measurement:** GA4's Default Channel Group still classifies `utm_medium=email` as Email (which is **consistent with** the memo noting welcome flows attribute fine at the channel level), but `Session source` will register as `(not set)` rather than `klaviyo`, breaking source-level Klaviyo rollups. - **How to confirm:** In GA4, filter `Session campaign = 2026q3-welcome-flow` and inspect `Session source / medium` (expected to show `(not set) / email`). - **Concrete Fix:** Add `utm_source=klaviyo` to the welcome series step 2 link: `https://www.loamandledger.com/collections/starter?utm_source=klaviyo&utm_medium=email&utm_campaign=2026q3-welcome-flow`. --- ### 12. Unencoded spaces in `utm_campaign` on Meta summer link - **Location:** `active_links.csv` → `meta-summer` (`/collections/summer`): - `utm_campaign=2026q3 summer sale` - **Why it is wrong:** `tracking_standards.md` requires `<year>q<quarter>-<line>-<goal>`, hyphen-separated, with no spaces. - **Impact & Symptom Link:** - **Measurement:** Unencoded spaces can truncate URLs in certain apps/clients or be inconsistently encoded as `%20` vs. `+`, splitting campaign reporting and breaking automated campaign-name parsing. - **How to confirm:** Inspect `Session campaign` in GA4 for variants of `2026q3 summer sale` / `2026q3%20summer%20sale` / `2026q3+summer+sale`. - **Concrete Fix:** Update the parameter to `utm_campaign=2026q3-summer-sale`. --- ## Low Findings (Taxonomy & Standard Non-Conformance) ### 13. Non-standard `utm_source=instagram` on organic Instagram link - **Location:** `active_links.csv` → `organic-instagram` (`/collections/new`): - `utm_source=instagram&utm_medium=organicsocial&utm_campaign=2026q3-ig-bio` - **Why it is wrong:** `tracking_standards.md` restricts `utm_source` to `google`, `meta`, `klaviyo`, `tiktok`, `pinterest`, or an affiliate partner's domain. `instagram` is not on the permitted list. - **Impact:** Organic Instagram traffic will not roll up under `meta` in source-level dashboards built strictly against the documented taxonomy. - **Concrete Fix:** Either change the link to `utm_source=meta` (retaining `ig` in `utm_campaign=2026q3-ig-bio` or `utm_content`), **or** formally amend `tracking_standards.md` (v4) to allow `instagram` if marketing wants organic Instagram reported separately from `meta`. --- ### 14. Incomplete `utm_campaign` structure on organic Pinterest link - **Location:** `active_links.csv` → `organic-pinterest` (`/collections/table`): - `utm_campaign=2026q3-boards` - **Why it is wrong:** `tracking_standards.md` requires the three-part `<year>q<quarter>-<line>-<goal>` format. `2026q3-boards` has only two segments, omitting the product line (`table`). - **Impact:** Breaks automated splits or Looker/BI parsing that extract `<line>` and `<goal>` by hyphen position. - **Concrete Fix:** Update the campaign value to `utm_campaign=2026q3-table-boards` (matching the `/collections/table` destination). --- ## Verified Clean (Safe to Trust) ### GTM Container (`GTM-K4WPD2`) - **Tag 1 (`GA4 Configuration — G-8B21XQ4`):** Properly triggered on `Initialization — All Pages` with `send_page_view: true` and no duplicate GA4 config tags. - **Tag 5 (`GA4 Event — begin_checkout`):** Conforms fully—uses `snake_case` recommended event name, exact-match trigger (`/checkout`), and dynamic `{{DLV - currency}}`, `{{DLV - cart_total}}`, and `{{DLV - items}}`. - **Order value basis:** `{{DLV - order_total}}` is documented as net of tax and shipping, matching Finance's standard. - **Meta Pixel base code:** Single base pixel on `All Pages` with no duplicate base installation. - **Non-EEA/UK Consent Mode defaults & Cookiebot update:** Non-EEA/UK defaults (`granted`/`granted`), EEA/UK `ad_storage: denied`, and Cookiebot updating both signals to `granted` on accept all conform to `tracking_standards.md`. ### Live Campaign Links (10 of 22 links) The following 10 links passed every check (HTTPS, approved host, lowercase, permitted `utm_source`, permitted `utm_medium`, `<year>q<quarter>-<line>-<goal>` format including `-ca` suffix where applicable, and no duplicate parameters): 1. `google-brand` — `https://www.loamandledger.com/?utm_source=google&utm_medium=cpc&utm_campaign=2026q3-brand-defense` 2. `meta-prospecting` (table) — `https://www.loamandledger.com/collections/table?utm_source=meta&utm_medium=paidsocial&utm_campaign=2026q3-table-prospecting` 3. `tiktok-prospecting` (linen) — `https://www.loamandledger.com/collections/linen?utm_source=tiktok&utm_medium=paidsocial&utm_campaign=2026q3-linen-spark` 4. `tiktok-prospecting` (ceramics) — `https://www.loamandledger.com/collections/ceramics?utm_source=tiktok&utm_medium=paidsocial&utm_campaign=2026q3-ceramics-spark` 5. `klaviyo-winback` — `https://www.loamandledger.com/collections/new?utm_source=klaviyo&utm_medium=email&utm_campaign=2026q3-winback-flow` 6. `pinterest-prospecting` — `https://www.loamandledger.com/collections/table?utm_source=pinterest&utm_medium=paidsocial&utm_campaign=2026q3-table-pins` 7. `affiliate-domesticnotes` — `https://www.loamandledger.com/collections/linen?utm_source=domesticnotes.com&utm_medium=affiliate&utm_campaign=2026q3-linen-roundup` 8. `affiliate-hearthreview` — `https://www.loamandledger.com/collections/ceramics?utm_source=hearthreview.com&utm_medium=affiliate&utm_campaign=2026q3-ceramics-review` 9. `ca-google-search` — `https://ca.loamandledger.com/collections/linen?utm_source=google&utm_medium=cpc&utm_campaign=2026q3-linen-prospecting-ca` 10. `ca-meta-prospecting` — `https://ca.loamandledger.com/collections/linen?utm_source=meta&utm_medium=paidsocial&utm_campaign=2026q3-linen-prospecting-ca`
Score the judge's verdict, criterion by criterion19/20 criteria passed · failed: causal_claims_supported
RequirementVerdictEvidence
covers_all_sources
The audit addresses all supplied artifacts: the campaign links, the GTM/GA4 tag configuration, and the consent setup (a clean-bill mention counts as addressing an artifact).
✓The audit covers the active links (Findings 7-14 plus the clean list), the GTM tags (Findings 2-6 and the Tag 1 and Tag 5 clean notes), and the consent setup (Finding 1 and the clean note).
findings_located
Each reported defect names its specific location — the exact link/channel, tag, trigger, or setting — precisely enough that an engineer could act without re-deriving the audit.
✓Each finding names the exact tag, trigger, link row or consent setting, for example 'Tag 3 … Click trigger matching CSS selector #place-order-btn' and the `klaviyo-welcome` (`/collections/starter`) row.
finds_uppercase_medium
Flags the uppercase utm_medium=CPC values on the two google-search links as violating the lowercase standard and fragmenting paid-search reporting.
✓Finding 8 flags utm_medium=CPC on both google-search rows and ties it to the paid search split into two row groups.
finds_uppercase_medium_pmax
Also flags the google-pmax link's uppercase utm_medium=CPC (the same defect on the Performance Max campaign, not only on the search campaigns).
✓Finding 8 also lists the `google-pmax` (`/collections/new`) row with utm_medium=CPC.
finds_missing_source
Flags the klaviyo-welcome link as missing utm_source entirely.
✓Finding 11 flags `klaviyo-welcome` as missing utm_source=klaviyo and gives the corrected URL.
finds_meta_source_inconsistency
Flags that some Meta links use utm_source=facebook while the standard (and other links) use utm_source=meta, splitting Meta reporting.
✓Finding 10 flags utm_source=facebook on the meta-prospecting linen link and the meta-retargeting bestsellers link against the standard's `meta`.
finds_campaign_spaces
Flags the meta-summer link's utm_campaign value ('2026q3 summer sale') for containing spaces / violating the hyphenated campaign format.
✓Finding 12 flags utm_campaign=2026q3 summer sale on `meta-summer` and fixes it to 2026q3-summer-sale.
finds_duplicate_purchase_firing
Identifies that purchase fires from two live tags (the confirmation-page tag and the place-order button-click tag), double-counting purchases, and connects this to GA4 reporting far more purchases than Shopify.
✓Finding 2 identifies Tag 3's button-click purchase firing alongside Tag 2 and links it to GA4's 512 purchases versus Shopify's 284 and the 08-04 outage, worded as 'consistent with'.
finds_missing_transaction_id
Identifies that the GA4 purchase tags omit the transaction_id parameter required by the standards, so duplicate purchase events cannot be deduplicated.
✓Finding 4 flags the missing transaction_id on Tag 2, explains that GA4 cannot deduplicate without it, and Finding 2 notes Tag 3 also omits it.
finds_hardcoded_currency
Identifies that purchase currency is hardcoded to USD while the ca. storefront transacts in CAD, and connects this to the inflated Canadian revenue.
✓Finding 5 flags currency "USD" hardcoded on Tags 2 and 6 against the CAD ca. storefront and ties it to the inflated Canadian revenue.
finds_consent_default
Identifies that analytics_storage defaults to granted for EEA/UK visitors, violating the documented Consent Mode defaults, and connects this to the legal/privacy finding.
✓Finding 1 flags analytics_storage granted for the EEA+UK row and links it to outside counsel's finding about cookies set before banner interaction.
finds_http_links
Flags the two http:// newsletter links as violating the https standard and identifies possible attribution loss as relevant to newsletter traffic landing in Direct. The actual redirect/query-string behavior is not supplied: a plausible mechanism to verify is sufficient; do not require claiming the redirect cause is proven.
✓Finding 7 flags both http:// newsletter links and offers a conditional redirect-stripping mechanism with a curl check to verify it, which is acceptable.
finds_event_name_casing
Flags the 'Add to Cart' event name (spaces, not snake_case) as violating the naming standard and explains the add-to-cart reporting going quiet after the rename.
✓Finding 6 flags the 'Add to Cart' name against snake_case and explains the add-to-cart exploration going quiet after the rename.
finds_duplicate_campaign_param
Flags the cart-recovery link carrying utm_campaign twice with different values, and ties it to the cart-recovery campaign appearing under two names.
✓Finding 9 flags the duplicate utm_campaign on the cart link and ties it to the two campaign names in GA4.
finds_pending_page_regex
Identifies that the purchase trigger RegEx ^/order-confirmation also matches /order-confirmation-pending, so purchases fire for unsettled payments, and connects this to the payment-outage / revenue-runs-ahead symptoms.
✓Finding 3 explains that ^/order-confirmation also matches /order-confirmation-pending, so purchases fire for unsettled payments, and connects it to the outage and revenue-ahead symptoms.
no_false_positives
No actually conforming item is reported as defective. Examples of clean items are google-brand, begin_checkout, tiktok-prospecting, pinterest-prospecting, the affiliate links, and the ca-storefront UTMs. Assess the specific parameter against the supplied standard, not the platform label: organic-pinterest has campaign 2026q3-boards, which lacks the required line/goal component, so flagging that naming defect is valid. The organic-instagram source is also absent from the documented source list; identifying that inconsistency is not a false positive. Do not penalize additional evidence-supported findings merely because they lack a separate rubric criterion.
✓Every flagged item is a real defect, including the organic Instagram source and organic Pinterest campaign, and none of the conforming links (google-brand, tiktok, pinterest-prospecting, affiliates, ca-storefront) is flagged.
fix_per_finding
Every reported defect comes with a concrete, implementable fix (what to change, not 'review this').
✓Each of the 14 findings ends with a concrete fix, such as replacing "USD" with {{DLV - currency}} or changing the value to utm_campaign=2026q3-table-boards.
impact_prioritized
Findings are ordered or tiered by measurement/compliance impact throughout the report: purchase firing, missing transaction IDs/deduplication, currency and consent issues outrank cosmetic campaign naming. Check the actual placement of each high-impact defect, not just the names of priority tiers.
✓Consent, duplicate purchase, the pending-page regex, transaction_id and currency are in the Critical tier, with newsletter and event naming High and UTM naming cosmetics Medium or Low.
clean_findings_supported
The closing clean-bill list is present and each item certified compliant actually conforms to all relevant supplied standards. A correct check of one parameter does not justify certifying the whole link or tag clean. Organic Instagram has a source outside the documented allowed list; organic Pinterest campaign 2026q3-boards lacks the required third component. Explicitly scoped statements about a conforming parameter are allowed; labeling either entire link fully compliant fails.
✓The clean list contains only fully conforming links and tags, and the organic Instagram and organic Pinterest links are correctly kept out of it.
causal_claims_supported
Assertions of cause, actual vendor behavior and timing are supported by the supplied evidence. Distinguish known configuration defects and observed symptoms from mechanisms requiring verification. Do not assert an unobserved redirect configuration or trace, the exact cause of every symptom, or a connection between one period's totals and a separately dated outage as proven. A proposed check of possible server/CDN implementations is not by itself an assertion that a named vendor is deployed; conditional examples and verification steps are allowed. Quote an actual unsupported factual assertion to fail this criterion, not merely a vendor mentioned as something to investigate.
✗The response asserts figures and mechanisms the sources do not give: '~35–40% Canadian revenue inflation' and a '~1.35–1.40 CAD/USD exchange rate' (the memo says 'roughly a third'), and that Meta's 205 vs 284 'is structurally expected because Meta only counts ad-attributed orders and is reduced by consent/ITP'.