Skip to main content
TagManifest /Docs Dashboard

Event names with uppercase letters

GA4 event names use uppercase letters. GA4 treats "Add_To_Cart" and "add_to_cart" as separate events, fragmenting data.

On this page 6

Summary

  • rule_id — ga4-event-name-casing
  • purpose — Detect GA4 event tags with uppercase letters in static event names
  • effect — Mixed-casing splits one logical event into multiple GA4 event types, fragmenting metrics
  • layer — container
  • reversibility — non-destructive

What fires this

The rule calls getGA4EventTags to collect all GA4 event tags, then checks each tag's ga4.eventName field. Tags where the event name contains {{ are skipped — GTM variable references like {{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.

Why it matters

GA4 event names are case-sensitive at ingestion. FormSubmit and 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 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.

Before / after

GA4 event tag: "GA4 - Form Submit"
Event name: FormSubmit
GA4 event tag: "GA4 - Form Submit"
Event name: form_submit

Remediation

  1. Review each flagged tag and determine the correct lowercase snake_case name (e.g., FormSubmit → form_submit, CTAClick → cta_click).
  2. Update the event name field in each flagged GA4 event tag in GTM.
  3. If the event is registered as a custom event or conversion in GA4, update that definition to match the new name.
  4. If a Custom Event trigger references the old name, update the trigger to match.
  5. Publish the container and monitor GA4 — old-casing events persist in historical data until the retention window expires.

Metadata

Severity
high
Tier
optimization
Category
ga4
Layer
container
Version
1
Effort
15min (about 15 minutes)
Reversibility
non-destructive

See also

Examples

Evaluate
curl https://developer.tagmanifest.com/v1/evaluate-rule \
  -H "Authorization: Bearer $TM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"rule_id":"ga4-event-name-casing","url":"https://example.com"}'