Skip to main content
TagManifest /Docs Dashboard

Orphaned triggers (not used by any tag)

Triggers not referenced by any tag — leftover from deleted tags or never used. Built-in triggers excluded.

On this page 6

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

  1. Open the finding and note each flagged trigger name and ID.
  2. For each trigger, confirm it does not appear in any tag's firing or exception trigger configuration.
  3. Determine whether the trigger is preserved intentionally for future use or as a template.
  4. Delete triggers confirmed to be unused and unintentional.
  5. Publish the workspace.

Metadata

Severity
medium
Tier
info
Category
organization
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":"orphaned-triggers","url":"https://example.com"}'