[{"data":1,"prerenderedAt":297},["ShallowReactive",2],{"rule-ga4-event-name-casing":3},{"id":4,"title":5,"body":6,"breadcrumb":261,"coderail":268,"dateModified":286,"datePublished":286,"description":287,"extension":288,"meta":289,"navigation":290,"next":286,"path":291,"prev":286,"schemaType":292,"seo":293,"stem":294,"wide":295,"__hash__":296},"docs\u002Frules\u002Fga4-event-name-casing.md","Event names with uppercase letters",{"type":7,"value":8,"toc":252},"minimark",[9,16,54,59,78,82,97,101,127,131,162,166,224,228],[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",{},"ga4-event-name-casing",[20,31,32,35],{},[13,33,34],{},"purpose"," — Detect GA4 event tags with uppercase letters in static event names",[20,37,38,41],{},[13,39,40],{},"effect"," — Mixed-casing splits one logical event into multiple GA4 event types, fragmenting metrics",[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],{},"The rule calls ",[27,63,64],{},"getGA4EventTags"," to collect all GA4 event tags, then checks each tag's ",[27,67,68],{},"ga4.eventName"," field. Tags where the event name contains ",[27,71,72],{},"{{"," are skipped — GTM variable references like ",[27,75,76],{},"{{Event}}"," resolve at runtime and cannot be statically inspected. For each remaining tag, the rule compares the name against its fully lowercased form. Any tag where those values differ is flagged. Paused tags are excluded.",[55,79,81],{"id":80},"why-it-matters","Why it matters",[10,83,84,85,88,89,92,93,96],{},"GA4 event names are case-sensitive at ingestion. ",[27,86,87],{},"FormSubmit"," and ",[27,90,91],{},"form_submit"," appear as two separate events in GA4 reports, each accumulating its own metric totals. When GTM uses camelCase and other implementations (server-side, app SDK, direct ",[27,94,95],{},"gtag"," calls) use snake_case, the same user action splits across multiple event rows. GA4 has no retroactive rename function — historical data under the old casing persists until it rolls off the retention window. Google's published convention is all-lowercase snake_case.",[55,98,100],{"id":99},"example","Before \u002F after",[102,103,104,118],"compare",{},[105,106,108],"compare-col",{"label":107},"Before — flagged",[109,110,116],"pre",{"className":111,"code":113,"language":114,"meta":115},[112],"language-text","GA4 event tag: \"GA4 - Form Submit\"\nEvent name: FormSubmit\n","text","",[27,117,113],{"__ignoreMap":115},[105,119,121],{"label":120},"After — fixed",[109,122,125],{"className":123,"code":124,"language":114,"meta":115},[112],"GA4 event tag: \"GA4 - Form Submit\"\nEvent name: form_submit\n",[27,126,124],{"__ignoreMap":115},[55,128,130],{"id":129},"remediation","Remediation",[132,133,134,150,153,156,159],"ol",{},[20,135,136,137,139,140,142,143,139,146,149],{},"Review each flagged tag and determine the correct lowercase snake_case name (e.g., ",[27,138,87],{}," → ",[27,141,91],{},", ",[27,144,145],{},"CTAClick",[27,147,148],{},"cta_click",").",[20,151,152],{},"Update the event name field in each flagged GA4 event tag in GTM.",[20,154,155],{},"If the event is registered as a custom event or conversion in GA4, update that definition to match the new name.",[20,157,158],{},"If a Custom Event trigger references the old name, update the trigger to match.",[20,160,161],{},"Publish the container and monitor GA4 — old-casing events persist in historical data until the retention window expires.",[55,163,165],{"id":164},"metadata","Metadata",[167,168,171,172,177,171,181,185,171,188,192,171,195,198,171,201,205,171,208,212,171,218,221],"dl",{"className":169},[170],"spec-list","\n  ",[173,174,176],"dt",{"id":175},"severity","Severity",[178,179,180],"dd",{},"high",[173,182,184],{"id":183},"tier","Tier",[178,186,187],{},"optimization",[173,189,191],{"id":190},"category","Category",[178,193,194],{},"ga4",[173,196,197],{"id":46},"Layer",[178,199,200],{},"container",[173,202,204],{"id":203},"version","Version",[178,206,207],{},"1",[173,209,211],{"id":210},"effort","Effort",[178,213,214,217],{},[27,215,216],{},"15min"," (about 15 minutes)",[173,219,220],{"id":52},"Reversibility",[178,222,223],{},"non-destructive",[55,225,227],{"id":226},"see-also","See also",[17,229,230,238,245],{},[20,231,232,237],{},[233,234,236],"a",{"href":235},"\u002Fcategories\u002Fga4\u002F","GA4 rules"," — other rules in this category",[20,239,240,244],{},[233,241,243],{"href":242},"\u002Fhealth-score\u002F","Health score"," — how this rule contributes to the score",[20,246,247,251],{},[233,248,250],{"href":249},"\u002Frules\u002F","Rules catalog"," — browse all rules",{"title":115,"searchDepth":253,"depth":253,"links":254},2,[255,256,257,258,259,260],{"id":57,"depth":253,"text":58},{"id":80,"depth":253,"text":81},{"id":99,"depth":253,"text":100},{"id":129,"depth":253,"text":130},{"id":164,"depth":253,"text":165},{"id":226,"depth":253,"text":227},[262,265,267],{"label":263,"href":264},"API Reference","\u002F",{"label":266,"href":249},"Rules",{"label":29},{"cards":269,"onpage":280},[270],{"title":271,"tabs":272},"Evaluate",[273,277],{"label":274,"language":275,"code":276},"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\":\"ga4-event-name-casing\",\"url\":\"https:\u002F\u002Fexample.com\"}'\n",{"label":278,"language":114,"code":279},"MCP","User: Run ga4-event-name-casing on https:\u002F\u002Fexample.com\n\n# Tool call\n{\n  \"tool\": \"evaluate_rule\",\n  \"arguments\": {\n    \"rule_id\": \"ga4-event-name-casing\",\n    \"url\": \"https:\u002F\u002Fexample.com\"\n  }\n}\n",[281,282,283,284,285],{"id":57,"label":58},{"id":80,"label":81},{"id":99,"label":100},{"id":129,"label":130},{"id":164,"label":165},null,"GA4 event names use uppercase letters. GA4 treats \"Add_To_Cart\" and \"add_to_cart\" as separate events, fragmenting data.","md",{},true,"\u002Frules\u002Fga4-event-name-casing","TechArticle",{"title":5,"description":287},"rules\u002Fga4-event-name-casing",false,"ZoAi1wBHkarmV5uAT8MQ7H3UQ2MylRiSL2liyDwA71s",1796069483732]