Similar event name proliferation
Similar events that differ only by suffix could be consolidated (e.g., button_click_header, button_click_footer).
Summary
- rule_id —
ga4-event-name-proliferation - purpose — Detect groups of GA4 event names that share a common prefix and differ only by a trailing suffix
- effect — Each distinct event name occupies one of GA4's 500 custom event slots; similar events inflate that count unnecessarily
- layer — container
- reversibility — non-destructive
What fires this
The rule collects all active GA4 event tags via getGA4EventTags() and reads each tag's ga4.eventName field. Names that start with {{ (variable placeholders) are skipped. Remaining names are grouped by prefix: a prefix is everything up to the final underscore-delimited segment. Names with fewer than three segments are not grouped, so GA4's own two-part events such as view_item, view_cart and view_promotion never form a group. When three or more distinct event names share the same prefix — for example, button_click_header, button_click_footer, button_click_nav — the rule fires. All tags contributing to a proliferating group are returned as affected items; duplicate tag IDs across groups are deduplicated.
Why it matters
GA4 enforces a limit of 500 custom event names per property. Each suffix variant counts as a separate slot. Three events that differ only in context — signup_email, signup_google, signup_apple — consume three slots that a single signup event with a signup_type parameter would cover with one. At scale, slot exhaustion blocks new events from registering. GA4 drops the events silently with no in-app warning.
Before / after
Container sends three separate events:
button_click_header, button_click_footer, button_click_nav
Each is a distinct GA4 event tag firing on its own trigger. Three event name slots consumed for one logical action.
One button_click event tag fires across all triggers.
A button_location parameter is set to header, footer, or nav
via a GTM variable. One slot consumed; full context preserved.
Remediation
- Review the flagged prefix groups and the event names within each group.
- Determine whether the variants represent different actions or the same action in different contexts.
- For same-action groups: choose a consolidated event name (the shared prefix) and a distinguishing parameter name (e.g.,
button_location). - Update each GTM tag in the group: set the event name to the consolidated name and add the context value as an event parameter.
- Update any Custom Event triggers that match the old variant names to use the consolidated event name.
- Remove the now-redundant event tags from the container.
- Verify in GA4 DebugView that the parameter value arrives correctly for each context.
Metadata
- Severity
- medium
- Tier
- info
- Category
- ga4
- Layer
- container
- Version
- 1
- Effort
strategic(no fixed time; needs a plan)- 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-event-name-proliferation","url":"https://example.com"}'
User: Run ga4-event-name-proliferation on https://example.com
# Tool call
{
"tool": "evaluate_rule",
"arguments": {
"rule_id": "ga4-event-name-proliferation",
"url": "https://example.com"
}
}