Orphaned triggers (not used by any tag)
Triggers not referenced by any tag — leftover from deleted tags or never used. Built-in triggers excluded.
Summary
- rule_id —
orphaned-triggers - purpose — Detect triggers that exist in the container but are not referenced by any tag
- effect — Unreferenced triggers add navigational noise and can mislead reviewers about active coverage
- layer — container
- reversibility — non-destructive
What fires this
The rule filters data.triggers for entries where referencedByTags.length === 0. It then excludes GTM's built-in trigger IDs (2147479553, 2147479573) and any trigger whose name or filter conditions match a CMP platform pattern (OneTrust, Cookiebot, OnetrustActiveGroups, OneTrust category codes C000x, Usercentrics, CookieYes, Didomi). CMP triggers are excluded because they are activated externally by the consent platform rather than via firingTriggerIds in tag configuration. Every remaining trigger with no tag references is flagged.
Why it matters
Orphaned triggers are created when a tag is deleted without removing its associated triggers, or when a trigger is built in anticipation of a tag that never ships. They accumulate silently. In containers that use naming conventions to signal active features, an orphaned trigger named CE - Newsletter Signup implies that integration is live when it is not. Deleting an orphaned trigger carries no runtime risk — triggers cannot fire independently. Leaving them unchecked erodes the reliability of container audits over time.
Before / after
Trigger "CE - Newsletter Signup" exists in the container but no tag lists it in firingTriggerIds. It was created during a prior A/B test and never removed when the test tags were deleted.
Trigger deleted. If the integration may return, document the intent in a GTM workspace note or a linked ticket, then review quarterly.
Remediation
- Open the finding and note each flagged trigger name and ID.
- For each trigger, confirm it does not appear in any tag's firing or exception trigger configuration.
- Determine whether the trigger is preserved intentionally for future use or as a template.
- Delete triggers confirmed to be unused and unintentional.
- Publish the workspace.
Metadata
- Severity
- medium
- Tier
- info
- Category
- organization
- Layer
- container
- Version
- 1
- Effort
15min(about 15 minutes)- Reversibility
- non-destructive
See also
- Organization 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":"orphaned-triggers","url":"https://example.com"}'
User: Run orphaned-triggers on https://example.com
# Tool call
{
"tool": "evaluate_rule",
"arguments": {
"rule_id": "orphaned-triggers",
"url": "https://example.com"
}
}