[{"data":1,"prerenderedAt":390},["ShallowReactive",2],{"rule-gaq-push":3},{"id":4,"title":5,"body":6,"breadcrumb":353,"coderail":360,"dateModified":379,"datePublished":379,"description":380,"extension":381,"meta":382,"navigation":383,"next":379,"path":384,"prev":379,"schemaType":385,"seo":386,"stem":387,"wide":388,"__hash__":389},"docs\u002Frules\u002Fgaq-push.md","Dead _gaq.push() call",{"type":7,"value":8,"toc":345},"minimark",[9,16,61,66,81,85,101,105,213,217,251,255,313,317,341],[10,11,12],"p",{},[13,14,15],"strong",{},"Summary",[17,18,19,30,40,49,55],"ul",{},[20,21,22,25,26],"li",{},[13,23,24],{},"rule_id"," — ",[27,28,29],"code",{},"gaq-push",[20,31,32,35,36,39],{},[13,33,34],{},"purpose"," — Detect tags that push events to the legacy ",[27,37,38],{},"_gaq"," Universal Analytics async queue",[20,41,42,25,45,48],{},[13,43,44],{},"effect",[27,46,47],{},"_gaq.push()"," calls execute silently and send no data; analytics gaps go undetected",[20,50,51,54],{},[13,52,53],{},"layer"," — container",[20,56,57,60],{},[13,58,59],{},"reversibility"," — non-destructive",[62,63,65],"h2",{"id":64},"what-fires-this","What fires this",[10,67,68,69,72,73,76,77,80],{},"The rule checks active Custom HTML tags for ",[27,70,71],{},"codeAnalysis.hasGaqPush",", set by the parser when it detects a ",[27,74,75],{},"_gaq.push("," call in the tag code. Every tag containing that pattern is flagged. The rule does not inspect the arguments — any ",[27,78,79],{},"_gaq.push"," call triggers it. Paused tags are excluded.",[62,82,84],{"id":83},"why-it-matters","Why it matters",[10,86,87,89,90,93,94,96,97,100],{},[27,88,38],{}," is the async command queue for ",[27,91,92],{},"ga.js",", the original Google Analytics library. Google deprecated ",[27,95,92],{}," in 2014 and sunset it entirely. The queue object may still exist on pages that load a stub or leftover snippet, but no library processes it. Calls appear to succeed — no JavaScript error is thrown — while sending zero data. Teams relying on these tags for conversion or event tracking receive silently incomplete analytics. Replace with GA4 events or ",[27,98,99],{},"gtag()"," calls.",[62,102,104],{"id":103},"example","Before \u002F after",[106,107,108,160],"compare",{},[109,110,112],"compare-col",{"label":111},"Before — flagged",[113,114,119],"pre",{"className":115,"code":116,"language":117,"meta":118,"style":118},"language-js shiki shiki-themes github-light github-dark","_gaq.push(['_trackEvent', 'Form', 'Submit', 'contact-us'])\n","js","",[27,120,121],{"__ignoreMap":118},[122,123,126,130,134,137,141,144,147,149,152,154,157],"span",{"class":124,"line":125},"line",1,[122,127,129],{"class":128},"sVt8B","_gaq.",[122,131,133],{"class":132},"sScJk","push",[122,135,136],{"class":128},"([",[122,138,140],{"class":139},"sZZnC","'_trackEvent'",[122,142,143],{"class":128},", ",[122,145,146],{"class":139},"'Form'",[122,148,143],{"class":128},[122,150,151],{"class":139},"'Submit'",[122,153,143],{"class":128},[122,155,156],{"class":139},"'contact-us'",[122,158,159],{"class":128},"])\n",[109,161,163],{"label":162},"After — fixed",[113,164,166],{"className":115,"code":165,"language":117,"meta":118,"style":118},"gtag('event', 'form_submit', {\n  event_category: 'Form',\n  event_label: 'contact-us'\n})\n",[27,167,168,187,198,207],{"__ignoreMap":118},[122,169,170,173,176,179,181,184],{"class":124,"line":125},[122,171,172],{"class":132},"gtag",[122,174,175],{"class":128},"(",[122,177,178],{"class":139},"'event'",[122,180,143],{"class":128},[122,182,183],{"class":139},"'form_submit'",[122,185,186],{"class":128},", {\n",[122,188,190,193,195],{"class":124,"line":189},2,[122,191,192],{"class":128},"  event_category: ",[122,194,146],{"class":139},[122,196,197],{"class":128},",\n",[122,199,201,204],{"class":124,"line":200},3,[122,202,203],{"class":128},"  event_label: ",[122,205,206],{"class":139},"'contact-us'\n",[122,208,210],{"class":124,"line":209},4,[122,211,212],{"class":128},"})\n",[62,214,216],{"id":215},"remediation","Remediation",[218,219,220,225,228,235,238,248],"ol",{},[20,221,222,223,100],{},"Open each flagged tag and identify all ",[27,224,79],{},[20,226,227],{},"Determine whether the tracked action is still needed in analytics.",[20,229,230,231,234],{},"If still needed: replace each call with the equivalent ",[27,232,233],{},"gtag('event', ...)"," or GA4 dataLayer push.",[20,236,237],{},"If no longer needed: delete the tag entirely.",[20,239,240,241,243,244,247],{},"Remove any residual ",[27,242,92],{}," or ",[27,245,246],{},"urchin.js"," script load tags from the container.",[20,249,250],{},"Publish and verify events appear in the GA4 DebugView.",[62,252,254],{"id":253},"metadata","Metadata",[256,257,260,261,266,260,270,274,260,277,281,260,284,287,260,290,294,260,297,301,260,307,310],"dl",{"className":258},[259],"spec-list","\n  ",[262,263,265],"dt",{"id":264},"severity","Severity",[267,268,269],"dd",{},"critical",[262,271,273],{"id":272},"tier","Tier",[267,275,276],{},"error",[262,278,280],{"id":279},"category","Category",[267,282,283],{},"dead-code",[262,285,286],{"id":53},"Layer",[267,288,289],{},"container",[262,291,293],{"id":292},"version","Version",[267,295,296],{},"1",[262,298,300],{"id":299},"effort","Effort",[267,302,303,306],{},[27,304,305],{},"15min"," (about 15 minutes)",[262,308,309],{"id":59},"Reversibility",[267,311,312],{},"non-destructive",[62,314,316],{"id":315},"see-also","See also",[17,318,319,327,334],{},[20,320,321,326],{},[322,323,325],"a",{"href":324},"\u002Fcategories\u002Fdead-code\u002F","Dead-code rules"," — other rules in this category",[20,328,329,333],{},[322,330,332],{"href":331},"\u002Fhealth-score\u002F","Health score"," — how this rule contributes to the score",[20,335,336,340],{},[322,337,339],{"href":338},"\u002Frules\u002F","Rules catalog"," — browse all rules",[342,343,344],"style",{},"html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}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":118,"searchDepth":189,"depth":189,"links":346},[347,348,349,350,351,352],{"id":64,"depth":189,"text":65},{"id":83,"depth":189,"text":84},{"id":103,"depth":189,"text":104},{"id":215,"depth":189,"text":216},{"id":253,"depth":189,"text":254},{"id":315,"depth":189,"text":316},[354,357,359],{"label":355,"href":356},"API Reference","\u002F",{"label":358,"href":338},"Rules",{"label":29},{"cards":361,"onpage":373},[362],{"title":363,"tabs":364},"Evaluate",[365,369],{"label":366,"language":367,"code":368},"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\":\"gaq-push\",\"url\":\"https:\u002F\u002Fexample.com\"}'\n",{"label":370,"language":371,"code":372},"MCP","text","User: Run gaq-push on https:\u002F\u002Fexample.com\n\n# Tool call\n{\n  \"tool\": \"evaluate_rule\",\n  \"arguments\": {\n    \"rule_id\": \"gaq-push\",\n    \"url\": \"https:\u002F\u002Fexample.com\"\n  }\n}\n",[374,375,376,377,378],{"id":64,"label":65},{"id":83,"label":84},{"id":103,"label":104},{"id":215,"label":216},{"id":253,"label":254},null,"Tags push events to _gaq (the legacy ga.js async queue). ga.js has been deprecated since 2014 and sunset. These calls do nothing.","md",{},true,"\u002Frules\u002Fgaq-push","TechArticle",{"title":5,"description":380},"rules\u002Fgaq-push",false,"mjhEFOa8QhNZJYb0OFSVem32lnXbuD_t69QvlPp4I30",1796069483428]