Duplicate event names across tags
Multiple active tags send the same event name, causing double-counting of events in reports.
Summary
- rule_id —
ga4-duplicate-event-names - purpose — Detect multiple active tags sending identical GA4 event names
- effect — Each duplicate tag fires independently, inflating event counts in reports
- layer — container
- reversibility — non-destructive
What fires this
The rule calls getGA4EventTags() to collect all active GA4 event tags, then groups them by t.ga4.eventName. Any event name held by two or more tags is a duplicate. Tags with no resolved event name and tags whose name starts with {{ (unresolved variable references) are skipped. The rule returns a single issue listing all affected tags and all duplicate event names. Paused tags are excluded by getGA4EventTags().
Why it matters
When two tags fire the same event name on the same trigger, GA4 records both hits. The event appears twice in reports, audiences, and conversion counts. No GA4 deduplication layer merges them. Reports become unreliable and any downstream decision — bid adjustments, funnel analysis, quota monitoring — acts on inflated numbers. Because the tags fire independently, the inflation scales with trigger frequency.
Before / after
Tag "GA4 - form_submit (contact)" fires form_submit on All Pages trigger.
Tag "GA4 - form_submit (demo)" fires form_submit on All Pages trigger.
Both tags are active. GA4 receives two form_submit hits per submission.
Tag "GA4 - form_submit" fires form_submit on All Pages trigger.
A Lookup Table variable sets form_type to "contact" or "demo"
based on the page URL.
One hit reaches GA4 per form submission.
Remediation
- Open the TagManifest issue detail to see which event names are duplicated and which tags share them.
- Open each flagged tag in GTM (Google Tag Manager) and compare trigger conditions and parameter sets.
- Determine whether the tags cover the same logical event or distinct events with a shared name by mistake.
- If the same event: merge into one tag and use trigger conditions or a Lookup Table variable to carry differentiating parameters.
- If distinct events: rename one to a unique event name that reflects its purpose.
- Verify in GA4 DebugView that only one hit arrives per user action.
- Publish the container and confirm event counts stabilize in reports.
Metadata
- Severity
- medium
- Tier
- optimization
- Category
- ga4
- Layer
- container
- Version
- 1
- Effort
2hr(about 2 hours)- 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-duplicate-event-names","url":"https://example.com"}'
User: Run ga4-duplicate-event-names on https://example.com
# Tool call
{
"tool": "evaluate_rule",
"arguments": {
"rule_id": "ga4-duplicate-event-names",
"url": "https://example.com"
}
}