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: require consent on every send tag in the GTM recipes
Corey Hainesb67c0136bef5
diff --git a/skills/conversion-tracking/assets/gtm-recipes/README.md b/skills/conversion-tracking/assets/gtm-recipes/README.mdindex 9cabe7c..f7ef03f 100644--- a/skills/conversion-tracking/assets/gtm-recipes/README.md+++ b/skills/conversion-tracking/assets/gtm-recipes/README.md@@ -30,6 +30,25 @@ No Python available? Do the merge by hand: import the detect recipe as-is, then2. **Publish** the workspace. Tags in an unpublished workspace record nothing.3. If the container already had a Conversion Linker tag, delete the duplicate one the recipe added.+## Consent and privacy++Every tag in `send/` ships with GTM's **Additional consent checks** set to "Require additional consent for tag to fire" (`consentStatus: NEEDED` in the JSON):++| Tag | Required consent types |+|---|---|+| Google Ads Conversion | `ad_storage`, `ad_user_data`, `ad_personalization` |+| Conversion Linker | `ad_storage` |+| GA4 Event | `analytics_storage` |+| Meta, TikTok, LinkedIn, Microsoft base tags and conversion tags | `ad_storage` |++The detect listeners themselves stay `NOT_SET`: they only push a dataLayer event and set no cookies.++**The importer must have Consent Mode configured.** These checks read consent state that a consent management platform (CMP) sets through Google Consent Mode, normally from a tag on the Consent Initialization trigger. With no CMP sending consent, GTM treats every type as not granted and none of these tags fire. If the site genuinely needs no consent banner, change the setting (below) rather than leaving tracking silently dead.++Base pixels fire on All Pages. When the visitor grants consent after the page has loaded, the base pixel does not retry by itself. Add a second firing trigger on your CMP's consent-update dataLayer event (for example `cookie_consent_update`) to the base tags so they load as soon as consent arrives.++**To change it:** in GTM open the tag, then Advanced Settings, then Consent Settings, and choose "No additional consent required" or edit the listed types. To change it before import, edit the tag's `consentSettings` in the JSON: `{"consentStatus": "NOT_NEEDED"}`, or `NEEDED` with a `consentType` list of `{"type": "TEMPLATE", "value": "<consent type>"}` items. Google's own tags (Google Ads, Conversion Linker, GA4) also have built-in consent checks, so a site running Consent Mode in advanced mode (cookieless pings before consent) can switch those three to "No additional consent required" and let Consent Mode handle them.+## What browser-side recipes cannot doThese recipes fire conversions from the visitor's browser. Ad blockers (roughly 30% of users), Safari's cookie limits, and consent rejections will silently drop a share of real conversions, and iframe-embedded tools plus multi-platform sending have structural limits. For the honest comparison of browser-side against server-side options, read `../../references/server-side.md`.diff --git a/skills/conversion-tracking/assets/gtm-recipes/send/ga4.json b/skills/conversion-tracking/assets/gtm-recipes/send/ga4.jsonindex 4efaefb..54c89d4 100644--- a/skills/conversion-tracking/assets/gtm-recipes/send/ga4.json+++ b/skills/conversion-tracking/assets/gtm-recipes/send/ga4.json@@ -30,7 +30,7 @@"firingTriggerId": ["201"],"tagFiringOption": "ONCE_PER_EVENT","monitoringMetadata": { "type": "MAP" },- "consentSettings": { "consentStatus": "NOT_SET" }+ "consentSettings": { "consentStatus": "NEEDED", "consentType": { "type": "LIST", "list": [{ "type": "TEMPLATE", "value": "analytics_storage" }] } }}],"trigger": [diff --git a/skills/conversion-tracking/assets/gtm-recipes/send/google-ads.json b/skills/conversion-tracking/assets/gtm-recipes/send/google-ads.jsonindex 8049f73..7826dc0 100644--- a/skills/conversion-tracking/assets/gtm-recipes/send/google-ads.json+++ b/skills/conversion-tracking/assets/gtm-recipes/send/google-ads.json@@ -30,7 +30,7 @@"firingTriggerId": ["2147479553"],"tagFiringOption": "ONCE_PER_EVENT","monitoringMetadata": { "type": "MAP" },- "consentSettings": { "consentStatus": "NOT_SET" }+ "consentSettings": { "consentStatus": "NEEDED", "consentType": { "type": "LIST", "list": [{ "type": "TEMPLATE", "value": "ad_storage" }] } }},{"accountId": "0",@@ -48,7 +48,7 @@"firingTriggerId": ["201"],"tagFiringOption": "ONCE_PER_EVENT","monitoringMetadata": { "type": "MAP" },- "consentSettings": { "consentStatus": "NOT_SET" }+ "consentSettings": { "consentStatus": "NEEDED", "consentType": { "type": "LIST", "list": [{ "type": "TEMPLATE", "value": "ad_storage" }, { "type": "TEMPLATE", "value": "ad_user_data" }, { "type": "TEMPLATE", "value": "ad_personalization" }] } }}],"trigger": [diff --git a/skills/conversion-tracking/assets/gtm-recipes/send/linkedin.json b/skills/conversion-tracking/assets/gtm-recipes/send/linkedin.jsonindex 38170b6..8440b7a 100644--- a/skills/conversion-tracking/assets/gtm-recipes/send/linkedin.json+++ b/skills/conversion-tracking/assets/gtm-recipes/send/linkedin.json@@ -44,7 +44,16 @@"type": "MAP"},"consentSettings": {- "consentStatus": "NOT_SET"+ "consentStatus": "NEEDED",+ "consentType": {+ "type": "LIST",+ "list": [+ {+ "type": "TEMPLATE",+ "value": "ad_storage"+ }+ ]+ }}},{@@ -73,7 +82,16 @@"type": "MAP"},"consentSettings": {- "consentStatus": "NOT_SET"+ "consentStatus": "NEEDED",+ "consentType": {+ "type": "LIST",+ "list": [+ {+ "type": "TEMPLATE",+ "value": "ad_storage"+ }+ ]+ }}}],diff --git a/skills/conversion-tracking/assets/gtm-recipes/send/meta.json b/skills/conversion-tracking/assets/gtm-recipes/send/meta.jsonindex 3d68469..fd6810f 100644--- a/skills/conversion-tracking/assets/gtm-recipes/send/meta.json+++ b/skills/conversion-tracking/assets/gtm-recipes/send/meta.json@@ -44,7 +44,16 @@"type": "MAP"},"consentSettings": {- "consentStatus": "NOT_SET"+ "consentStatus": "NEEDED",+ "consentType": {+ "type": "LIST",+ "list": [+ {+ "type": "TEMPLATE",+ "value": "ad_storage"+ }+ ]+ }}},{@@ -73,7 +82,16 @@"type": "MAP"},"consentSettings": {- "consentStatus": "NOT_SET"+ "consentStatus": "NEEDED",+ "consentType": {+ "type": "LIST",+ "list": [+ {+ "type": "TEMPLATE",+ "value": "ad_storage"+ }+ ]+ }}}],diff --git a/skills/conversion-tracking/assets/gtm-recipes/send/microsoft.json b/skills/conversion-tracking/assets/gtm-recipes/send/microsoft.jsonindex 5e3aa89..8da6ec0 100644--- a/skills/conversion-tracking/assets/gtm-recipes/send/microsoft.json+++ b/skills/conversion-tracking/assets/gtm-recipes/send/microsoft.json@@ -44,7 +44,16 @@"type": "MAP"},"consentSettings": {- "consentStatus": "NOT_SET"+ "consentStatus": "NEEDED",+ "consentType": {+ "type": "LIST",+ "list": [+ {+ "type": "TEMPLATE",+ "value": "ad_storage"+ }+ ]+ }}},{@@ -73,7 +82,16 @@"type": "MAP"},"consentSettings": {- "consentStatus": "NOT_SET"+ "consentStatus": "NEEDED",+ "consentType": {+ "type": "LIST",+ "list": [+ {+ "type": "TEMPLATE",+ "value": "ad_storage"+ }+ ]+ }}}],diff --git a/skills/conversion-tracking/assets/gtm-recipes/send/tiktok.json b/skills/conversion-tracking/assets/gtm-recipes/send/tiktok.jsonindex 397665d..be59ac8 100644--- a/skills/conversion-tracking/assets/gtm-recipes/send/tiktok.json+++ b/skills/conversion-tracking/assets/gtm-recipes/send/tiktok.json@@ -44,7 +44,16 @@"type": "MAP"},"consentSettings": {- "consentStatus": "NOT_SET"+ "consentStatus": "NEEDED",+ "consentType": {+ "type": "LIST",+ "list": [+ {+ "type": "TEMPLATE",+ "value": "ad_storage"+ }+ ]+ }}},{@@ -73,7 +82,16 @@"type": "MAP"},"consentSettings": {- "consentStatus": "NOT_SET"+ "consentStatus": "NEEDED",+ "consentType": {+ "type": "LIST",+ "list": [+ {+ "type": "TEMPLATE",+ "value": "ad_storage"+ }+ ]+ }}}],