[{"data":1,"prerenderedAt":419},["ShallowReactive",2],{"rule-consent-linker-missing-ad-storage":3},{"id":4,"title":5,"body":6,"breadcrumb":382,"coderail":389,"dateModified":408,"datePublished":408,"description":409,"extension":410,"meta":411,"navigation":412,"next":408,"path":413,"prev":408,"schemaType":414,"seo":415,"stem":416,"wide":417,"__hash__":418},"docs\u002Frules\u002Fconsent-linker-missing-ad-storage.md","Conversion Linker missing ad_storage",{"type":7,"value":8,"toc":374},"minimark",[9,16,58,63,88,92,102,106,229,233,273,277,342,346,370],[10,11,12],"p",{},[13,14,15],"strong",{},"Summary",[17,18,19,30,40,46,52],"ul",{},[20,21,22,25,26],"li",{},[13,23,24],{},"rule_id"," — ",[27,28,29],"code",{},"consent-linker-missing-ad-storage",[20,31,32,35,36,39],{},[13,33,34],{},"purpose"," — Detect Conversion Linker tags that require consent but omit ",[27,37,38],{},"ad_storage"," from their consent type list",[20,41,42,45],{},[13,43,44],{},"effect"," — Click attribution breaks for users who accept ad consent but decline analytics consent",[20,47,48,51],{},[13,49,50],{},"layer"," — container",[20,53,54,57],{},[13,55,56],{},"reversibility"," — non-destructive",[59,60,62],"h2",{"id":61},"what-fires-this","What fires this",[10,64,65,66,69,70,73,74,77,78,81,82,84,85,87],{},"The rule targets active tags where ",[27,67,68],{},"t.type === 'gclidw'"," (Conversion Linker), ",[27,71,72],{},"t.consent === 'NEEDED'",", and ",[27,75,76],{},"hasBuiltInCoverage(t, 'ad_storage')"," returns false. Tags that pass all three filters are flagged when ",[27,79,80],{},"t.consentTypes"," is non-empty but does not include ",[27,83,38],{},". Native GTM Conversion Linker templates already carry Built-In ",[27,86,38],{}," coverage and are excluded automatically. Paused tags are excluded.",[59,89,91],{"id":90},"why-it-matters","Why it matters",[10,93,94,95,97,98,101],{},"The Conversion Linker writes GCLID and DCLID parameters to first-party cookies so Google Ads can attribute conversions across page loads. That write is ad-related storage — it requires ",[27,96,38],{}," consent, not ",[27,99,100],{},"analytics_storage",". A Conversion Linker configured with the wrong consent type fires when a user declines analytics but has accepted ad consent, and stalls when a user has only accepted ad consent. Both outcomes break attribution for users who legitimately consented. Regulatory: GDPR Art. 6 (lawful basis), GDPR Art. 7 (consent).",[59,103,105],{"id":104},"example","Before \u002F after",[107,108,109,182],"compare",{},[110,111,113],"compare-col",{"label":112},"Before — flagged",[114,115,120],"pre",{"className":116,"code":117,"language":118,"meta":119,"style":119},"language-json shiki shiki-themes github-light github-dark","{\n  \"type\": \"gclidw\",\n  \"consent\": \"NEEDED\",\n  \"consentTypes\": [\"analytics_storage\"]\n}\n","json","",[27,121,122,131,148,161,176],{"__ignoreMap":119},[123,124,127],"span",{"class":125,"line":126},"line",1,[123,128,130],{"class":129},"sVt8B","{\n",[123,132,134,138,141,145],{"class":125,"line":133},2,[123,135,137],{"class":136},"sj4cs","  \"type\"",[123,139,140],{"class":129},": ",[123,142,144],{"class":143},"sZZnC","\"gclidw\"",[123,146,147],{"class":129},",\n",[123,149,151,154,156,159],{"class":125,"line":150},3,[123,152,153],{"class":136},"  \"consent\"",[123,155,140],{"class":129},[123,157,158],{"class":143},"\"NEEDED\"",[123,160,147],{"class":129},[123,162,164,167,170,173],{"class":125,"line":163},4,[123,165,166],{"class":136},"  \"consentTypes\"",[123,168,169],{"class":129},": [",[123,171,172],{"class":143},"\"analytics_storage\"",[123,174,175],{"class":129},"]\n",[123,177,179],{"class":125,"line":178},5,[123,180,181],{"class":129},"}\n",[110,183,185],{"label":184},"After — fixed",[114,186,188],{"className":116,"code":187,"language":118,"meta":119,"style":119},"{\n  \"type\": \"gclidw\",\n  \"consent\": \"NEEDED\",\n  \"consentTypes\": [\"ad_storage\"]\n}\n",[27,189,190,194,204,214,225],{"__ignoreMap":119},[123,191,192],{"class":125,"line":126},[123,193,130],{"class":129},[123,195,196,198,200,202],{"class":125,"line":133},[123,197,137],{"class":136},[123,199,140],{"class":129},[123,201,144],{"class":143},[123,203,147],{"class":129},[123,205,206,208,210,212],{"class":125,"line":150},[123,207,153],{"class":136},[123,209,140],{"class":129},[123,211,158],{"class":143},[123,213,147],{"class":129},[123,215,216,218,220,223],{"class":125,"line":163},[123,217,166],{"class":136},[123,219,169],{"class":129},[123,221,222],{"class":143},"\"ad_storage\"",[123,224,175],{"class":129},[123,226,227],{"class":125,"line":178},[123,228,181],{"class":129},[59,230,232],{"id":231},"remediation","Remediation",[234,235,236,239,245,252,258,264,270],"ol",{},[20,237,238],{},"Open the flagged Conversion Linker tag in GTM (Google Tag Manager).",[20,240,241,242,244],{},"Confirm it is a custom implementation, not the native GTM template. Native templates carry Built-In ",[27,243,38],{}," coverage and should not trigger this rule.",[20,246,247,248,251],{},"Open the tag's ",[13,249,250],{},"Additional Consent"," settings.",[20,253,254,255,257],{},"Add ",[27,256,38],{}," to the consent type list.",[20,259,260,261,263],{},"Remove any incorrect consent types, such as ",[27,262,100],{},".",[20,265,266,267,269],{},"Confirm your CMP sends the ",[27,268,38],{}," signal to GTM's Consent Mode API before the tag fires.",[20,271,272],{},"Publish the container and verify attribution resumes in Google Ads.",[59,274,276],{"id":275},"metadata","Metadata",[278,279,282,283,288,282,292,296,282,299,303,282,306,309,282,312,316,282,319,323,282,329,332,282,335,339],"dl",{"className":280},[281],"spec-list","\n  ",[284,285,287],"dt",{"id":286},"severity","Severity",[289,290,291],"dd",{},"medium",[284,293,295],{"id":294},"tier","Tier",[289,297,298],{},"optimization",[284,300,302],{"id":301},"category","Category",[289,304,305],{},"consent",[284,307,308],{"id":50},"Layer",[289,310,311],{},"container",[284,313,315],{"id":314},"version","Version",[289,317,318],{},"1",[284,320,322],{"id":321},"effort","Effort",[289,324,325,328],{},[27,326,327],{},"15min"," (about 15 minutes)",[284,330,331],{"id":56},"Reversibility",[289,333,334],{},"non-destructive",[284,336,338],{"id":337},"regulatory","Regulatory",[289,340,341],{},"GDPR Art. 6 (lawful basis), GDPR Art. 7 (consent)",[59,343,345],{"id":344},"see-also","See also",[17,347,348,356,363],{},[20,349,350,355],{},[351,352,354],"a",{"href":353},"\u002Fcategories\u002Fconsent\u002F","Consent rules"," — other rules in this category",[20,357,358,362],{},[351,359,361],{"href":360},"\u002Fhealth-score\u002F","Health score"," — how this rule contributes to the score",[20,364,365,369],{},[351,366,368],{"href":367},"\u002Frules\u002F","Rules catalog"," — browse all rules",[371,372,373],"style",{},"html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":119,"searchDepth":133,"depth":133,"links":375},[376,377,378,379,380,381],{"id":61,"depth":133,"text":62},{"id":90,"depth":133,"text":91},{"id":104,"depth":133,"text":105},{"id":231,"depth":133,"text":232},{"id":275,"depth":133,"text":276},{"id":344,"depth":133,"text":345},[383,386,388],{"label":384,"href":385},"API Reference","\u002F",{"label":387,"href":367},"Rules",{"label":29},{"cards":390,"onpage":402},[391],{"title":392,"tabs":393},"Evaluate",[394,398],{"label":395,"language":396,"code":397},"cURL","bash","curl https:\u002F\u002Fdeveloper.tagmanifest.com\u002Fv1\u002Fevaluate-rule \\\n  -H \"Authorization: Bearer $TM_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"rule_id\":\"consent-linker-missing-ad-storage\",\"url\":\"https:\u002F\u002Fexample.com\"}'\n",{"label":399,"language":400,"code":401},"MCP","text","User: Run consent-linker-missing-ad-storage on https:\u002F\u002Fexample.com\n\n# Tool call\n{\n  \"tool\": \"evaluate_rule\",\n  \"arguments\": {\n    \"rule_id\": \"consent-linker-missing-ad-storage\",\n    \"url\": \"https:\u002F\u002Fexample.com\"\n  }\n}\n",[403,404,405,406,407],{"id":61,"label":62},{"id":90,"label":91},{"id":104,"label":105},{"id":231,"label":232},{"id":275,"label":276},null,"Conversion Linker has consent configured without ad_storage. Native Conversion Linker tags have Built-In ad_storage coverage and are excluded from this check.","md",{},true,"\u002Frules\u002Fconsent-linker-missing-ad-storage","TechArticle",{"title":5,"description":409},"rules\u002Fconsent-linker-missing-ad-storage",false,"5RRZbBrJwr3NNYHsErZOa6jBRCSrLelRz-TWj1UGPPY",1796069483326]