Skip to main content
TagManifest /Docs Dashboard

GA4 rules

Checks that catch GA4 event naming violations, parameter limit breaches, Enhanced Measurement double-counting, and configuration patterns that silently fragment or drop data.

On this page 5

GA4 has strict limits that produce no visible errors when crossed. Event names exceeding 40 characters are silently truncated. Parameters using reserved prefixes are silently dropped. Events carrying more than 25 parameters deliver only the first 25. None of these failures surface in GTM's preview panel or GA4's interface. The data disappears without a trace.

This category audits the mechanics of a GA4 implementation: event naming, parameter naming, limit compliance, Enhanced Measurement overlap, ecommerce configuration, and firing behavior. The goal is to surface the places where data is being lost, fragmented, or double-counted before those problems compound in reports.

What this category covers

GA4's data model is case-sensitive. Add_To_Cart and add_to_cart are two distinct events in GA4 Explore and standard reports. An implementation that drifts between casing conventions produces split event streams. The same user action appears under multiple names, each holding a fraction of the real count.

Parameter limits create a similar problem at the parameter level. The 25-parameter-per-event cap is a hard ceiling. Tags that exceed it appear to fire normally. No warning is issued. The dropped parameters do not appear in reports or exports. This matters most for ecommerce tags, which tend to carry the most parameters. Teams migrating UA hit schemas into GA4 without auditing parameter count are especially exposed.

Enhanced Measurement adds another axis of failure. When GTM fires a tag for page_view, scroll, or file_download while Enhanced Measurement is also enabled in GA4, both paths deliver a hit. The result is doubled event counts. The fix is to disable the Enhanced Measurement toggle for that event type, or to remove the GTM tag. Removing both eliminates the event entirely.

The category also checks configuration patterns that affect data quality without being naming issues. Tags using Once Per Page firing silently drop repeat events on single-page applications. Debug parameters left in production add noise to GA4 reports. Universal Analytics parameter names (event_category, event_action, event_label) have no native reporting role in GA4. Purchase tags wired to page-load triggers may fire before the data layer is populated.

How findings are tiered

GA4 rules distribute across all four tiers: errors, warnings, optimizations, and info.

Errors cover PII risk. The two error rules flag parameters whose names suggest personal data is being sent to GA4.

Warnings cover conditions where data is lost. Silent parameter drops, invalid event names that GA4 rejects, reserved parameter prefixes, and missing required ecommerce parameters land here.

Optimizations cover conditions that degrade data quality or create maintenance burden without causing outright data loss. Casing inconsistencies, Enhanced Measurement conflicts, duplicate event names, and debug mode left on in production fall here. So do ecommerce tags spread across too many individual GTM tags.

Info rules flag patterns that signal technical debt or configuration drift without causing active data loss. Examples include hardcoded measurement IDs, legacy UA parameter names, inconsistent parameter casing, and debug parameters left in production tags.

See Health score for how each tier contributes to the overall score.

Rules in this category

Errors

  • ga4-param-pii-risk — Parameters with names that strongly suggest personally identifiable information is being collected.
  • ga4-pii-parameter-names — Parameters with names like email, phone, or user_name — GA4 prohibits sending PII.

Warnings

  • ga4-ecommerce-missing-params — Purchase event missing transaction_id, value, or currency — required for revenue reporting in GA4.
  • ga4-event-name-invalid-chars — Event names contain spaces, hyphens, or start with a number. GA4 will reject or silently rename these events.
  • ga4-excessive-parameters — Event tags send more than 25 custom parameters. GA4 drops parameters beyond this limit silently.
  • ga4-param-reserved-prefix — Parameters use reserved prefixes (ga_, google_, firebase_, gtag., or leading underscore) that GA4 silently drops.

Optimizations

  • ga4-custom-html-gtag — Custom HTML contains gtag() calls instead of native GA4 event tags, losing consent integration and debugging.
  • ga4-debug-mode-hardcoded — debug_mode is set to literal "true" instead of a GTM variable, so it stays on in production.
  • ga4-duplicate-event-names — Multiple active tags send the same event name, causing double-counting of events in reports.
  • ga4-ecommerce-separate-tags — Many separate GA4 tags handle individual ecommerce events instead of consolidating with the ecommerce data layer.
  • ga4-enhanced-measurement-conflict — GTM tags send events that GA4 Enhanced Measurement also tracks automatically (scroll, click, video, etc.).
  • ga4-event-name-casing — GA4 event names use uppercase letters. GA4 treats Add_To_Cart and add_to_cart as separate events, fragmenting data.
  • ga4-event-name-length — Event names longer than 40 characters are silently truncated by GA4, potentially merging distinct events.
  • ga4-once-per-load — GA4 event tags set to fire Once Per Page, which silently drops repeat events on single-page applications.
  • ga4-parameter-name-length — GA4 parameter names longer than 40 characters are silently truncated.
  • ga4-purchase-wrong-trigger — Purchase event triggered by page-load instead of a custom event trigger, which may fire before ecommerce data is ready.
  • ga4-redundant-auto-params — Custom parameters duplicate data GA4 collects automatically (page_location, page_referrer, page_title). This wastes the 25-parameter-per-event limit.
  • ga4-reserved-event-names — Event names conflict with GA4 reserved names for automatic tracking (e.g., first_visit, session_start).

Info

  • ga4-debug-params-in-production — Parameters like gtm_tag_name or tag_name are present in production event tags. Useful during development but add noise to GA4 reports.
  • ga4-event-name-proliferation — Similar events that differ only by suffix could be consolidated (e.g., button_click_header, button_click_footer).
  • ga4-legacy-ua-params — GA4 events use event_category, event_action, or event_label — Universal Analytics naming conventions that don't map to GA4's native reporting model.
  • ga4-measurement-id-hardcoded — GA4 measurement ID hardcoded as a literal value instead of a GTM variable, making multi-environment updates error-prone.
  • ga4-param-casing-inconsistent — The same parameter name appears with different casing across GA4 tags, fragmenting data in reports.
  • ga4-param-hardcoded-values — The same parameter is used with both hardcoded strings and GTM variables across different tags.

Common patterns

The most common failure mode is casing drift. A team implements GA4 carefully at launch, using lowercase snake_case throughout. Over 12–18 months, new tags get added by different people or agencies. Some use camelCase. Some use title case. GA4 treats each variant as a separate event. The original add_to_cart slowly accumulates siblings — Add_To_Cart, addToCart, AddToCart — each carrying a fraction of the real event volume. No single tag is wrong in isolation. The problem is only visible when you look across the container at once.

A related pattern is UA-to-GA4 migration debt. Teams that migrated from Universal Analytics often port their existing tag structure directly. UA events used event_category, event_action, and event_label as the primary dimensions. In GA4, those parameter names have no special meaning. They appear as ordinary custom parameters, not part of GA4's native event model. Data arrives in GA4, but analysts expecting GA4-native reporting find none of it where they look.

Enhanced Measurement conflicts tend to appear in containers where a UA page-view tag was converted to a GA4 configuration tag. The person doing the migration often adds an explicit page_view GA4 event tag to match the old UA pattern. Enhanced Measurement is left on by default. The result is two page_view hits per page load, inflating session and engagement metrics from day one. The inflation is consistent enough to go unnoticed for months — the numbers look proportionate, only doubled.

See also

  • Health score — how findings in this category translate to score deductions
  • Rules catalog — browse all rules across all categories
  • Consent rules — adjacent category covering tag firing relative to consent state