[{"data":1,"prerenderedAt":283},["ShallowReactive",2],{"rule-orphaned-triggers":3},{"id":4,"title":5,"body":6,"breadcrumb":246,"coderail":253,"dateModified":272,"datePublished":272,"description":273,"extension":274,"meta":275,"navigation":276,"next":272,"path":277,"prev":272,"schemaType":278,"seo":279,"stem":280,"wide":281,"__hash__":282},"docs\u002Frules\u002Forphaned-triggers.md","Orphaned triggers (not used by any tag)",{"type":7,"value":8,"toc":236},"minimark",[9,16,54,59,90,94,101,105,124,128,146,150,208,212],[10,11,12],"p",{},[13,14,15],"strong",{},"Summary",[17,18,19,30,36,42,48],"ul",{},[20,21,22,25,26],"li",{},[13,23,24],{},"rule_id"," — ",[27,28,29],"code",{},"orphaned-triggers",[20,31,32,35],{},[13,33,34],{},"purpose"," — Detect triggers that exist in the container but are not referenced by any tag",[20,37,38,41],{},[13,39,40],{},"effect"," — Unreferenced triggers add navigational noise and can mislead reviewers about active coverage",[20,43,44,47],{},[13,45,46],{},"layer"," — container",[20,49,50,53],{},[13,51,52],{},"reversibility"," — non-destructive",[55,56,58],"h2",{"id":57},"what-fires-this","What fires this",[10,60,61,62,65,66,69,70,73,74,77,78,81,82,85,86,89],{},"The rule filters ",[27,63,64],{},"data.triggers"," for entries where ",[27,67,68],{},"referencedByTags.length === 0",". It then excludes GTM's built-in trigger IDs (",[27,71,72],{},"2147479553",", ",[27,75,76],{},"2147479573",") and any trigger whose name or filter conditions match a CMP platform pattern (OneTrust, Cookiebot, ",[27,79,80],{},"OnetrustActiveGroups",", OneTrust category codes ",[27,83,84],{},"C000x",", Usercentrics, CookieYes, Didomi). CMP triggers are excluded because they are activated externally by the consent platform rather than via ",[27,87,88],{},"firingTriggerIds"," in tag configuration. Every remaining trigger with no tag references is flagged.",[55,91,93],{"id":92},"why-it-matters","Why it matters",[10,95,96,97,100],{},"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 ",[27,98,99],{},"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.",[55,102,104],{"id":103},"example","Before \u002F after",[106,107,108,118],"compare",{},[109,110,112],"compare-col",{"label":111},"Before — orphaned",[10,113,114,115,117],{},"Trigger \"CE - Newsletter Signup\" exists in the container but no tag lists it in ",[27,116,88],{},". It was created during a prior A\u002FB test and never removed when the test tags were deleted.",[109,119,121],{"label":120},"After — pruned",[10,122,123],{},"Trigger deleted. If the integration may return, document the intent in a GTM workspace note or a linked ticket, then review quarterly.",[55,125,127],{"id":126},"remediation","Remediation",[129,130,131,134,137,140,143],"ol",{},[20,132,133],{},"Open the finding and note each flagged trigger name and ID.",[20,135,136],{},"For each trigger, confirm it does not appear in any tag's firing or exception trigger configuration.",[20,138,139],{},"Determine whether the trigger is preserved intentionally for future use or as a template.",[20,141,142],{},"Delete triggers confirmed to be unused and unintentional.",[20,144,145],{},"Publish the workspace.",[55,147,149],{"id":148},"metadata","Metadata",[151,152,155,156,161,155,165,169,155,172,176,155,179,182,155,185,189,155,192,196,155,202,205],"dl",{"className":153},[154],"spec-list","\n  ",[157,158,160],"dt",{"id":159},"severity","Severity",[162,163,164],"dd",{},"medium",[157,166,168],{"id":167},"tier","Tier",[162,170,171],{},"info",[157,173,175],{"id":174},"category","Category",[162,177,178],{},"organization",[157,180,181],{"id":46},"Layer",[162,183,184],{},"container",[157,186,188],{"id":187},"version","Version",[162,190,191],{},"1",[157,193,195],{"id":194},"effort","Effort",[162,197,198,201],{},[27,199,200],{},"15min"," (about 15 minutes)",[157,203,204],{"id":52},"Reversibility",[162,206,207],{},"non-destructive",[55,209,211],{"id":210},"see-also","See also",[17,213,214,222,229],{},[20,215,216,221],{},[217,218,220],"a",{"href":219},"\u002Fcategories\u002Forganization\u002F","Organization rules"," — other rules in this category",[20,223,224,228],{},[217,225,227],{"href":226},"\u002Fhealth-score\u002F","Health score"," — how this rule contributes to the score",[20,230,231,235],{},[217,232,234],{"href":233},"\u002Frules\u002F","Rules catalog"," — browse all rules",{"title":237,"searchDepth":238,"depth":238,"links":239},"",2,[240,241,242,243,244,245],{"id":57,"depth":238,"text":58},{"id":92,"depth":238,"text":93},{"id":103,"depth":238,"text":104},{"id":126,"depth":238,"text":127},{"id":148,"depth":238,"text":149},{"id":210,"depth":238,"text":211},[247,250,252],{"label":248,"href":249},"API Reference","\u002F",{"label":251,"href":233},"Rules",{"label":29},{"cards":254,"onpage":266},[255],{"title":256,"tabs":257},"Evaluate",[258,262],{"label":259,"language":260,"code":261},"cURL","bash","curl https:\u002F\u002Fdeveloper.tagmanifest.com\u002Fv1\u002Fevaluate-rule \\\n  -H \"Authorization: Bearer $TM_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"rule_id\":\"orphaned-triggers\",\"url\":\"https:\u002F\u002Fexample.com\"}'\n",{"label":263,"language":264,"code":265},"MCP","text","User: Run orphaned-triggers on https:\u002F\u002Fexample.com\n\n# Tool call\n{\n  \"tool\": \"evaluate_rule\",\n  \"arguments\": {\n    \"rule_id\": \"orphaned-triggers\",\n    \"url\": \"https:\u002F\u002Fexample.com\"\n  }\n}\n",[267,268,269,270,271],{"id":57,"label":58},{"id":92,"label":93},{"id":103,"label":104},{"id":126,"label":127},{"id":148,"label":149},null,"Triggers not referenced by any tag — leftover from deleted tags or never used. Built-in triggers excluded.","md",{},true,"\u002Frules\u002Forphaned-triggers","TechArticle",{"title":5,"description":273},"rules\u002Forphaned-triggers",false,"86Bcq4SukSDwGnCFyFgeqYVGn-hQGBiMaaX79r5MHqc",1796069484057]