[{"data":1,"prerenderedAt":281},["ShallowReactive",2],{"rule-ga4-param-casing-inconsistent":3},{"id":4,"title":5,"body":6,"breadcrumb":245,"coderail":252,"dateModified":270,"datePublished":270,"description":271,"extension":272,"meta":273,"navigation":274,"next":270,"path":275,"prev":270,"schemaType":276,"seo":277,"stem":278,"wide":279,"__hash__":280},"docs\u002Frules\u002Fga4-param-casing-inconsistent.md","Parameter names with inconsistent casing",{"type":7,"value":8,"toc":236},"minimark",[9,16,54,59,78,82,91,95,121,125,146,150,208,212],[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-param-casing-inconsistent",[20,31,32,35],{},[13,33,34],{},"purpose"," — Detect GA4 event parameter names that appear with different casing across tags",[20,37,38,41],{},[13,39,40],{},"effect"," — Casing differences cause GA4 to treat the same logical parameter as separate columns, splitting data across rows",[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 collects every ",[27,63,64],{},"eventParameters[].name"," value from all GA4 event tags in the container. It groups names by their lowercase form and flags any group where two or more distinct casings exist. For example, ",[27,67,68],{},"page_type"," and ",[27,71,72],{},"Page_Type"," share the same lowercase form but are counted as separate entries. The rule returns one issue listing all inconsistent pairs and the tags that contain them. Template variables (values starting with ",[27,75,76],{},"{{",") are excluded from the comparison. Paused tags are excluded, as in the other GA4 rules.",[55,79,81],{"id":80},"why-it-matters","Why it matters",[10,83,84,85,87,88,90],{},"GA4 treats parameter names as case-sensitive strings. A tag sending ",[27,86,68],{}," and another sending ",[27,89,72],{}," produce two separate columns in BigQuery and two separate custom dimensions in GA4. Neither column receives full traffic. Queries and dashboards that reference one casing miss the data logged under the other. The fix is a rename in GTM (Google Tag Manager), not a data correction — historical records split across columns cannot be merged retroactively.",[55,92,94],{"id":93},"example","Before \u002F after",[96,97,98,112],"compare",{},[99,100,102],"compare-col",{"label":101},"Before — flagged",[103,104,110],"pre",{"className":105,"code":107,"language":108,"meta":109},[106],"language-text","Tag A — \"purchase\" event\n  eventParameters:\n    - name: \"transaction_id\"\n    - name: \"Revenue\"        ← capital R\n\nTag B — \"add_to_cart\" event\n  eventParameters:\n    - name: \"transaction_id\"\n    - name: \"revenue\"        ← lowercase r\n","text","",[27,111,107],{"__ignoreMap":109},[99,113,115],{"label":114},"After — fixed",[103,116,119],{"className":117,"code":118,"language":108,"meta":109},[106],"Tag A — \"purchase\" event\n  eventParameters:\n    - name: \"transaction_id\"\n    - name: \"revenue\"        ← consistent lowercase\n\nTag B — \"add_to_cart\" event\n  eventParameters:\n    - name: \"transaction_id\"\n    - name: \"revenue\"        ← consistent lowercase\n",[27,120,118],{"__ignoreMap":109},[55,122,124],{"id":123},"remediation","Remediation",[126,127,128,131,134,137,140,143],"ol",{},[20,129,130],{},"Open the rule result and note each inconsistent pair and the tags listed.",[20,132,133],{},"Choose one canonical casing for each parameter — lowercase snake_case is the GA4 convention.",[20,135,136],{},"Open each flagged tag in GTM and rename the parameter to the canonical form.",[20,138,139],{},"Verify that any GTM variables feeding the parameter name also output the canonical casing.",[20,141,142],{},"Publish the updated container.",[20,144,145],{},"Confirm in the GA4 DebugView that the parameter arrives under the single canonical name.",[55,147,149],{"id":148},"metadata","Metadata",[151,152,155,156,161,155,165,169,155,172,176,155,179,182,155,185,189,155,192,196,155,202,205],"dl",{"className":153},[154],"spec-list","\n  ",[157,158,160],"dt",{"id":159},"severity","Severity",[162,163,164],"dd",{},"medium",[157,166,168],{"id":167},"tier","Tier",[162,170,171],{},"info",[157,173,175],{"id":174},"category","Category",[162,177,178],{},"ga4",[157,180,181],{"id":46},"Layer",[162,183,184],{},"container",[157,186,188],{"id":187},"version","Version",[162,190,191],{},"1",[157,193,195],{"id":194},"effort","Effort",[162,197,198,201],{},[27,199,200],{},"15min"," (about 15 minutes)",[157,203,204],{"id":52},"Reversibility",[162,206,207],{},"non-destructive",[55,209,211],{"id":210},"see-also","See also",[17,213,214,222,229],{},[20,215,216,221],{},[217,218,220],"a",{"href":219},"\u002Fcategories\u002Fga4\u002F","GA4 rules"," — other rules in this category",[20,223,224,228],{},[217,225,227],{"href":226},"\u002Fhealth-score\u002F","Health score"," — how this rule contributes to the score",[20,230,231,235],{},[217,232,234],{"href":233},"\u002Frules\u002F","Rules catalog"," — browse all rules",{"title":109,"searchDepth":237,"depth":237,"links":238},2,[239,240,241,242,243,244],{"id":57,"depth":237,"text":58},{"id":80,"depth":237,"text":81},{"id":93,"depth":237,"text":94},{"id":123,"depth":237,"text":124},{"id":148,"depth":237,"text":149},{"id":210,"depth":237,"text":211},[246,249,251],{"label":247,"href":248},"API Reference","\u002F",{"label":250,"href":233},"Rules",{"label":29},{"cards":253,"onpage":264},[254],{"title":255,"tabs":256},"Evaluate",[257,261],{"label":258,"language":259,"code":260},"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-param-casing-inconsistent\",\"url\":\"https:\u002F\u002Fexample.com\"}'\n",{"label":262,"language":108,"code":263},"MCP","User: Run ga4-param-casing-inconsistent on https:\u002F\u002Fexample.com\n\n# Tool call\n{\n  \"tool\": \"evaluate_rule\",\n  \"arguments\": {\n    \"rule_id\": \"ga4-param-casing-inconsistent\",\n    \"url\": \"https:\u002F\u002Fexample.com\"\n  }\n}\n",[265,266,267,268,269],{"id":57,"label":58},{"id":80,"label":81},{"id":93,"label":94},{"id":123,"label":124},{"id":148,"label":149},null,"The same parameter name appears with different casing across GA4 tags, fragmenting data in reports.","md",{},true,"\u002Frules\u002Fga4-param-casing-inconsistent","TechArticle",{"title":5,"description":271},"rules\u002Fga4-param-casing-inconsistent",false,"ev41paUsWaX905u0bZvUuFuo4PET4IswQrRZQ5KsrG0",1796069483838]