Skip to main content
TagManifest /Docs Dashboard

Parameter names exceed 40 characters

GA4 parameter names longer than 40 characters are silently truncated.

On this page 6

Summary

  • rule_id — ga4-parameter-name-length
  • purpose — Detect GA4 event parameter names longer than 40 characters
  • effect — GA4 silently truncates names at 40 characters, which can merge distinct parameters or drop data
  • layer — container
  • reversibility — non-destructive

What fires this

The rule iterates every GA4 event tag found by getGA4EventTags() and checks each entry in t.ga4.eventParameters. Any parameter whose name property exceeds 40 characters is collected into the affected list. If at least one such parameter exists across any tag, the rule returns a single medium-severity issue listing every affected tag ID and the offending names with their lengths. Paused tags are excluded by getGA4EventTags().

Why it matters

GA4 enforces a 40-character limit on parameter names but surfaces no warning when the limit is breached. The excess characters are silently dropped at ingestion. Two parameters sharing the same first 40 characters collapse into the same key, overwriting each other in reports. GTM (Google Tag Manager) Preview mode shows the full name; GA4 DebugView shows only the truncated result. The discrepancy makes the bug invisible until you query the raw BigQuery export and notice missing dimensions.

Before / after

GA4 event tag: "generate_lead"
  eventParameters:
    - name: "user_registration_funnel_completion_step_v2"
      / 43 chars — truncated to 40, collides with _v1 suffix
    - name: "campaign_source_medium_content_term_combined"
      / 44 chars — truncated, suffix lost
    - name: "page_category"
      / 13 chars — ok
GA4 event tag: "generate_lead"
  eventParameters:
    - name: "reg_funnel_step_v2"
      / 18 chars — unique, no collision risk
    - name: "campaign_combined"
      / 17 chars — ok
    - name: "page_category"
      / 13 chars — ok

Remediation

  1. Open each flagged tag in GTM and locate the parameter names listed in the issue detail.
  2. Check the length of each offending name — the issue payload includes the character count.
  3. Shorten each name to 40 characters or fewer; use abbreviations (reg_ for registration_, cmpgn_ for campaign_) where meaning is preserved.
  4. Confirm no shortened name collides with an existing parameter on the same tag or a sibling tag.
  5. Update any downstream references — Looker Studio reports, BigQuery queries, GA4 custom dimensions — that use the old parameter name.
  6. Publish the container and verify corrected names appear in GA4 DebugView before promoting to production.

Metadata

Severity
medium
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-parameter-name-length","url":"https://example.com"}'