[{"data":1,"prerenderedAt":391},["ShallowReactive",2],{"rule-ua-send":3},{"id":4,"title":5,"body":6,"breadcrumb":354,"coderail":361,"dateModified":380,"datePublished":380,"description":381,"extension":382,"meta":383,"navigation":384,"next":380,"path":385,"prev":380,"schemaType":386,"seo":387,"stem":388,"wide":389,"__hash__":390},"docs\u002Frules\u002Fua-send.md","Dead ga('send') Universal Analytics call",{"type":7,"value":8,"toc":346},"minimark",[9,16,58,63,93,97,106,110,217,221,252,256,314,318,342],[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-send",[20,31,32,35,36,39],{},[13,33,34],{},"purpose"," — Detect tags using ",[27,37,38],{},"ga('send', ...)"," from the legacy Universal Analytics analytics.js library",[20,41,42,45],{},[13,43,44],{},"effect"," — Calls go unprocessed; UA properties stopped collecting data in July 2023",[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,72,73,76,77,80,81,84,85,88,89,92],{},"The rule checks active tags for ",[27,67,68],{},"codeAnalysis.hasUaSend",", set by the parser when it detects a ",[27,71,38],{}," call. The regex matches ",[27,74,75],{},"ga"," followed by whitespace-tolerant parentheses and the string ",[27,78,79],{},"'send'"," or ",[27,82,83],{},"\"send\"",". Every tag with a matching call is flagged. Paused tags are excluded. The rule targets ",[27,86,87],{},"ga('send')"," specifically — the event and pageview dispatch call — rather than all ",[27,90,91],{},"ga()"," calls.",[59,94,96],{"id":95},"why-it-matters","Why it matters",[10,98,99,100,102,103,105],{},"Google sunset Universal Analytics on July 1, 2023. Any tag still containing ",[27,101,38],{}," sends hit data to a decommissioned endpoint. No data is received. If analytics.js is not loaded (the common case after UA→GA4 migration), ",[27,104,75],{}," is undefined and the call throws a JavaScript error. If analytics.js is still loaded, it sends to a UA property that is no longer processing hits. Either way the data goes nowhere. The call executes at page load, consumes a network round-trip, and produces nothing.",[59,107,109],{"id":108},"example","Before \u002F after",[111,112,113,172],"compare",{},[114,115,117],"compare-col",{"label":116},"Before — flagged",[118,119,124],"pre",{"className":120,"code":121,"language":122,"meta":123,"style":123},"language-js shiki shiki-themes github-light github-dark","\u002F\u002F Custom HTML tag — Universal Analytics hit\nga('send', 'event', 'Video', 'play', 'Product Demo')\n","js","",[27,125,126,135],{"__ignoreMap":123},[127,128,131],"span",{"class":129,"line":130},"line",1,[127,132,134],{"class":133},"sJ8bj","\u002F\u002F Custom HTML tag — Universal Analytics hit\n",[127,136,138,141,145,148,151,154,156,159,161,164,166,169],{"class":129,"line":137},2,[127,139,75],{"class":140},"sScJk",[127,142,144],{"class":143},"sVt8B","(",[127,146,79],{"class":147},"sZZnC",[127,149,150],{"class":143},", ",[127,152,153],{"class":147},"'event'",[127,155,150],{"class":143},[127,157,158],{"class":147},"'Video'",[127,160,150],{"class":143},[127,162,163],{"class":147},"'play'",[127,165,150],{"class":143},[127,167,168],{"class":147},"'Product Demo'",[127,170,171],{"class":143},")\n",[114,173,175],{"label":174},"After — fixed",[118,176,178],{"className":120,"code":177,"language":122,"meta":123,"style":123},"\u002F\u002F GA4 event via gtag()\ngtag('event', 'video_play', {\n  video_title: 'Product Demo'\n})\n",[27,179,180,185,202,211],{"__ignoreMap":123},[127,181,182],{"class":129,"line":130},[127,183,184],{"class":133},"\u002F\u002F GA4 event via gtag()\n",[127,186,187,190,192,194,196,199],{"class":129,"line":137},[127,188,189],{"class":140},"gtag",[127,191,144],{"class":143},[127,193,153],{"class":147},[127,195,150],{"class":143},[127,197,198],{"class":147},"'video_play'",[127,200,201],{"class":143},", {\n",[127,203,205,208],{"class":129,"line":204},3,[127,206,207],{"class":143},"  video_title: ",[127,209,210],{"class":147},"'Product Demo'\n",[127,212,214],{"class":129,"line":213},4,[127,215,216],{"class":143},"})\n",[59,218,220],{"id":219},"remediation","Remediation",[222,223,224,230,233,240,243,249],"ol",{},[20,225,226,227,229],{},"Open each flagged tag and identify what the ",[27,228,38],{}," call was tracking — event category, action, and label are visible in the arguments.",[20,231,232],{},"Determine whether equivalent GA4 tracking already exists in the container.",[20,234,235,236,239],{},"If GA4 tracking is missing, create a GA4 Event tag using ",[27,237,238],{},"gtag('event', ...)"," or a native GTM GA4 Event tag.",[20,241,242],{},"Map the UA hit fields to GA4 event parameters.",[20,244,245,246,248],{},"Remove the ",[27,247,38],{}," call. If no other UA calls remain, also remove the analytics.js script load.",[20,250,251],{},"Publish the container and verify events appear in GA4 DebugView.",[59,253,255],{"id":254},"metadata","Metadata",[257,258,261,262,267,261,271,275,261,278,282,261,285,288,261,291,295,261,298,302,261,308,311],"dl",{"className":259},[260],"spec-list","\n  ",[263,264,266],"dt",{"id":265},"severity","Severity",[268,269,270],"dd",{},"critical",[263,272,274],{"id":273},"tier","Tier",[268,276,277],{},"error",[263,279,281],{"id":280},"category","Category",[268,283,284],{},"dead-code",[263,286,287],{"id":50},"Layer",[268,289,290],{},"container",[263,292,294],{"id":293},"version","Version",[268,296,297],{},"1",[263,299,301],{"id":300},"effort","Effort",[268,303,304,307],{},[27,305,306],{},"15min"," (about 15 minutes)",[263,309,310],{"id":56},"Reversibility",[268,312,313],{},"non-destructive",[59,315,317],{"id":316},"see-also","See also",[17,319,320,328,335],{},[20,321,322,327],{},[323,324,326],"a",{"href":325},"\u002Fcategories\u002Fdead-code\u002F","Dead-code rules"," — other rules in this category",[20,329,330,334],{},[323,331,333],{"href":332},"\u002Fhealth-score\u002F","Health score"," — how this rule contributes to the score",[20,336,337,341],{},[323,338,340],{"href":339},"\u002Frules\u002F","Rules catalog"," — browse all rules",[343,344,345],"style",{},"html pre.shiki code .sJ8bj, html code.shiki .sJ8bj{--shiki-default:#6A737D;--shiki-dark:#6A737D}html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}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":123,"searchDepth":137,"depth":137,"links":347},[348,349,350,351,352,353],{"id":61,"depth":137,"text":62},{"id":95,"depth":137,"text":96},{"id":108,"depth":137,"text":109},{"id":219,"depth":137,"text":220},{"id":254,"depth":137,"text":255},{"id":316,"depth":137,"text":317},[355,358,360],{"label":356,"href":357},"API Reference","\u002F",{"label":359,"href":339},"Rules",{"label":29},{"cards":362,"onpage":374},[363],{"title":364,"tabs":365},"Evaluate",[366,370],{"label":367,"language":368,"code":369},"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-send\",\"url\":\"https:\u002F\u002Fexample.com\"}'\n",{"label":371,"language":372,"code":373},"MCP","text","User: Run ua-send on https:\u002F\u002Fexample.com\n\n# Tool call\n{\n  \"tool\": \"evaluate_rule\",\n  \"arguments\": {\n    \"rule_id\": \"ua-send\",\n    \"url\": \"https:\u002F\u002Fexample.com\"\n  }\n}\n",[375,376,377,378,379],{"id":61,"label":62},{"id":95,"label":96},{"id":108,"label":109},{"id":219,"label":220},{"id":254,"label":255},null,"Tags use ga('send', ...) from analytics.js (Universal Analytics). UA was sunset July 2023. If the UA property is still configured, data goes nowhere.","md",{},true,"\u002Frules\u002Fua-send","TechArticle",{"title":5,"description":381},"rules\u002Fua-send",false,"-yESIJ3sPLbRDJrAIaafhDOkcBED0GiDaWlygYATYKg",1796069483493]