[{"data":1,"prerenderedAt":279},["ShallowReactive",2],{"rule-ua-tag-live":3},{"id":4,"title":5,"body":6,"breadcrumb":243,"coderail":250,"dateModified":268,"datePublished":268,"description":269,"extension":270,"meta":271,"navigation":272,"next":268,"path":273,"prev":268,"schemaType":274,"seo":275,"stem":276,"wide":277,"__hash__":278},"docs\u002Frules\u002Fua-tag-live.md","Universal Analytics tags still published and set to fire",{"type":7,"value":8,"toc":234},"minimark",[9,16,58,63,77,81,84,100,104,130,134,149,153,201,205],[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",{},"ua-tag-live",[20,31,32,35,36,39],{},[13,33,34],{},"purpose"," — Detect native Universal Analytics tags (GTM tag type ",[27,37,38],{},"ua",") that can still fire",[20,41,42,45],{},[13,43,44],{},"effect"," — Each page view loads analytics.js and sends hits to a property that no longer processes data",[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,71,72,76],{},"The rule flags every native Universal Analytics 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). Paused tags and tags with no way to fire are left out; they are clutter, not live code. Universal Analytics calls inside custom HTML are covered separately by ",[67,68,70],"a",{"href":69},"\u002Frules\u002Fua-send\u002F","ua-send"," and ",[67,73,75],{"href":74},"\u002Frules\u002Fgaq-push\u002F","gaq-push",".",[59,78,80],{"id":79},"why-it-matters","Why it matters",[10,82,83],{},"Google stopped processing Universal Analytics data on July 1, 2023. A UA tag that still fires costs a script download and a network request on every page it fires on, and the data goes nowhere. It also signals a container nobody has cleaned since the GA4 migration, which is usually where other stale tags sit.",[10,85,86,87,91,92,96,97,76],{},"In the ",[67,88,90],{"href":89},"\u002Fverdict\u002F","verdict"," this is a confirmed reason. It is grouped with live Optimize tags and Universal Analytics code as one problem, retired Google tools, so on its own it makes a container ",[93,94,95],"em",{},"Needs fixing",", never ",[93,98,99],{},"Liability",[59,101,103],{"id":102},"example","Before \u002F after",[105,106,107,121],"compare",{},[108,109,111],"compare-col",{"label":110},"Before — flagged",[112,113,119],"pre",{"className":114,"code":116,"language":117,"meta":118},[115],"language-text","Tag: GA - Pageview (Universal Analytics)\n  type:      ua\n  trigger:   All Pages\n  status:    published\n","text","",[27,120,116],{"__ignoreMap":118},[108,122,124],{"label":123},"After — fixed",[112,125,128],{"className":126,"code":127,"language":117,"meta":118},[115],"Tag: GA - Pageview (Universal Analytics)\n  status:    paused, then deleted after a review\n\nTag: GA4 - Google tag\n  type:      googtag (G-XXXXXXXXXX)\n  trigger:   Initialization - All Pages\n",[27,129,127],{"__ignoreMap":118},[59,131,133],{"id":132},"remediation","Remediation",[135,136,137,140,143,146],"ol",{},[20,138,139],{},"List the flagged tags and note what each tracked (page views, events, ecommerce).",[20,141,142],{},"Check that GA4 covers each one; rebuild anything still needed as a GA4 event first.",[20,144,145],{},"Pause the UA tags, publish, and confirm nothing breaks.",[20,147,148],{},"Delete the tags, and any variables and triggers only they used (the UA settings variable, UA tracking id constants).",[59,150,152],{"id":151},"metadata","Metadata",[154,155,158,159,164,158,168,172,158,175,179,158,182,185,158,188,192,158,195,198],"dl",{"className":156},[157],"spec-list","\n  ",[160,161,163],"dt",{"id":162},"severity","Severity",[165,166,167],"dd",{},"high",[160,169,171],{"id":170},"tier","Tier",[165,173,174],{},"error",[160,176,178],{"id":177},"category","Category",[165,180,181],{},"dead-code",[160,183,184],{"id":50},"Layer",[165,186,187],{},"container",[160,189,191],{"id":190},"version","Version",[165,193,194],{},"1",[160,196,197],{"id":56},"Reversibility",[165,199,200],{},"non-destructive",[59,202,204],{"id":203},"see-also","See also",[17,206,207,214,220,227],{},[20,208,209,213],{},[67,210,212],{"href":211},"\u002Fcategories\u002Fdead-code\u002F","Dead-code rules"," — other rules in this category",[20,215,216,219],{},[67,217,218],{"href":89},"Verdict"," — how this rule feeds the verdict",[20,221,222,226],{},[67,223,225],{"href":224},"\u002Fhealth-score\u002F","Health score"," — how this rule contributes to the score",[20,228,229,233],{},[67,230,232],{"href":231},"\u002Frules\u002F","Rules catalog"," — browse all rules",{"title":118,"searchDepth":235,"depth":235,"links":236},2,[237,238,239,240,241,242],{"id":61,"depth":235,"text":62},{"id":79,"depth":235,"text":80},{"id":102,"depth":235,"text":103},{"id":132,"depth":235,"text":133},{"id":151,"depth":235,"text":152},{"id":203,"depth":235,"text":204},[244,247,249],{"label":245,"href":246},"API Reference","\u002F",{"label":248,"href":231},"Rules",{"label":29},{"cards":251,"onpage":262},[252],{"title":253,"tabs":254},"Evaluate",[255,259],{"label":256,"language":257,"code":258},"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\":\"ua-tag-live\",\"url\":\"https:\u002F\u002Fexample.com\"}'\n",{"label":260,"language":117,"code":261},"MCP","User: Run ua-tag-live on https:\u002F\u002Fexample.com\n\n# Tool call\n{\n  \"tool\": \"evaluate_rule\",\n  \"arguments\": {\n    \"rule_id\": \"ua-tag-live\",\n    \"url\": \"https:\u002F\u002Fexample.com\"\n  }\n}\n",[263,264,265,266,267],{"id":61,"label":62},{"id":79,"label":80},{"id":102,"label":103},{"id":132,"label":133},{"id":151,"label":152},null,"Native Universal Analytics tags are published and set to fire. Universal Analytics stopped processing data in July 2023, so they load analytics.js and send hits nothing records.","md",{},true,"\u002Frules\u002Fua-tag-live","TechArticle",{"title":5,"description":269},"rules\u002Fua-tag-live",false,"1XBPaFbWA0qlNKOiBtjtpDxdACz3UMITkhe3kkAa-Rw",1796351864575]