Overloaded trigger firing 10+ tags
A single trigger fires 10 or more tags simultaneously, creating a burst of network requests that can impact page performance.
Summary
- rule_id —
trigger-overloaded - purpose — Detect triggers that fire 10 or more active tags simultaneously
- effect — Burst of JavaScript execution and network requests on a single trigger; increases Time to Interactive
- layer — container
- reversibility — non-destructive
What fires this
The rule builds a map from each trigger ID to all active tags that reference it via firingTriggerIds. Any trigger with 10 or more tags in that list is flagged. Consent-update triggers are excluded — patterns matching OneTrust, Cookiebot, consent.*update, and OnetrustActiveGroups legitimately fan out to many tags by design. Paused tags are excluded. Flagged triggers are returned sorted by tag count, highest first.
Why it matters
When one trigger fires 10 or more tags, the browser must initialize and execute all of them in a short window. Each tag that makes network requests adds DNS lookups, TCP connections, and response waits on top of JavaScript execution time. This extends Time to Interactive and competes with the page's own scripts. Built-in triggers like All Pages accumulate tags over time as teams add vendors without deferring any to later-stage triggers. Distributing load across DOM Ready and Window Loaded reduces the execution spike without removing tags.
Before / after
All Pages trigger fires 22 tags simultaneously: GA4 config, 4 ad pixels, 3 remarketing tags, chat widget, heatmap, survey tool, 6 conversion tags, and 6 additional vendor scripts. All execute in the same tick on every page load.
All Pages fires 4 critical tags (GA4 config, primary conversion). DOM Ready fires 6 tags (secondary analytics, form tracking). Window Loaded fires 12 non-critical tags (chat, heatmap, survey, remarketing pixels). Total tag count unchanged; execution spread across three trigger stages.
Remediation
- Identify the overloaded triggers from the finding and list all tags they fire.
- Categorize each tag: must-fire-early (GA4 config, primary conversion) vs. deferrable (remarketing, chat, survey, heatmap).
- Move deferrable tags to a later-stage trigger — DOM Ready fires after parse; Window Loaded fires after all resources load.
- For tags with no page-interaction dependency, add a custom event trigger on a
setTimeout(1–2 seconds) to further spread load. - For pixel-only tags with no client-side logic requirement, evaluate server-side GTM to remove them from the browser entirely.
- Re-evaluate the container after changes and confirm the trigger tag counts drop below 10.
Metadata
- Severity
- high
- Tier
- optimization
- Category
- quality
- Layer
- container
- Version
- 1
- Effort
2hr(about 2 hours)- Reversibility
- non-destructive
See also
- Quality 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":"trigger-overloaded","url":"https://example.com"}'
User: Run trigger-overloaded on https://example.com
# Tool call
{
"tool": "evaluate_rule",
"arguments": {
"rule_id": "trigger-overloaded",
"url": "https://example.com"
}
}