[{"data":1,"prerenderedAt":258},["ShallowReactive",2],{"rule-optimize-tag-live":3},{"id":4,"title":5,"body":6,"breadcrumb":222,"coderail":229,"dateModified":247,"datePublished":247,"description":248,"extension":249,"meta":250,"navigation":251,"next":247,"path":252,"prev":247,"schemaType":253,"seo":254,"stem":255,"wide":256,"__hash__":257},"docs\u002Frules\u002Foptimize-tag-live.md","Google Optimize tags still published and set to fire",{"type":7,"value":8,"toc":213},"minimark",[9,16,58,63,66,70,73,82,86,112,116,128,132,180,184],[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",{},"optimize-tag-live",[20,31,32,35,36,39],{},[13,33,34],{},"purpose"," — Detect native Google Optimize tags (GTM tag type ",[27,37,38],{},"opt",") that can still fire",[20,41,42,45],{},[13,43,44],{},"effect"," — Each page load requests a script for a product that no longer runs; an anti-flicker snippet may still hide the page while it waits",[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],{},"The rule flags every native Google Optimize tag that is set to fire. A tag counts as set to fire when it is not paused and has at least one firing trigger that is not also one of its exception triggers, or when it runs as the setup or cleanup tag of a tag that can fire (tag sequencing). Optimize was often sequenced with a Universal Analytics tag, so the sequencing case matters here.",[59,67,69],{"id":68},"why-it-matters","Why it matters",[10,71,72],{},"Google Optimize and Optimize 360 shut down on September 30, 2023. A live Optimize tag requests code that does nothing. If the site still carries the Optimize anti-flicker snippet, it can hide the page for up to its timeout on every load while it waits for an experiment that never arrives.",[10,74,75,76,81],{},"In the ",[77,78,80],"a",{"href":79},"\u002Fverdict\u002F","verdict"," this is a confirmed reason, grouped with live Universal Analytics tags and code as one problem, retired Google tools.",[59,83,85],{"id":84},"example","Before \u002F after",[87,88,89,103],"compare",{},[90,91,93],"compare-col",{"label":92},"Before — flagged",[94,95,101],"pre",{"className":96,"code":98,"language":99,"meta":100},[97],"language-text","Tag: Google Optimize\n  type:      opt\n  sequencing: setup tag of GA - Pageview\n  status:    published\n","text","",[27,102,98],{"__ignoreMap":100},[90,104,106],{"label":105},"After — fixed",[94,107,110],{"className":108,"code":109,"language":99,"meta":100},[97],"Tag: Google Optimize\n  status:    deleted\n\nSite template: anti-flicker snippet removed\n",[27,111,109],{"__ignoreMap":100},[59,113,115],{"id":114},"remediation","Remediation",[117,118,119,122,125],"ol",{},[20,120,121],{},"Delete the Optimize tags and any variables only they used.",[20,123,124],{},"Remove the Optimize anti-flicker snippet from the site template if it is still there.",[20,126,127],{},"If you still run experiments, set them up in the testing tool you use now; Optimize data cannot be recovered.",[59,129,131],{"id":130},"metadata","Metadata",[133,134,137,138,143,137,147,151,137,154,158,137,161,164,137,167,171,137,174,177],"dl",{"className":135},[136],"spec-list","\n  ",[139,140,142],"dt",{"id":141},"severity","Severity",[144,145,146],"dd",{},"high",[139,148,150],{"id":149},"tier","Tier",[144,152,153],{},"error",[139,155,157],{"id":156},"category","Category",[144,159,160],{},"dead-code",[139,162,163],{"id":50},"Layer",[144,165,166],{},"container",[139,168,170],{"id":169},"version","Version",[144,172,173],{},"1",[139,175,176],{"id":56},"Reversibility",[144,178,179],{},"non-destructive",[59,181,183],{"id":182},"see-also","See also",[17,185,186,193,199,206],{},[20,187,188,192],{},[77,189,191],{"href":190},"\u002Fcategories\u002Fdead-code\u002F","Dead-code rules"," — other rules in this category",[20,194,195,198],{},[77,196,197],{"href":79},"Verdict"," — how this rule feeds the verdict",[20,200,201,205],{},[77,202,204],{"href":203},"\u002Fhealth-score\u002F","Health score"," — how this rule contributes to the score",[20,207,208,212],{},[77,209,211],{"href":210},"\u002Frules\u002F","Rules catalog"," — browse all rules",{"title":100,"searchDepth":214,"depth":214,"links":215},2,[216,217,218,219,220,221],{"id":61,"depth":214,"text":62},{"id":68,"depth":214,"text":69},{"id":84,"depth":214,"text":85},{"id":114,"depth":214,"text":115},{"id":130,"depth":214,"text":131},{"id":182,"depth":214,"text":183},[223,226,228],{"label":224,"href":225},"API Reference","\u002F",{"label":227,"href":210},"Rules",{"label":29},{"cards":230,"onpage":241},[231],{"title":232,"tabs":233},"Evaluate",[234,238],{"label":235,"language":236,"code":237},"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\":\"optimize-tag-live\",\"url\":\"https:\u002F\u002Fexample.com\"}'\n",{"label":239,"language":99,"code":240},"MCP","User: Run optimize-tag-live on https:\u002F\u002Fexample.com\n\n# Tool call\n{\n  \"tool\": \"evaluate_rule\",\n  \"arguments\": {\n    \"rule_id\": \"optimize-tag-live\",\n    \"url\": \"https:\u002F\u002Fexample.com\"\n  }\n}\n",[242,243,244,245,246],{"id":61,"label":62},{"id":68,"label":69},{"id":84,"label":85},{"id":114,"label":115},{"id":130,"label":131},null,"Native Google Optimize tags are published and set to fire. Optimize shut down in September 2023, so they load code that does nothing.","md",{},true,"\u002Frules\u002Foptimize-tag-live","TechArticle",{"title":5,"description":248},"rules\u002Foptimize-tag-live",false,"xxnVaVfiTz4oS6boTBs044w_w_ZW3fQbuzVfm_D591A",1796351864509]