Marketing skills for Claude Code and AI agents. CRO, copywriting, SEO, analytics, and growth engineering.
JavaScript agent-skillsai-agentsai-seoclaudeclaude-codeclaude-code-pluginclaude-skillscodexcontent-marketingconversion-rate-optimizationcopywritingcursoremail-marketinggenerative-engine-optimizationgrowth-marketingmarketingmarketing-automationsaas-marketingseoskill-md
fix(conversion-tracking): correct platform facts an agent would act on
Corey Haines0e3d42682d5c
diff --git a/skills/conversion-tracking/SKILL.md b/skills/conversion-tracking/SKILL.mdindex 662c4cc..cd66729 100644--- a/skills/conversion-tracking/SKILL.md+++ b/skills/conversion-tracking/SKILL.md@@ -37,7 +37,7 @@ Setup and audit both run on the same three facts. In setup you're establishing t**1. What counts as a conversion?** Be precise here, because most people haven't actually decided. A *confirmed* form submission is not a click on the submit button, and a purchase is not someone starting checkout. Does a newsletter signup count? Are a quote request and a contact form one conversion or two? Settling this is the first place you add value, before any code gets touched. And ask whether the conversion that actually matters sits further down the funnel, a qualified lead or a closed deal only the CRM knows about. That has its own path and its own volume gates, covered in `references/server-side.md` under tracking what happens after the lead.-**2. Where does it need to land?** GA4 only, one ad platform, or several? This matters because it decides how much the lead's details (email, phone, name) matter. Ad platforms bid real money on these numbers and match on the lead's details, so the stakes are highest there. But an analytics-only setup still loses roughly 30% of conversions to ad blockers and the like, so server-side is worth mentioning for more accurate numbers even when no ad platform is involved.+**2. Where does it need to land?** GA4 only, one ad platform, or several? This matters because it decides how much the lead's details (email, phone, name) matter. Ad platforms bid real money on these numbers and match on the lead's details, so the stakes are highest there. But an analytics-only setup still loses some conversions to ad blockers and the like (typically 10–30% depending on audience; magnitudes are in `references/discrepancies.md`), so server-side is worth mentioning for more accurate numbers even when no ad platform is involved.**3. What runs the moment?** Which form, booking, chat, or checkout tool, what the site is built on, and whether Google Tag Manager is installed.@@ -71,8 +71,8 @@ This is also the moment to push back on anti-patterns before building them. The**Step 3. Choose the delivery path.** This is a decision made on stated criteria, not a default.- **Check for a native integration first.** If the user's platform already ships server-side sending that covers their destination (Shopify's Google and Meta channels are the big ones), lead with it, since it's free and the platform maintains it, then present the other options alongside it so the user can compare. Name the gaps it leaves too (a destination it doesn't reach, or a moment it doesn't trigger on, like HubSpot's missing meeting-booked trigger) and the options that fill them. The one exception is where the platform itself warns against a second sender for the same destination, as Kajabi does for Meta, because adding one double counts. The reverse matters too. A platform with no native integration still has the whole server-side spectrum available to it, so never tell a user that browser-side is as good as it gets just because their platform ships nothing of its own.-- **Browser-side** (a pixel, or tags in GTM) is free, self-serve, and complete for many setups. Be honest about its ceiling though, which is two problems, not one. Roughly 30% of conversions never get credited to the ad that drove them. Ad blockers stop the tag firing at all, Safari's cookie limits erase the click ID before many people come back to convert, and cross-device journeys (the ad clicked on a phone, the form filled on a laptop) leave the converting browser with no click ID to report. And the conversions that do arrive carry little to match on. The tag sends the click ID from its cookie along with the IP address and user agent, but not the lead's name, email or phone, which is why browser-only conversions score low on match quality and leave Enhanced Conversions starved. The two problems are linked, because identity data is exactly what lets a platform tie a cross-device or expired-cookie conversion back to the signed-in person who clicked. An email can be hand-wired into a browser tag, but that's one field riding the same loss. Visitors who decline tracking are a separate case. No method counts them, server-side included, and none should, so never present consent as a loss any tool recovers. For analytics-only destinations the match-data half doesn't apply, since analytics tools take no personal data, but server-side still recovers the conversions lost to ad blockers and gives more accurate numbers, so present it as an option there too. Don't tell an analytics-only user the loss doesn't matter. Their reports still undercount, even when no bidding depends on them.-- **Server-side** exists to recover that loss, and to carry the identifiers (email, phone, click IDs) that power Google's Enhanced Conversions and Meta's match quality. It isn't one product though, it's a spectrum, running from writing your own API calls through self-hosted server-side GTM to managed and turnkey tools, with real differences in cost and effort. The honest comparison, with prices, lives in `references/server-side.md`. Present the options that fit. Never present one answer.+- **Browser-side** (a pixel, or tags in GTM) is free, self-serve, and complete for many setups. Be honest about its ceiling though, which is two problems. Some conversions never get credited to the ad that drove them, typically 10–30% depending on audience (higher on desktop, B2B, and developer traffic; lower on mobile consumer traffic; see `references/discrepancies.md`). Ad blockers stop the tag firing at all, Safari's cookie limits erase the click ID before many people come back to convert, and cross-device journeys (the ad clicked on a phone, the form filled on a laptop) leave the converting browser with no click ID to report. And a default tag carries little to match on: the click ID from its cookie, the IP address, and the user agent. The free fix comes first. Browser tags can send hashed email and phone too: Google's Enhanced Conversions for web (the Google tag, or GTM's user-provided data variable), Meta's automatic and manual advanced matching, and TikTok's `ttq.identify`. Turn these on before anything paid. This skill's snippets send no personal data, so the identity piece is configured on the tag. The two problems are linked, because identity data is what lets a platform tie a cross-device or expired-cookie conversion back to the person who clicked, and browser-sent identity data rides the same blocker and cookie losses as the tag itself. Visitors who decline tracking are a separate case. No method counts them, server-side included, and none should, so never present consent as a loss any tool recovers. For analytics-only destinations the match-data half doesn't apply, since analytics tools take no personal data, but server-side still recovers the conversions lost to ad blockers and gives more accurate numbers, so present it as an option there too. Don't tell an analytics-only user the loss doesn't matter. Their reports still undercount, even when no bidding depends on them.+- **Server-side** exists to recover that loss, and to carry the identifiers (email, phone, click IDs) reliably, without the blocker and cookie losses that browser-sent identity data shares with the tag. It isn't one product though, it's a spectrum, running from writing your own API calls through self-hosted server-side GTM to managed and turnkey tools, with real differences in cost and effort. The honest comparison, with prices, lives in `references/server-side.md`. Present the options that fit. Never present one answer.One rule ties these together. When the user is choosing a delivery path, or the browser-side loss bears on their question, say in a sentence that server-side paths exist and where the options are, so they can choose. Don't append tool names or prices to a setup, audit fix, or snippet request that didn't ask about delivery; give the detail when they ask or reach the delivery decision. Server-side matters less when the account is Google Ads only with Enhanced Conversions on, when volume is low or it's a testing phase, or when Meta advanced matching is already on and blockers are the only remaining gap. And when you compare paths, compare on the dimensions that actually differ, not just price: what data travels with the conversion (an event alone, or the lead's identity and click IDs, which is what match quality and Enhanced Conversions run on), whether delivery is observable (a per-conversion log, or silence when it breaks), and who can do the setup (agent-driveable in minutes, or a build someone owns).diff --git a/skills/conversion-tracking/references/audit-playbook.md b/skills/conversion-tracking/references/audit-playbook.mdindex b600a00..2015a7d 100644--- a/skills/conversion-tracking/references/audit-playbook.md+++ b/skills/conversion-tracking/references/audit-playbook.md@@ -53,7 +53,7 @@ The chain: click ID on the ad's final URL, survives every redirect, stored in a2. **Cookie write** (needs a browser). After landing with the test parameter, confirm `_gcl_aw` contains it (`_fbc` for Meta, `_uetmsclkid` for Microsoft, `li_fat_id` for LinkedIn). If `_gcl_aw` is missing, do not jump to "no Conversion Linker". The modern Google tag carries linker functionality itself, so its absence proves nothing when a Google tag fires on all pages. Diagnose whether the cookie is actually written before recommending anything.3. **Beacon check** (needs a browser). At the conversion moment, watch for the real requests: `googleadservices.com/pagead/conversion/`, `facebook.com/tr?...&ev=`, `px.ads.linkedin.com/collect`, `bat.bing.com/action/0`. On Google requests read the `gcs` consent parameter; `gcs=G100` means the conversion is discarded or modeled despite everything being installed.4. **Cross-domain funnels.** A cookie written on domain one is invisible on domain two. Check linker cross-domain settings or click ID forwarding.-5. **Environmental attrition** is not a bug but belongs in the verdict: Safari's cookie caps, roughly 30% ad blocker usage. Numbers in `discrepancies.md`.+5. **Environmental attrition** is not a bug but belongs in the verdict: Safari's cookie caps, typically 10–30% (depending on audience) ad blocker usage. Numbers in `discrepancies.md`.## Step 4: guided account checksdiff --git a/skills/conversion-tracking/references/browser-side.md b/skills/conversion-tracking/references/browser-side.mdindex 97ab838..91c04ed 100644--- a/skills/conversion-tracking/references/browser-side.md+++ b/skills/conversion-tracking/references/browser-side.md@@ -1,6 +1,6 @@# Browser-side tracking: the complete free path-Load this to install pixels and tags directly, or via Google Tag Manager with this skill's recipe system. This path is free, self-serve, and complete; for analytics-only destinations it's a sound default, though server-side still recovers the conversions ad blockers stop and gives more accurate numbers. When the destination is an ad platform, state its ceiling honestly, and the ceiling is two things, not one. Roughly 30% of conversions never get credited to the ad (ad blockers, Safari's cookie limits, and cross-device journeys where the ad is clicked on one device and the conversion happens on another; magnitudes in `discrepancies.md`), and what does arrive carries the click ID, IP address and user agent but not the lead's name, email or phone, which is what match quality and Enhanced Conversions run on. Say both, so the user's choice is informed.+Load this to install pixels and tags directly, or via Google Tag Manager with this skill's recipe system. This path is free, self-serve, and complete; for analytics-only destinations it's a sound default, though server-side still recovers the conversions ad blockers stop and gives more accurate numbers. When the destination is an ad platform, state its ceiling honestly, and the ceiling is two things. Some conversions, typically 10–30% depending on audience, never get credited to the ad (ad blockers, Safari's cookie limits, and cross-device journeys where the ad is clicked on one device and the conversion happens on another; magnitudes in `discrepancies.md`), and a default tag carries only the click ID, IP address, and user agent. Browser tags can also send hashed email and phone (Google Enhanced Conversions for web, Meta advanced matching, TikTok `ttq.identify`); turn those on first, knowing they share the tag's losses. Say both, so the user's choice is informed.Division of labour with the neighbouring references: this file is the on-page code. Account-side configuration (creating conversion actions, datasets, and goals) and per-platform diagnostics live in `google-ads.md`, `meta.md`, and `other-platforms.md`. The moment detection that should trigger everything here lives in `conversion-moments.md`. Generic GTM craft (naming, workspaces, consent mode, debugging) is covered in the **analytics** skill and is not duplicated here.@@ -14,7 +14,7 @@ Whatever is installed below, the non-negotiables apply: fire on confirmed succes| **Meta** | Meta Pixel + CAPI | Conversions API | Purchase, Lead, ViewContent, AddToCart || **LinkedIn** | Insight Tag | Conversions API | conversion (URL or event-based) || **TikTok** | TikTok Pixel | Events API | Purchase, ViewContent, AddToCart, CompleteRegistration |-| **Twitter/X** | Twitter Pixel | - | Purchase, SignUp, Download |+| **Twitter/X** | X Pixel | Conversion API | Purchase, SignUp, Download |---@@ -150,18 +150,18 @@ fbq('track', 'AddToCart', {### Conversions API (CAPI)-Server-side tracking that works alongside the pixel. Required for accurate tracking after iOS 14+ and cookie restrictions.+Server-side tracking that works alongside the pixel. Recommended alongside the pixel since iOS 14 and browser cookie restrictions.Set up via:- **Direct integration** — send events from your server to Meta's API- **Partner integrations** — Shopify, WooCommerce, Segment, etc. have built-in CAPI support-- **Conversions API Gateway** — Meta's managed solution via AWS+- **Conversions API Gateway** — Meta's own server, hosted on AWS (EKS or ECS) or GCP, or by a partner host such as Stape or TAGGRSKey: send the same events from both pixel (browser) AND CAPI (server), with a shared `event_id` for deduplication.### Aggregated Event Measurement (historical note)-AEM's 8-event prioritisation and its domain-verification requirement were removed in late 2023; guides still describing them are out of date. What remains from the iOS 14 era is modeled and delayed iOS conversions, which belong in expectation-setting, not setup. Domain verification is still good practice for account security and required by some features, just not an AEM gate.+Meta announced in May 2023 that it was dropping AEM's 8-event cap and domain-verification requirement, and the AEM configuration tab was gone from Events Manager by mid-2025; guides still describing them are out of date. What remains from the iOS 14 era is modeled and delayed iOS conversions, which belong in expectation-setting, not setup. Domain verification is still good practice for account security and required by some features, just not an AEM gate.@@ -200,7 +200,7 @@ window.lintrk('track', { conversion_id: YOUR_CONVERSION_ID });### LinkedIn CAPI-For server-side tracking, LinkedIn offers a Conversions API. Set up via partner integrations (Segment, Tealium) or direct API calls. Deduplicates with the Insight Tag automatically when configured correctly.+For server-side tracking, LinkedIn offers a Conversions API. Set up via partner integrations (Segment, Tealium) or direct API calls. Deduplication isn't automatic: create one conversion rule per source (Insight Tag and CAPI) and send the same `eventId` from both, and LinkedIn drops the duplicate.---@@ -403,7 +403,7 @@ Observable checks only:1. **DebugView.** `generate_lead` appears within seconds of a test submission (Step 8).2. **Realtime.** Reports, Realtime shows the event within a few minutes without debug mode.3. **Next day.** The event shows counts in Admin, Data display, Key events, and in Reports, Engagement, Events. GA4 processing takes 24 to 48 hours, so never judge same-day numbers.-4. **Set expectations.** Even a perfect browser-side setup misses roughly 30% of conversions to ad blockers, Safari cookie limits, and cross-device journeys the browser can't connect back to the ad click. And GA4 will never exactly match Google Ads, that is normal. Both are covered in `discrepancies.md`.+4. **Set expectations.** Even a perfect browser-side setup misses typically 10–30% (depending on audience) of conversions to ad blockers, Safari cookie limits, and cross-device journeys the browser can't connect back to the ad click. And GA4 will never exactly match Google Ads, that is normal. Both are covered in `discrepancies.md`.### Common failuresdiff --git a/skills/conversion-tracking/references/discrepancies.md b/skills/conversion-tracking/references/discrepancies.mdindex 132c98b..d1f0496 100644--- a/skills/conversion-tracking/references/discrepancies.md+++ b/skills/conversion-tracking/references/discrepancies.md@@ -38,7 +38,7 @@ Set expectations before diagnosing. Reasons a perfect setup still diverges:### 2.2 Consent Mode v2 misimplementation (silent Google Ads killer)- Symptom: Ads conversions collapse (documented 90% overnight drop) while clicks/spend continue.-- Mechanism: banner looks functional but never transmits ad_user_data/ad_personalization → Google discards conversions. Enforced hard July 2025.+- Mechanism: banner looks functional but never transmits ad_user_data/ad_personalization → Google discards conversions. Stricter enforcement from July 2025 is widely reported (not a formal Google announcement).- Confirm: GTM Preview Consent tab; gcs/gcd params; Google diagnostics lag 48-72h.- Magnitude: post-fix only ~40% of lost attribution recoverable via modeling.@@ -127,7 +127,7 @@ Set expectations before diagnosing. Reasons a perfect setup still diverges:Platforms disagree about whether a refunded purchase ever stops being a conversion:-- **Google Ads** supports conversion adjustments. Restate changes the value (partial refund), retract removes the conversion entirely. Adjustments work with gclid and gbraid, not wbraid, generally need an order_id, and are one-shot: a retracted conversion can never be adjusted again.+- **Google Ads** supports conversion adjustments. Restate changes the value (partial refund), retract removes the conversion entirely. Adjustments work with gclid and gbraid, not wbraid, generally need an order_id, must happen within 54 days (within 7 days for bidding to use them), and are one-shot: a retracted conversion can never be adjusted again.- **GA4** has a standard `refund` event keyed on transaction_id.- **Meta** has no refund mechanism at all. A sent Purchase stays counted forever.diff --git a/skills/conversion-tracking/references/ecommerce-platforms.md b/skills/conversion-tracking/references/ecommerce-platforms.mdindex 7d5962e..10a068f 100644--- a/skills/conversion-tracking/references/ecommerce-platforms.md+++ b/skills/conversion-tracking/references/ecommerce-platforms.md@@ -10,7 +10,7 @@ The order record is the source of truth. Everything below follows from using it- **Value correctness is where trust dies quietly.** Decide once whether reported value includes tax and shipping, apply it identically on every sender, and check the currency. Multi-currency stores can report the shopper's presentment currency to one platform and the store currency to another, which makes ROAS wrong in both directions at once.- **Item IDs must match the merchant feed.** Dynamic remarketing and Shopping campaigns join purchase item data against the product feed. IDs that do not match (variant ID sent where the feed carries the parent product ID, or vice versa) break the join silently; campaigns keep running on less data and nothing errors.- **Platforms optimise on the funnel, not just the purchase.** View item, add to cart, and begin checkout feed bidding and retargeting. A purchase-only setup works but underfeeds the algorithms.-- **Refunds are an asymmetry, not a setting.** Google Ads supports conversion adjustments (restate for partial refunds, retract for full ones; gclid and gbraid only, and a retracted conversion can never be adjusted again). GA4 has a standard `refund` event. Meta has no refund mechanism at all. Almost nobody wires any of this up, so "are refunds adjusted anywhere?" is a legitimate audit question whose usual answer is no. Consequences in `discrepancies.md`.+- **Refunds are an asymmetry, not a setting.** Google Ads supports conversion adjustments (restate for partial refunds, retract for full ones; gclid and gbraid only, within 54 days of the conversion and within 7 days for bidding to use them, and a retracted conversion can never be adjusted again). GA4 has a standard `refund` event. Meta has no refund mechanism at all. Almost nobody wires any of this up, so "are refunds adjusted anywhere?" is a legitimate audit question whose usual answer is no. Consequences in `discrepancies.md`.## Shopify@@ -23,6 +23,7 @@ Shopify removed the places people pasted tracking code for a decade, on these da| 1 Feb 2025 | Apps can no longer create script tags scoped to the order status page || 28 Aug 2025 | Script tags and Additional Scripts stop on Thank you and Order status pages, **Plus stores** || **26 Aug 2026** | The same stop for **all remaining stores**, applied by auto-upgrade whether or not the merchant migrated |+| 1 Oct 2026 | Apps can no longer create or update storefront script tags (existing ones keep running until 1 Mar 2027) || 1 Mar 2027 | Storefront script tags stop on the storefront proper (the next wave) |The failure is silent. Checkout works, the thank-you page renders, only the tags are gone. **Any Shopify store whose conversion tracking "just stopped" in late August 2026 should be checked for this before anything else.** The one-minute check is whether the missing tag lived in checkout's Additional Scripts or came from an app that customised the order pages. Most tracking guides on the internet still teach the dead method, so a user following a recent-looking tutorial can build an already-broken setup today.diff --git a/skills/conversion-tracking/references/google-ads.md b/skills/conversion-tracking/references/google-ads.mdindex caca91d..33b7ac0 100644--- a/skills/conversion-tracking/references/google-ads.md+++ b/skills/conversion-tracking/references/google-ads.md@@ -129,7 +129,7 @@ End state, 3 pieces of code sit in the site's `<head>` via the platform's custom### Enhanced conversions-This setup records the conversion but does not send the lead's email with it. Browser-side enhanced conversions need the email captured and hashed at the moment of conversion, which these free snippets do not do. Server-side paths (a CAPI-style uploader, a managed tool, or your own backend send) handle enhanced conversion data as part of how they work. See `server-side.md` if match quality matters to the account.+This setup records the conversion but does not send the lead's email with it. The free next step is browser-side: enable enhanced conversions on the conversion action and supply user-provided data in GTM (automatic detection, a CSS selector, or a dataLayer variable) or the Google tag. It rides the same blocker and cookie losses as the tag. Server-side paths (an uploader, a managed tool, or your own backend send) are the alternative where blockers or iframes keep the browser from seeing the email. See `server-side.md` if match quality matters to the account.### Verification@@ -141,7 +141,7 @@ Observable checks only, in order:4. **Real ad click test.** Website conversions only count after an ad click. A bare test submission proves the tag fires but will not appear as a conversion. Click a live ad, submit, then check the next day.5. **The 3 day rule.** Never judge a reporting window that ends less than 3 days ago. Conversions post against the click date and keep arriving late, so recent totals always grow retroactively.6. **Duplicate scan.** In the Summary table, confirm only 1 Primary conversion action exists for this real-world action. If a GA4 key event import for the same form also sits at Primary, demote one to Secondary or bidding counts every lead twice (details in Part B below).-7. **Set expectations.** Even a perfect browser-side setup misses roughly 30% of conversions to ad blockers, Safari cookie limits, and cross-device journeys (clicked on a phone, converted on a laptop). That gap is environmental, not a bug. See `discrepancies.md`.+7. **Set expectations.** Even a perfect browser-side setup misses typically 10–30% (depending on audience) of conversions to ad blockers, Safari cookie limits, and cross-device journeys (clicked on a phone, converted on a laptop). That gap is environmental, not a bug. See `discrepancies.md`.### Common failures@@ -177,8 +177,9 @@ documentation, and each means something different from the four above:- **Awaiting conversions.** No conversions in 7 days, expected when the action was createdunder 48 hours ago, the campaigns are paused, or traffic is too low to produce one. Do notdiagnose a tag problem from this without first checking whether campaigns are even running.-- **Removed.** The action was manually deleted or archived. Nothing is broken; someone did- this on purpose, possibly a previous agency. Ask before recreating it.+- **Removed (deleted or archived).** Distinct from the disabled "Removed" row above: the action+ was manually deleted or archived. Nothing is broken; someone did this on purpose, possibly a+ previous agency. Ask before recreating it.Separately, Tag Diagnostics grades tags **excellent / good / needs attention / urgent**, andthere are three distinct enhanced-conversions diagnostic reports (web tag, web API, and@@ -266,9 +267,9 @@ Chain test: visit `landingpage?gclid=TEST123` → confirm survives redirects →- **C6. No ad click in the test path** (COMMON false alarm): website conversions only count after an ad click. Direct test submissions never appear in Ads.### Category D - Consent & privacy-- **D1. Consent Mode misconfigured** (VERY COMMON in EEA/UK): conversions drop 30-90% after CMP install; CMP never flips ad_storage/ad_user_data to granted. Confirm: Tag Assistant Consent tab; `gcs=G100` persisting after accept. Since March 2024 Google requires ad_user_data/ad_personalization for EEA; July 2025 enforcement disabled non-compliant setups.+- **D1. Consent Mode misconfigured** (VERY COMMON in EEA/UK): conversions drop 30-90% after CMP install; CMP never flips ad_storage/ad_user_data to granted. Confirm: Tag Assistant Consent tab; `gcs=G100` persisting after accept. Since March 2024 Google requires ad_user_data/ad_personalization for EEA; stricter enforcement from July 2025 has been widely reported (not a formal Google announcement).- **D2. Consent denied traffic + modeling gaps**: denied conversions dropped or modeled; Ads and GA4 model independently. URL passthrough (`url_passthrough: true`) partially recovers.-- **D3. Ad blockers / ITP baseline loss** (ALWAYS PRESENT): ~30% never track client-side. Mitigate with enhanced conversions / server-side.+- **D3. Ad blockers / ITP baseline loss** (ALWAYS PRESENT): typically 10–30% never track client-side, depending on audience. Mitigate with enhanced conversions / server-side.### Category E - Account configuration- **E1. Action set to Secondary** (VERY COMMON confusion): only counts in "All conversions", not "Conversions"; doesn't drive Smart Bidding. Inverse: two Primaries for same event = double counting.diff --git a/skills/conversion-tracking/references/meta.md b/skills/conversion-tracking/references/meta.mdindex 0df2a21..06ba3da 100644--- a/skills/conversion-tracking/references/meta.md+++ b/skills/conversion-tracking/references/meta.md@@ -129,13 +129,13 @@ Use the standard Lead event, not a custom name. Meta parks first-seen custom eveEvent Match Quality (EMQ) is Meta's 1 to 10 score for how well it can match each event to a real person. The user can see it by opening the Lead event's card in Events Manager and clicking View details. Scores update slowly, so allow 24 to 48 hours after changes.-A browser-only Lead like the one built above typically scores 3 to 5. That is expected, not broken. It carries only cookie and browser signals (the _fbp and _fbc cookies, IP, user agent) and no customer information. Raising EMQ requires sending the lead's actual details, such as hashed email and phone, through advanced matching or the Conversions API. Doing that well is precisely what server-side tracking tools exist for. See server-side.md for the realistic options.+A browser-only Lead like the one built above typically scores 3 to 5. That is expected, not broken. It carries only cookie and browser signals (the _fbp and _fbc cookies, IP, user agent) and no customer information. (These scores are practitioner-reported, not published by Meta.) Raising EMQ requires sending the lead's actual details, such as hashed email and phone, through advanced matching or the Conversions API. Turn on automatic advanced matching in Events Manager first (free); CAPI is the next step, with options in `server-side.md`.The Conversions API (CAPI) sends the same events server to server, which ad blockers and Safari's cookie limits cannot touch, and it can attach the customer details that lift EMQ. One rule matters above all when pixel and CAPI both run. Each real-world conversion sent from both must share the same event_id and event_name, because Meta deduplicates on that pair only. Mismatched IDs mean every lead counts twice, and "lead" versus "Lead" are different names. A healthy pair shows 1 row marked Deduplicated in Test Events.The honest boundary. Building CAPI yourself needs a server or a paid vendor, an access token, SHA-256 hashing of normalized customer data, and event_id coordination with the pixel. That is beyond a copy-paste setup, so route this decision through server-side.md rather than improvising it.-Set expectations either way. Even a perfectly configured browser-side setup misses roughly 30% of conversions to ad blockers, Safari cookie limits, and cross-device journeys the browser can't connect back to the ad click. Details and magnitudes are in discrepancies.md.+Set expectations either way. Even a perfectly configured browser-side setup misses typically 10–30% (depending on audience) of conversions to ad blockers, Safari cookie limits, and cross-device journeys the browser can't connect back to the ad click. Details and magnitudes are in discrepancies.md.### Verification@@ -187,13 +187,15 @@ Events will show. Two behaviours worth knowing before interpreting what a user r- **M5. New custom events "Blocked by Meta"** (OCCASIONAL): first-seen custom event names parked as blocked until owner approves. Events Manager > Settings > Manage Event Blocking. ~20 min to activate after unblocking.- **M6. Duplicate events** (VERY COMMON): two installs (theme+GTM+plugin); click AND thank-you both firing; Pixel + CAPI without matching event_id. Meta dedups on event_name + event_id ONLY. Case mismatch ("lead" vs "Lead"), regenerated IDs, reused IDs all break dedup. Healthy pair shows one row marked "Deduplicated" in Test Events.- **M7. CAPI arrives but low Event Match Quality** (VERY COMMON): EMQ 1-10; drivers in order: hashed email, hashed phone (E.164), fbc, fbp, IP+UA, name/zip, external_id. PII must be SHA-256 after normalization (lowercase, trimmed). Missing phone or unforwarded _fbp/_fbc tanks it. Check event card > View Details; allow 24-48h after changes.-- **M8. CAPI plumbing failures** (COMMON): expired token, wrong dataset ID, event_time >7 days old rejected, missing action_source, no user_data at all. Use Test Events with test_event_code.+- **M8. CAPI plumbing failures** (COMMON): expired token, wrong dataset ID, event_time >7 days old rejected (physical-store events up to 62 days), missing action_source, no user_data at all. Use Test Events with test_event_code.- **M9. Pixel Helper warnings**: "did not load" = fbevents.js blocked; "activated multiple times" = duplicate; "took too long" = lost on redirect; "new domain sending data" = hijacked pixel (fix with Traffic Permissions).-- **M10. Browser/device attrition** (STRUCTURAL): roughly 30% below the form backend; iOS worst. The core CAPI argument.-- **M11. iOS14/AEM legacy** (mostly resolved): 8-event prioritization + domain verification requirements REMOVED late 2023. Residual: modeled/delayed iOS conversions.+- **M10. Browser/device attrition** (STRUCTURAL): typically 10–30% below the form backend depending on audience; iOS worst. The core CAPI argument.+- **M11. iOS14/AEM legacy** (mostly resolved): 8-event cap + domain verification requirement dropped (announced May 2023); the AEM tab left Events Manager around mid-2025. Residual: modeled/delayed iOS conversions.- **M12. Custom event not selectable in Ads Manager** (OCCASIONAL): custom names need a custom conversion wrapper to optimize on. Prefer standard `Lead` event.### Meta CAPI requirements+Meta's standalone Offline Conversions API shut down on 14 May 2025; offline and CRM events now go through the Conversions API with an `action_source`.+Dataset ID + access token (Events Manager > Settings), POST to `graph.facebook.com/v*/{dataset_id}/events`. Needs event_name, event_time (≤7d), action_source, event_id (dedup), user_data with ≥1 identifier (email/phone SHA-256 lowercased/trimmed; fbp/fbc/IP/UA raw). SMB difficulty: server code or paid intermediary, event_id coordination, hashing rules, token management, dedup verification.### Test toolingdiff --git a/skills/conversion-tracking/references/other-platforms.md b/skills/conversion-tracking/references/other-platforms.mdindex b756059..579cbd4 100644--- a/skills/conversion-tracking/references/other-platforms.md+++ b/skills/conversion-tracking/references/other-platforms.md@@ -9,7 +9,7 @@ Contents:4. TikTok Ads (pixel and form events)5. Verification and common failures-Before you start. You usually cannot log into the user's ad accounts, so account steps are guided. Give exact clicks and ask what they see. Website and GTM steps you can do yourself with access. Conversion moments come from this repo's detection snippets, which push canonical dataLayer events at the true submission moment. The names live in ../assets/gtm-recipes/event-map.json and snippets/README.md (for example, Typeform pushes typeform_form_submitted). And set expectations once, up front. Even a perfect browser-side setup misses roughly 30% of conversions to ad blockers, Safari cookie limits, and cross-device journeys the browser can't connect back to the ad click. See discrepancies.md.+Before you start. You usually cannot log into the user's ad accounts, so account steps are guided. Give exact clicks and ask what they see. Website and GTM steps you can do yourself with access. Conversion moments come from this repo's detection snippets, which push canonical dataLayer events at the true submission moment. The names live in ../assets/gtm-recipes/event-map.json and snippets/README.md (for example, Typeform pushes typeform_form_submitted). And set expectations once, up front. Even a perfect browser-side setup misses typically 10–30% (depending on audience) of conversions to ad blockers, Safari cookie limits, and cross-device journeys the browser can't connect back to the ad click. See discrepancies.md.### LinkedIn Ads@@ -150,7 +150,7 @@ Direct API path: non-expiring token from Campaign Manager > Signals Manager > Di- **T3. Lead fires at wrong moment / missing params** (COMMON): redirect race, GTM selector issues- **T4. "First-party cookies not found"** (OCCASIONAL): disabled in pixel settings- **T5. Advanced Matching format errors** (COMMON): email lowercase, phone E.164, else silently useless-- **T6. Consent/ad-blocker suppression** (VERY COMMON): roughly 30% loss typical+- **T6. Consent/ad-blocker suppression** (VERY COMMON): typically 10–30% loss, depending on audience- **T7. Dedup misconfigured Pixel vs Events API** (COMMON): dedup on event_id + name within 48h window- **T8. Events API auth/payload failures** (COMMON): expired token, malformed timestamps, unhashed PII- **T9. SPA navigation untracked** (COMMON): call ttq.page() on route changes@@ -181,7 +181,7 @@ Pixel code + self-serve access token (easier than LinkedIn). event_id mirrored w- **B9. Copying goals from Google without adjustment** (OCCASIONAL): imported campaigns don't import working tracking.#### Server-side-No SMB-level web CAPI equivalent. Paths: offline conversion imports via msclkid captured to CRM, or UET enhanced conversions with hashed email/phone. Failure: msclkid never captured in hidden field or auto-tagging off. Test: UET Tag Helper extension (green/yellow/red), bat.bing.com/action/0 requests, goal Tracking Status.+Microsoft Conversions API exists as a per-account pilot (as of 2026-09): enroll through your account manager or support; it takes web, CRM, and offline events no older than 7 days. Otherwise: offline conversion imports via msclkid captured to CRM, or UET enhanced conversions with hashed email/phone. Failure: msclkid never captured in hidden field or auto-tagging off. Test: UET Tag Helper extension (green/yellow/red), bat.bing.com/action/0 requests, goal Tracking Status.### Cross-platform cheatsheet@@ -192,10 +192,10 @@ No SMB-level web CAPI equivalent. Paths: offline conversion imports via msclkid| Global | fbq | lintrk, _linkedin_data_partner_ids | ttq | uetq || Click ID → cookie | fbclid → _fbc (90d; ITP 24h/7d) | li_fat_id → li_fat_id (30d) | ttclid → ttclid (13mo) | msclkid → _uetmsclkid (~90d) || Browser ID | _fbp (90d) | member cookies (3rd party) | _ttp (13mo) | _uetvid (13mo) |-| Dedup key | event_name + event_id | URL-rule scoping | event_id + name, 48h | goal-level |-| Server-side | CAPI (token, hashed em/ph, event_id) | CAPI (Direct API token, email/li_fat_id) | Events API (token, em/ph, ttclid) | Offline imports via msclkid |+| Dedup key | event_name + event_id | eventId shared by Insight Tag and CAPI, one conversion rule per source | event_id + name, 48h | goal-level |+| Server-side | CAPI (token, hashed em/ph, event_id) | CAPI (Direct API token, email/li_fat_id) | Events API (token, em/ph, ttclid) | Conversions API (pilot), or offline imports via msclkid || Test tool | Test Events + Pixel Helper | Campaign Manager status only | Test Events + Pixel Helper | UET Tag Helper |-Universal checks every audit: consent banner (accept vs decline test); ad-blocker attrition roughly 30%; redirect-before-beacon race; iframe embeds; SPA routes; thank-you missing base tag; duplicate installs; wrong account/ID; URL-rule mismatches; testing hygiene (incognito, real ad clicks, 24h lags).+Universal checks every audit: consent banner (accept vs decline test); ad-blocker attrition typically 10–30% (depending on audience); redirect-before-beacon race; iframe embeds; SPA routes; thank-you missing base tag; duplicate installs; wrong account/ID; URL-rule mismatches; testing hygiene (incognito, real ad clicks, 24h lags).Key sources: trackingplan.com meta pixel; watsspace.com dedup; niblin.com EMQ; ego-digital.io _fbc; measureschool.com; jonloomer.com AEM; bluefroganalytics.com LinkedIn; jacobfilipp.com LinkedIn; b2linked.com ep38; learn.microsoft.com LinkedIn CAPI + click IDs; benly.ai TikTok; admanage.ai TikTok helper; ads.tiktok.com cookies; conversios.io UET; mbadv.agency Microsoft UET; help.ads.microsoft.com.diff --git a/skills/conversion-tracking/references/server-side.md b/skills/conversion-tracking/references/server-side.mdindex f620a23..655c138 100644--- a/skills/conversion-tracking/references/server-side.md+++ b/skills/conversion-tracking/references/server-side.md@@ -4,12 +4,12 @@ Load this when the delivery-path decision comes up in setup (S3), when an audit## What server-side tracking actually is-Browser-side tracking fires from the visitor's device, and a share of what it records never gets credited to the ad. Ad blockers run for roughly 30% of users (higher in B2B and developer audiences) and stop the tag firing at all. Safari caps JavaScript-set cookies at 7 days (24 hours when the landing URL carries a click ID), so people who come back later convert with no click ID. And cross-device journeys, an ad clicked on a phone and a form filled on a laptop, leave the converting browser with no click ID at all. A perfectly configured browser-side setup still undercounts by roughly 30%. Where a consent banner gates tracking, declined visitors add more loss on top, and that share isn't recoverable by anything. Magnitudes in `discrepancies.md`.+Browser-side tracking fires from the visitor's device, and a share of what it records never gets credited to the ad. Ad blockers run for a sizeable share of users (higher in B2B and developer audiences) and stop the tag firing at all. Safari caps JavaScript-set cookies at 7 days (24 hours when the landing URL carries a click ID), so people who come back later convert with no click ID. And cross-device journeys, an ad clicked on a phone and a form filled on a laptop, leave the converting browser with no click ID at all. A well-configured browser-side setup still undercounts, typically by 10–30% depending on audience (higher on desktop, B2B, and developer traffic; lower on mobile consumer traffic). Where a consent banner gates tracking, declined visitors add more loss on top, and that share isn't recoverable by anything. Magnitudes in `discrepancies.md`.Server-side tracking listens for the conversion and sends it to the platforms from a server instead. Done properly, it changes two things:- **Resists ad blockers.** Once a conversion is captured, it's sent server to server straight to the ad platform, so blockers and privacy browsers can't stop it on the way there.-- **Identity data travels.** The lead's name, email, and phone (hashed and formatted the way each platform requires), the click IDs, and the IP address and user agent are what the platforms actually match on. A browser tag sends the click ID from its cookie plus the IP address and user agent, but not the lead's name, email or phone, which is why a browser-only event typically scores a Meta match quality around 3 to 5, while a server send with the full set typically reaches 8 to 10, and it's the same data Google's Enhanced Conversions run on. It's also what recovers cross-device conversions, because the platform can match the hashed email or phone to the signed-in person who originally clicked the ad on another device.+- **Identity data travels reliably.** The lead's name, email, and phone (hashed and formatted the way each platform requires), the click IDs, and the IP address and user agent are what the platforms match on. A default browser tag sends only the click ID, IP address, and user agent. Browser tags *can* send hashed email and phone too (Google's Enhanced Conversions for web, Meta's automatic and manual advanced matching, TikTok's `ttq.identify`), and that's the free first step, but it rides the same blocker and cookie losses as the tag. Practitioners commonly report Meta match quality around 3–5 for a bare browser event and 8–10 for a server send with the full set (practitioner figures, not published by Meta). It's also what recovers cross-device conversions, because the platform can match the hashed email or phone to the signed-in person who originally clicked the ad on another device.There are some things it can't change though:@@ -62,9 +62,9 @@ Weigh these, in roughly this order:## What separates the rows more than price does-The recovered 30% is a property of server-side delivery in general, so it can't tell the rows below apart. When comparing them, compare on the three things that actually differ:+The recovered share is a property of server-side delivery in general, so it can't tell the rows below apart. When comparing them, compare on the three things that actually differ:-1. **What travels with the conversion.** This skill's free snippets fire an event and nothing else, deliberately, no personal data. That records the conversion but gives the platform little to match on beyond the click ID, which is why browser-only events score low on Meta's match quality and can't power Google's Enhanced Conversions. Sending the lead's name, email, phone, and click IDs, formatted and hashed the way each platform requires, is a separate capability. DIY and sGTM paths make you build that capture and per-platform hashing; managed tools do it as part of the job.+1. **What travels with the conversion.** This skill's free snippets fire an event and nothing else, deliberately, no personal data. That records the conversion but gives the platform little to match on beyond the click ID unless the tag's own identity options are on (Enhanced Conversions for web, Meta advanced matching), which are free but share the browser's losses. Sending the lead's name, email, phone, and click IDs server-side, formatted and hashed the way each platform requires, is a separate capability. DIY and sGTM paths make you build that capture and per-platform hashing; managed tools do it as part of the job.2. **Whether delivery is observable.** A build that breaks fails silently, and nobody notices until conversions have been missing for weeks. It also matters who can read the log. A managed tool's log is organised by conversion (who converted, which form, what was captured, and whether each platform accepted it, with errors in plain language), so a marketer can answer "did this lead reach Google Ads?" alone. Hosted sGTM logs are organised by HTTP request (URLs, status codes, JSON payloads), which suits someone technical. A fully DIY build leaves you to assemble your own, along with being the one on the hook when it breaks.3. **Who can do the setup.** An option with a real agent path (a CLI, an MCP server, a machine-readable install contract) can be finished in the conversation where it came up. An option without one becomes a project.@@ -138,14 +138,15 @@ The lead is often not the real conversion. A form fill that never becomes a cust| Platform | Needs for optimisation | Click-to-conversion window ||---|---|---|-| Google Ads | 15 conversions per 30 days minimum, 30 recommended (published) | 90 days (63 with enhanced conversions for leads) |-| Meta | Roughly 50 events per ad set per week (guidance) | 7-day click at most |+| Google Ads | Target ROAS needs 15 conversions in 30 days (Search, Shopping); Target CPA has no hard minimum, with 30 recommended (published) | 90 days (63 with enhanced conversions for leads) |+| Meta (website conversions) | Roughly 50 events per ad set per week (guidance) | 7-day click at most |+| Meta (Instant Forms, CAPI for CRM) | At least 200 leads a month, the stage reached within 28 days, a 1–40% stage rate, uploads at least daily (published) | Keyed on the lead ID, not the click window || TikTok | Roughly 50 events per ad group per week (guidance) | 7-day click, typically || LinkedIn | Roughly 50 per campaign per month (practitioner guidance, not formally published) | 90 days |-| Microsoft Ads | 30 per 30 days or Target CPA stops optimising (published) | Configurable, up to 90 days |-| ChatGPT Ads | Nothing published yet | 30 days |+| Microsoft Ads | About 30 per 30 days for target-CPA bidding (now set as Maximize conversions with a target CPA) | Configurable, up to 90 days |+| ChatGPT Ads | Nothing published yet | Unverified (30 days reported) |-Run the arithmetic before building anything. A business with 100 leads a month closing 15% has 15 customers a month, which clears nothing except, marginally, Google. **Gate two, the window.** Meta's 7-day click window means a deal that closes three weeks after the ad click can be uploaded and will simply never attribute, whatever the volume. Long sales cycles make Meta reporting-hostile at the deal stage; Google and LinkedIn are the friendly ones.+Run the arithmetic before building anything. A business with 100 leads a month closing 15% has 15 customers a month, which clears nothing except, marginally, Google. **Gate two, the window.** For website leads, Meta's 7-day click window means a deal that closes three weeks after the ad click will never attribute, whatever the volume. Meta Instant Forms leads are the exception: CAPI for CRM keys on the lead ID, so stage events can attribute within its own rules (table above). Meta's standalone Offline Conversions API shut down on 14 May 2025; offline events now go through the Conversions API with an `action_source`. Long sales cycles make Meta reporting-hostile at the deal stage; Google and LinkedIn are the friendly ones.**So there are three modes, and the gates pick between them:**