[{"data":1,"prerenderedAt":465},["ShallowReactive",2],{"rule-ecommerce-tool-consent":3},{"id":4,"title":5,"body":6,"breadcrumb":428,"coderail":435,"dateModified":454,"datePublished":454,"description":455,"extension":456,"meta":457,"navigation":458,"next":454,"path":459,"prev":454,"schemaType":460,"seo":461,"stem":462,"wide":463,"__hash__":464},"docs\u002Frules\u002Fecommerce-tool-consent.md","Ecommerce tools without consent",{"type":7,"value":8,"toc":420},"minimark",[9,16,54,59,82,86,89,93,273,277,319,323,388,392,416],[10,11,12],"p",{},[13,14,15],"strong",{},"Summary",[17,18,19,30,36,42,48],"ul",{},[20,21,22,25,26],"li",{},[13,23,24],{},"rule_id"," — ",[27,28,29],"code",{},"ecommerce-tool-consent",[20,31,32,35],{},[13,33,34],{},"purpose"," — Detect ecommerce marketing tools deployed via Custom HTML without GTM consent configured",[20,37,38,41],{},[13,39,40],{},"effect"," — Tools fire regardless of visitor cookie choice; behavioral and commercial data collected without consent",[20,43,44,47],{},[13,45,46],{},"layer"," — container",[20,49,50,53],{},[13,51,52],{},"reversibility"," — non-destructive",[55,56,58],"h2",{"id":57},"what-fires-this","What fires this",[10,60,61,62,65,66,69,70,73,74,77,78,81],{},"The rule checks active Custom HTML tags for ecommerce marketing tool patterns using two methods: parser-side ",[27,63,64],{},"codeAnalysis"," flags (set per tool) and regex matching against the raw tag code. Both share the same tool list as the sibling rule ",[27,67,68],{},"ecommerce-tool-custom-html",". For each matched tag, the rule checks ",[27,71,72],{},"t.consent",". If the value is ",[27,75,76],{},"NOT_NEEDED"," or ",[27,79,80],{},"NOT_SET",", the tag is flagged. Paused tags are excluded. Covered tools include Klaviyo, Segment, Braze, Iterable, mParticle, Omnisend, Drip, and Attentive.",[55,83,85],{"id":84},"why-it-matters","Why it matters",[10,87,88],{},"Custom HTML tags have no built-in consent enforcement in GTM (Google Tag Manager). A native Template Gallery tag can be wired to GTM's consent framework; a Custom HTML tag with raw initialization code cannot. It fires on every page load, regardless of what the visitor selected in the cookie banner, unless a CMP (consent management platform) blocks it at the page level. These tools collect commercial behavioral data — product views, purchase history, email addresses — for marketing automation. That collection requires explicit user consent under GDPR and must honor opt-out signals under CCPA\u002FCPRA. Regulatory: GDPR Art. 6 (lawful basis), CCPA\u002FCPRA.",[55,90,92],{"id":91},"example","Before \u002F after",[94,95,96,189],"compare",{},[97,98,100],"compare-col",{"label":99},"Before — flagged",[101,102,107],"pre",{"className":103,"code":104,"language":105,"meta":106,"style":106},"language-json shiki shiki-themes github-light github-dark","{\n  \"name\": \"Klaviyo - Init\",\n  \"type\": \"html\",\n  \"consent\": \"NOT_SET\",\n  \"code\": \"\u003Cscript>var _learnq = _learnq || [];\\n_learnq.push(['account', 'XXXXXX']);\u003C\u002Fscript>\\n\u003Cscript async src='\u002Fstatic.klaviyo.com\u002Fonsite\u002Fjs\u002Fklaviyo.js'>\u003C\u002Fscript>\"\n}\n","json","",[27,108,109,118,135,148,161,183],{"__ignoreMap":106},[110,111,114],"span",{"class":112,"line":113},"line",1,[110,115,117],{"class":116},"sVt8B","{\n",[110,119,121,125,128,132],{"class":112,"line":120},2,[110,122,124],{"class":123},"sj4cs","  \"name\"",[110,126,127],{"class":116},": ",[110,129,131],{"class":130},"sZZnC","\"Klaviyo - Init\"",[110,133,134],{"class":116},",\n",[110,136,138,141,143,146],{"class":112,"line":137},3,[110,139,140],{"class":123},"  \"type\"",[110,142,127],{"class":116},[110,144,145],{"class":130},"\"html\"",[110,147,134],{"class":116},[110,149,151,154,156,159],{"class":112,"line":150},4,[110,152,153],{"class":123},"  \"consent\"",[110,155,127],{"class":116},[110,157,158],{"class":130},"\"NOT_SET\"",[110,160,134],{"class":116},[110,162,164,167,169,172,175,178,180],{"class":112,"line":163},5,[110,165,166],{"class":123},"  \"code\"",[110,168,127],{"class":116},[110,170,171],{"class":130},"\"\u003Cscript>var _learnq = _learnq || [];",[110,173,174],{"class":123},"\\n",[110,176,177],{"class":130},"_learnq.push(['account', 'XXXXXX']);\u003C\u002Fscript>",[110,179,174],{"class":123},[110,181,182],{"class":130},"\u003Cscript async src='\u002Fstatic.klaviyo.com\u002Fonsite\u002Fjs\u002Fklaviyo.js'>\u003C\u002Fscript>\"\n",[110,184,186],{"class":112,"line":185},6,[110,187,188],{"class":116},"}\n",[97,190,192],{"label":191},"After — fixed",[101,193,195],{"className":103,"code":194,"language":105,"meta":106,"style":106},"{\n  \"name\": \"Klaviyo - Init\",\n  \"type\": \"html\",\n  \"consent\": \"NEEDED\",\n  \"consentTypes\": [\"analytics_storage\", \"ad_storage\"],\n  \"code\": \"\u003Cscript>var _learnq = _learnq || [];\\n_learnq.push(['account', 'XXXXXX']);\u003C\u002Fscript>\\n\u003Cscript async src='\u002Fstatic.klaviyo.com\u002Fonsite\u002Fjs\u002Fklaviyo.js'>\u003C\u002Fscript>\"\n}\n",[27,196,197,201,211,221,232,252,268],{"__ignoreMap":106},[110,198,199],{"class":112,"line":113},[110,200,117],{"class":116},[110,202,203,205,207,209],{"class":112,"line":120},[110,204,124],{"class":123},[110,206,127],{"class":116},[110,208,131],{"class":130},[110,210,134],{"class":116},[110,212,213,215,217,219],{"class":112,"line":137},[110,214,140],{"class":123},[110,216,127],{"class":116},[110,218,145],{"class":130},[110,220,134],{"class":116},[110,222,223,225,227,230],{"class":112,"line":150},[110,224,153],{"class":123},[110,226,127],{"class":116},[110,228,229],{"class":130},"\"NEEDED\"",[110,231,134],{"class":116},[110,233,234,237,240,243,246,249],{"class":112,"line":163},[110,235,236],{"class":123},"  \"consentTypes\"",[110,238,239],{"class":116},": [",[110,241,242],{"class":130},"\"analytics_storage\"",[110,244,245],{"class":116},", ",[110,247,248],{"class":130},"\"ad_storage\"",[110,250,251],{"class":116},"],\n",[110,253,254,256,258,260,262,264,266],{"class":112,"line":185},[110,255,166],{"class":123},[110,257,127],{"class":116},[110,259,171],{"class":130},[110,261,174],{"class":123},[110,263,177],{"class":130},[110,265,174],{"class":123},[110,267,182],{"class":130},[110,269,271],{"class":112,"line":270},7,[110,272,188],{"class":116},[55,274,276],{"id":275},"remediation","Remediation",[278,279,280,283,286,297,310,313,316],"ol",{},[20,281,282],{},"Open each flagged Custom HTML tag in GTM.",[20,284,285],{},"Set \"Additional Consent Status\" to \"NEEDED.\"",[20,287,288,289,292,293,296],{},"Add the appropriate consent type: ",[27,290,291],{},"ad_storage"," for behavioral targeting, ",[27,294,295],{},"analytics_storage"," for analytics-only use.",[20,298,299,300,245,303,245,306,309],{},"If consent is managed at the page level via a CMP, verify the CMP's blocking list includes each tool's script domain (e.g., ",[27,301,302],{},"static.klaviyo.com",[27,304,305],{},"cdn.segment.com",[27,307,308],{},"js.braze.com",").",[20,311,312],{},"Add any missing domains to the CMP's blocking configuration.",[20,314,315],{},"Test in \"deny all\" mode and confirm the tools do not initialize.",[20,317,318],{},"Check whether a Community Template Gallery version exists for each tool — native templates handle consent automatically.",[55,320,322],{"id":321},"metadata","Metadata",[324,325,328,329,334,328,338,342,328,345,349,328,352,355,328,358,362,328,365,369,328,375,378,328,381,385],"dl",{"className":326},[327],"spec-list","\n  ",[330,331,333],"dt",{"id":332},"severity","Severity",[335,336,337],"dd",{},"high",[330,339,341],{"id":340},"tier","Tier",[335,343,344],{},"optimization",[330,346,348],{"id":347},"category","Category",[335,350,351],{},"ecommerce",[330,353,354],{"id":46},"Layer",[335,356,357],{},"container",[330,359,361],{"id":360},"version","Version",[335,363,364],{},"1",[330,366,368],{"id":367},"effort","Effort",[335,370,371,374],{},[27,372,373],{},"15min"," (about 15 minutes)",[330,376,377],{"id":52},"Reversibility",[335,379,380],{},"non-destructive",[330,382,384],{"id":383},"regulatory","Regulatory",[335,386,387],{},"GDPR Art. 6 (lawful basis), CCPA\u002FCPRA",[55,389,391],{"id":390},"see-also","See also",[17,393,394,402,409],{},[20,395,396,401],{},[397,398,400],"a",{"href":399},"\u002Frules\u002Fecommerce-tool-custom-html\u002F","Ecommerce tool in custom HTML"," — sibling rule that flags these tools regardless of consent status",[20,403,404,408],{},[397,405,407],{"href":406},"\u002Fhealth-score\u002F","Health score"," — how this rule contributes to the score",[20,410,411,415],{},[397,412,414],{"href":413},"\u002Frules\u002F","Rules catalog"," — browse all rules",[417,418,419],"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":106,"searchDepth":120,"depth":120,"links":421},[422,423,424,425,426,427],{"id":57,"depth":120,"text":58},{"id":84,"depth":120,"text":85},{"id":91,"depth":120,"text":92},{"id":275,"depth":120,"text":276},{"id":321,"depth":120,"text":322},{"id":390,"depth":120,"text":391},[429,432,434],{"label":430,"href":431},"API Reference","\u002F",{"label":433,"href":413},"Rules",{"label":29},{"cards":436,"onpage":448},[437],{"title":438,"tabs":439},"Evaluate",[440,444],{"label":441,"language":442,"code":443},"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\":\"ecommerce-tool-consent\",\"url\":\"https:\u002F\u002Fexample.com\"}'\n",{"label":445,"language":446,"code":447},"MCP","text","User: Run ecommerce-tool-consent on https:\u002F\u002Fexample.com\n\n# Tool call\n{\n  \"tool\": \"evaluate_rule\",\n  \"arguments\": {\n    \"rule_id\": \"ecommerce-tool-consent\",\n    \"url\": \"https:\u002F\u002Fexample.com\"\n  }\n}\n",[449,450,451,452,453],{"id":57,"label":58},{"id":84,"label":85},{"id":91,"label":92},{"id":275,"label":276},{"id":321,"label":322},null,"Custom HTML tags containing ecommerce marketing tools are configured with consent NOT_NEEDED or NOT_SET. These tools collect commercial behavioral data and require explicit user consent under GDPR\u002FCCPA.","md",{},true,"\u002Frules\u002Fecommerce-tool-consent","TechArticle",{"title":5,"description":455},"rules\u002Fecommerce-tool-consent",false,"AkC5gwcnd3osKBPn6UreV_tkeabxI2BJPxephcXajt0",1796069483576]