# Tracking Audit: Loam & Ledger
**Scope:** `tracking_standards.md` (v3), all 22 rows of `active_links.csv`, GTM container `GTM-K4WPD2` (export dated 2026-08-20), and the symptoms memo dated 2026-08-18.
**Method:** Desk review of the supplied documents only. Nothing was changed and nothing external was fetched. Where a conclusion depends on behaviour I could not observe, such as redirects or live tag firing, I say so.
---
## Executive summary
Every symptom in the memo traces to at least one concrete defect in the links or the container.
| Symptom (memo) | Root cause(s) |
|---|---|
| GA4 purchases ~80% above Shopify, new since early June | **F1** (duplicate click-based purchase tag added 2026-06), compounded by **F3** and **F5** |
| GA4 barely dips during the 2026-08-04 payment outage; GA4 revenue ahead of settled revenue | **F1** (fires on button click regardless of payment outcome), **F3** (fires on the pending page, including orders that later fail) |
| Legal: analytics cookies set for EU visitors before banner interaction | **F2** (EEA/UK `analytics_storage` defaults to `granted`) |
| CAD-storefront revenue ~⅓ above settled CAD | **F4** (`currency` hardcoded `"USD"`) |
| Add-to-cart near zero since theme migration | **F6** (event renamed to `Add to Cart`) |
| Newsletter traffic lands in Direct; flows fine | **F7** (newsletter links are `http://`) |
| Paid search split into two row groups | **F8** (`utm_medium=CPC` vs `cpc`) |
| Cart recovery appears under two campaign names | **F9** (duplicate `utm_campaign` parameter) |
**Bottom line for Q4:** GA4 purchase and revenue figures from June onward should not be used for budget allocation. The same applies to Meta purchase values for the CA storefront. Treat Shopify as the source of truth until F1, F3, F4 and F5 are fixed and a clean baseline has been collected.
**Bidding risk:** If GA4 `purchase` is imported into Google Ads as a conversion action (not visible in the supplied material, so please confirm), Smart Bidding and PMax have been optimizing against inflated and phantom conversions since June.
---
## Findings, ordered by impact
### F1. Second `purchase` event fires on the "Place order" button click. Severity: Critical (data integrity)
- **Where:** GTM Tag 3, *GA4 Event — `purchase` (checkout button)*. Trigger: Click — All Elements, CSS selector `#place-order-btn`. Added 2026-06 "as a backup while debugging Safari losses" and still live.
- **Why it's wrong:**
- The standards require exactly one `purchase` per order, on the order confirmation page only.
- This tag fires a second `purchase` for every order that also reaches confirmation, which fires Tag 2.
- It also fires for clicks that never become orders: declined cards, outages, abandoned 3-D Secure, and double-clicks.
- It carries no `transaction_id` or `items`, and hardcodes `currency: "USD"`. GA4 therefore cannot deduplicate it against Tag 2, and it adds revenue with no item detail.
- **Impact:**
- **Inflation:** Roughly doubles purchase counts. This matches GA4's 512 against Shopify's 284 (+80%) and the "new since early June" timing exactly. The figure is below a full 2× because some browser-side events are lost (blockers, Safari), which is presumably what the original debugging was about.
- **Outage week:** Because the tag fires on click rather than on settlement, it kept counting "purchases" during the 2026-08-04 outage while Shopify dipped. It also pushed GA4 revenue above settled revenue that week.
- **Downstream:** Every channel's GA4 ROAS and conversion rate is overstated since June.
- **Fix:**
- Delete Tag 3 (pause it first if a rollback window is wanted).
- Investigate the Safari losses separately. Likely candidates are ITP and cookie lifetime, and the answer is server-side tagging or server-side purchase reconciliation, not a duplicate browser event.
- Add a GA4 annotation on the removal date so June–August comparisons are not misread.
### F2. EEA/UK consent default grants analytics storage before banner interaction. Severity: Critical (compliance)
- **Where:** Consent-initialization tag, region row *EEA + UK*: `analytics_storage: granted`, `ad_storage: denied`.
- **Why it's wrong:**
- The standards require `analytics_storage: denied` *and* `ad_storage: denied` for EEA/UK visitors until the banner grants them.
- With analytics granted by default, the GA4 configuration (Tag 1, Initialization — All Pages) sets `_ga` cookies on the first page view, before any Cookiebot interaction. That is exactly what outside counsel observed.
- Running Consent Mode is not a defence when its default is "granted."
- **Consent Mode v2 gap:** The table configures only two signals. Consent Mode v2 also requires `ad_user_data` and `ad_personalization`. Without them, Google advertising features for EEA traffic (remarketing audiences, enhanced conversions) are restricted.
- **Impact:**
- Active privacy-compliance exposure for every EEA/UK visitor, as counsel has already flagged.
- Measurement side effect: EEA analytics volume is currently higher than it will be once fixed. Expect a visible drop in EEA sessions and conversions after the correction, partly offset by GA4 behavioural/conversion modelling if the property meets thresholds.
- **Fix:**
- Set the EEA + UK defaults to `analytics_storage: denied` and `ad_storage: denied`.
- Add `ad_user_data` and `ad_personalization`: `denied` for EEA/UK, `granted` elsewhere.
- Confirm Cookiebot's update maps categories granularly:
- Statistics → `analytics_storage`.
- Marketing → `ad_storage`, `ad_user_data`, `ad_personalization`.
- The export says Cookiebot updates "both to granted on accept." Verify that partial acceptance does not grant everything.
- Retest in GTM Preview with an EEA geolocation: no `_ga` cookie should be set before interaction.
- Brief counsel once the fix is live.
### F3. Purchase trigger also matches the payment-pending page. Severity: High
- **Where:** Tag 2 (GA4 `purchase`) trigger, Page Path matches RegEx `^/order-confirmation`. Tag 6 (Meta Pixel Purchase) uses the same trigger.
- **Why it's wrong:**
- The regex has no end anchor, so it matches `/order-confirmation-pending` as well as `/order-confirmation`.
- Per the web team, pending buyers (common for Interac and some PayPal flows) land on `/order-confirmation-pending` first. That page then reloads into `/order-confirmation`, so the event fires twice. Alternatively it reloads into `/payment-failed`, so a purchase fires for an order that never happened.
- Both outcomes violate "exactly one `purchase` per order, on the order confirmation page only."
- **Impact:**
- Additional purchase inflation in GA4 and Meta on top of F1.
- Phantom revenue from failed payments. During the 2026-08-04 outage, more payments would have sat in pending and then failed, so this contributes to GA4 "barely dipping" and to revenue running ahead of settlement.
- Interac is a Canadian payment method, so the CA storefront is likely hit disproportionately.
- **Fix:**
- Change the trigger to `^/order-confirmation/?$` in both Tag 2 and Tag 6 (Page Path excludes the query string, so the end anchor is safe).
- Do not fire on the pending page.
- Pair this with F5 (`transaction_id`) so that refreshes of the true confirmation page are also deduplicated.
### F4. `currency` hardcoded to `"USD"` on a container that also serves the CAD storefront. Severity: High
- **Where:**
- Tag 2: `currency: "USD"`.
- Tag 3: `currency: "USD"` (removed under F1).
- Tag 6, Meta Purchase: `currency: "USD"`.
- **Why it's wrong:**
- The standards say `currency` reflects the order's actual currency, and the `ca.` storefront transacts in CAD.
- The same container and templates serve both storefronts. CAD order totals are therefore reported as if they were US dollars.
- **Impact:**
- GA4 and Meta treat a C$100 order as US$100. At typical CAD→USD rates of roughly 0.72–0.74, that overstates CA revenue by about 35–38%. This matches finance's "roughly a third higher."
- US revenue is unaffected, which is why it reconciles.
- Meta ROAS for the CA campaigns (`ca-meta-prospecting`) is overstated by the same factor.
- **Fix:**
- Replace the hardcoded value with the dynamic variable already in use on Tag 5: `currency: {{DLV - currency}}`.
- Apply this to Tag 2 and Tag 6.
- Verify in Preview on `ca.` that the dataLayer emits `CAD` on the confirmation page.
### F5. GA4 `purchase` has no `transaction_id`. Severity: High
- **Where:** Tag 2 parameters: `value`, `currency`, `items`, with no `transaction_id`. Tag 3 also lacks it, and Tag 6 sends no order or event ID.
- **Why it's wrong:**
- The standards require `transaction_id` on `purchase`.
- GA4 uses it to deduplicate repeat purchase events for the same order (page refreshes, back-button revisits, the pending→confirmation reload).
- Without it, order-level reconciliation against Shopify is also impossible.
- **Impact:**
- Every duplicate fire from F1, F3 and confirmation-page refreshes is counted as a separate purchase.
- Finance cannot match GA4 transactions to Shopify orders to quantify the gap.
- **Fix:**
- Add `transaction_id: {{DLV - order_id}}` to Tag 2, or whatever the web team's dataLayer key for the Shopify order ID/number is. Create the variable if it does not exist.
- For Meta, pass the order ID as `eventID`. This also enables deduplication if a Conversions API feed is added later.
### F6. Add-to-cart event renamed to `Add to Cart`. Severity: Medium-High
- **Where:** Tag 4, event name `Add to Cart`. It was renamed from `add_to_cart` during the theme migration "for readability."
- **Why it's wrong:**
- The standards require `snake_case` event names.
- `add_to_cart` is also a GA4 recommended ecommerce event name. GA4's ecommerce reports, funnel metrics and the CRO agency's exploration all key on that exact string. GA4 event names are case-sensitive, so `Add to Cart` is treated as an unrelated custom event.
- **Missing currency:** The tag sends `value` but no `currency`. GA4 does not compute monetary metrics for an ecommerce event with `value` and no `currency`.
- **Impact:**
- Add-to-cart has effectively disappeared from all ecommerce reporting since the theme migration, while conversion is normal. This explains the "near-zero" exploration.
- Events are still arriving under the wrong name, so the underlying data exists but is orphaned.
- **Fix:**
- Rename Tag 4's event back to `add_to_cart`.
- Add `currency: {{DLV - currency}}`.
- Fixing the name does not rewrite past data. For May–August analysis, query the `Add to Cart` custom event alongside `add_to_cart`.
- Add a short note to the standards: GA4 recommended event names are not to be changed.
### F7. Newsletter links use `http://`. Severity: Medium
- **Where:** `active_links.csv`, both `klaviyo-newsletter` rows:
- `http://www.loamandledger.com/collections/new?...2026q3-weekly-newsletter`
- `http://www.loamandledger.com/collections/bestsellers?...2026q3-weekly-newsletter`
- **Why it's wrong:**
- The standards require all destination URLs to be `https://`.
- An `http://` hit forces an http→https redirect. If that redirect does not preserve the query string, the UTMs are lost and the session is recorded as Direct.
- **Impact:**
- This is the only difference between the newsletter links and the flow links (`klaviyo-welcome`, `klaviyo-winback`), which are `https://` and "attribute fine." The pattern strongly implicates the redirect.
- Newsletter sessions and revenue are being credited to Direct, understating Email.
- I could not observe the redirect directly. Confirm with a single request to one of these URLs and check whether the `Location` header retains the parameters.
- **Fix:**
- Change both links in the Klaviyo template to `https://`.
- Separately, have the web team ensure the http→https redirect preserves query strings. Other legacy `http://` links in the wild, such as old emails and bios, would suffer the same loss.
### F8. Uppercase `utm_medium=CPC` on three Google links. Severity: Medium
- **Where:** `active_links.csv`:
- `google-search`, linen (`utm_medium=CPC`)
- `google-search`, ceramics (`utm_medium=CPC`)
- `google-pmax` (`utm_medium=CPC`)
- By contrast, `google-brand` and `ca-google-search` use `cpc`.
- **Why it's wrong:**
- The standards require all UTM values to be lowercase.
- GA4 treats UTM values case-sensitively, so `google / CPC` and `google / cpc` are separate source/medium values.
- **Impact:**
- This produces the "two separate row groups" for one Google Ads channel.
- The media buyer is right that nothing changed in campaign settings. The split is in the destination URL parameters or URL suffix, which is easy to overlook.
- Channel totals are fragmented, and any report or filter written for `cpc` misses three of the five Google campaigns.
- **Fix:**
- Change `CPC` to `cpc` wherever these UTMs are set (final URL, final URL suffix, or tracking template).
- Historical rows stay split. Combine them in reporting, for example with a custom channel group or a case-insensitive filter.
### F9. Duplicate `utm_campaign` on the cart-recovery link. Severity: Medium
- **Where:** `active_links.csv`, `meta-retargeting` (cart abandoners 7d): `...&utm_campaign=2026q3-cart-recovery&utm_campaign=cart_recovery`
- **Why it's wrong:**
- The standards say every parameter appears at most once per URL.
- The second value also breaks the campaign format: it has no year/quarter and uses an underscore instead of hyphens.
- When a parameter is duplicated, which value "wins" depends on the parser. Different tools and reporting surfaces can pick different values.
- **Impact:** The cart-recovery campaign appears under two campaign names "depending on the report," so its performance cannot be read as a single line.
- **Fix:**
- Remove `&utm_campaign=cart_recovery`, leaving `utm_campaign=2026q3-cart-recovery`.
- Merge the two names in historical reporting.
### F10. `utm_source=facebook` on two Meta links. Severity: Medium-Low
- **Where:** `active_links.csv`:
- `meta-prospecting`, linen, advantage+ (`utm_source=facebook`)
- `meta-retargeting`, bestsellers (`utm_source=facebook`)
- **Why it's wrong:** The standards set `utm_source` to `meta`, and the historical note explicitly retired `facebook` in v2.
- **Impact:**
- Meta paid-social traffic is split across `facebook / paidsocial` and `meta / paidsocial`.
- Any source-based Meta rollup understates Meta by whatever these two campaigns drive. That includes the Advantage+ prospecting campaign, likely one of the larger budgets.
- **Fix:** Change both to `utm_source=meta`.
### F11. Unencoded spaces in `utm_campaign` on the summer link. Severity: Medium-Low
- **Where:** `active_links.csv`, `meta-summer`: `utm_campaign=2026q3 summer sale`
- **Why it's wrong:**
- The standards specify hyphen-separated values with no spaces.
- Raw spaces are also not valid in a URL. Depending on the ad platform and browser, they become `%20` or `+`, or the URL is truncated at the first space (leaving `2026q3`).
- **Impact:** The seasonal campaign may report under inconsistent or truncated names, and it cannot be matched to the naming convention in rollups.
- **Fix:**
- Rename to `2026q3-summer-sale`. That fits `<year>q<quarter>-<line>-<goal>` if "sale" is the agreed goal label; adjust the goal segment if the team uses a different one.
### F12. Missing `utm_source` on the welcome-flow link. Severity: Low
- **Where:** `active_links.csv`, `klaviyo-welcome` (welcome series step 2): the URL has `utm_medium` and `utm_campaign` but no `utm_source`.
- **Why it's wrong:** The standards require `utm_source` to identify the platform, which here is `klaviyo`.
- **Impact:**
- Channel-level attribution still works, because GA4's default Email channel matches on `utm_medium=email`. This is likely why "flows attribute fine" in the memo.
- Source-level reports show this step as `(not set) / email` rather than `klaviyo / email`, so it drops out of Klaviyo source rollups.
- **Fix:** Add `utm_source=klaviyo`.
### F13. `utm_source=instagram` on the organic bio link. Severity: Low (conformance)
- **Where:** `active_links.csv`, `organic-instagram`: `utm_source=instagram`
- **Why it's wrong:**
- The standards enumerate allowed sources: `google`, `meta`, `klaviyo`, `tiktok`, `pinterest`, or an affiliate's domain.
- `instagram` is not on that list, and Instagram is a Meta platform.
- **Impact:**
- Minor. GA4 still classifies the traffic as Organic Social.
- Source-level reporting gains an off-standard value that will not roll up with `meta`.
- **Fix:**
- Change to `utm_source=meta`.
- Alternatively, if the team wants Instagram broken out for organic, amend the standards to permit it explicitly. Do not leave it as an undocumented exception.
---
## Needs verification (not confirmed defects)
- **Meta Pixel (Tag 6) and consent.**
- GTM's built-in consent checks apply automatically to Google tags only.
- The export does not show any consent requirement on the Meta Pixel. Without "Additional consent checks: `ad_storage` required" (or an equivalent Cookiebot-gated trigger), the pixel would fire for EEA/UK visitors before consent. That would breach "tags must respect consent state."
- Please check the tag's consent settings. If none are configured, treat this as a compliance defect alongside F2.
- **Meta's 205 purchases.**
- A count below Shopify is expected. Ads Manager reports only Meta-attributed conversions within its attribution windows, and browser signal loss reduces it further.
- Do not use it to validate or refute the GA4 figure.
- Meta values are still inflated for CA by F4 and affected by F3.
- **Tag 5 `/checkout` path.**
- The trigger requires the path to *equal* `/checkout`.
- I found no defect, but confirm in Preview that the live checkout URL is exactly `/checkout`, not `/checkouts/...` or similar.
---
## Checked and found clean
**Links.** These are `https://`, lowercase, have exactly one of each parameter, use an allowed source and medium, and follow the campaign naming format:
- `google-brand`: `google / cpc / 2026q3-brand-defense`
- `meta-prospecting` (table): `meta / paidsocial / 2026q3-table-prospecting`
- `tiktok-prospecting` ×2: linen-spark and ceramics-spark
- `klaviyo-winback`
- `pinterest-prospecting`: `pinterest / paidsocial`
- `affiliate-domesticnotes` and `affiliate-hearthreview`: partner domains as source, `affiliate` medium
- `ca-google-search` and `ca-meta-prospecting`: `ca.` storefront with the correct `-ca` market suffix
- `organic-pinterest`: `pinterest / organicsocial`
**Across all 22 links:**
- Every `utm_medium` value is one of the five permitted values. F8 is a case problem only.
- All destinations are on `www.` or `ca.loamandledger.com`.
- All campaign names follow the format except F9's second value and F11.
**Container:**
- **Tag 1 (GA4 Config `G-8B21XQ4`):** Correct trigger (Initialization — All Pages) and `send_page_view: true`. One container serving both subdomains is fine.
- **Tag 2:** `value` uses order total net of tax and shipping, per standards. `items` is present. Its defects are limited to F3, F4 and F5.
- **Tag 5 (`begin_checkout`):** snake_case name, dynamic `currency`, and `items` present. It is the model the other tags should follow.
**Consent:**
- Non-EEA defaults (`granted` / `granted`) conform.
- The EEA/UK `ad_storage: denied` default conforms.
- The consent-initialization tag runs before all other tags.
---
## Suggested fix sequence
1. **Immediately:** Fix F2 (consent; legal exposure). Delete Tag 3 (F1).
2. **Same release:** Fix the Tag 2 and Tag 6 regex (F3), dynamic currency (F4), `transaction_id` (F5), and the `add_to_cart` name plus currency (F6).
3. **Link updates in the ad platforms and Klaviyo:** F7–F13.
4. **Annotate GA4** on the release date, then run a Shopify-vs-GA4 order-ID reconciliation after one full week.
Expect GA4 purchases, revenue, CA revenue and EEA volume all to step down. That is the correction, not a regression. Set Q4 baselines from post-fix data or from Shopify, not from June–August GA4.