Parameter names with inconsistent casing
The same parameter name appears with different casing across GA4 tags, fragmenting data in reports.
Summary
- rule_id —
ga4-param-casing-inconsistent - purpose — Detect GA4 event parameter names that appear with different casing across tags
- effect — Casing differences cause GA4 to treat the same logical parameter as separate columns, splitting data across rows
- layer — container
- reversibility — non-destructive
What fires this
The rule collects every 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, page_type and 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 {{) are excluded from the comparison. Paused tags are excluded, as in the other GA4 rules.
Why it matters
GA4 treats parameter names as case-sensitive strings. A tag sending page_type and another sending Page_Type 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.
Before / after
Tag A — "purchase" event
eventParameters:
- name: "transaction_id"
- name: "Revenue" ← capital R
Tag B — "add_to_cart" event
eventParameters:
- name: "transaction_id"
- name: "revenue" ← lowercase r
Tag A — "purchase" event
eventParameters:
- name: "transaction_id"
- name: "revenue" ← consistent lowercase
Tag B — "add_to_cart" event
eventParameters:
- name: "transaction_id"
- name: "revenue" ← consistent lowercase
Remediation
- Open the rule result and note each inconsistent pair and the tags listed.
- Choose one canonical casing for each parameter — lowercase snake_case is the GA4 convention.
- Open each flagged tag in GTM and rename the parameter to the canonical form.
- Verify that any GTM variables feeding the parameter name also output the canonical casing.
- Publish the updated container.
- Confirm in the GA4 DebugView that the parameter arrives under the single canonical name.
Metadata
- Severity
- medium
- Tier
- info
- Category
- ga4
- Layer
- container
- Version
- 1
- Effort
15min(about 15 minutes)- Reversibility
- non-destructive
See also
- GA4 rules — other rules in this category
- Health score — how this rule contributes to the score
- Rules catalog — browse all rules
Examples
curl https://developer.tagmanifest.com/v1/evaluate-rule \
-H "Authorization: Bearer $TM_API_KEY" \
-H "Content-Type: application/json" \
-d '{"rule_id":"ga4-param-casing-inconsistent","url":"https://example.com"}'
User: Run ga4-param-casing-inconsistent on https://example.com
# Tool call
{
"tool": "evaluate_rule",
"arguments": {
"rule_id": "ga4-param-casing-inconsistent",
"url": "https://example.com"
}
}