[{"data":1,"prerenderedAt":293},["ShallowReactive",2],{"rule-naming-mixed-separators":3},{"id":4,"title":5,"body":6,"breadcrumb":257,"coderail":264,"dateModified":282,"datePublished":282,"description":283,"extension":284,"meta":285,"navigation":286,"next":282,"path":287,"prev":282,"schemaType":288,"seo":289,"stem":290,"wide":291,"__hash__":292},"docs\u002Frules\u002Fnaming-mixed-separators.md","Mixed naming separators across tags",{"type":7,"value":8,"toc":248},"minimark",[9,16,54,59,78,82,91,95,136,140,158,162,220,224],[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",{},"naming-mixed-separators",[20,31,32,35],{},[13,33,34],{},"purpose"," — Detect containers where tag names use more than one separator style",[20,37,38,41],{},[13,39,40],{},"effect"," — Inconsistent separators make filtering, sorting, and grepping tags harder",[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],{},"The rule scans all active (non-paused) tags and tests each name against four separator patterns: ",[27,63,64],{},"-"," (hyphen), ",[27,67,68],{},"–"," (en dash), ",[27,71,72],{},"|"," (pipe), and ",[27,75,76],{},":"," (colon). It counts how many tags match each pattern. If two or more distinct separators appear across the tag set, the rule fires. The separator with the highest count is designated dominant. Tags using any other separator are flagged as deviating. Paused tags are excluded from the count.",[55,79,81],{"id":80},"why-it-matters","Why it matters",[10,83,84,85,87,88,90],{},"Naming conventions are an implicit contract across everyone who edits a container. When half the tags use ",[27,86,72],{}," and the rest use ",[27,89,64],{},", filtering by prefix in GTM (Google Tag Manager) returns incomplete results. Bulk operations and external audits that rely on pattern matching break silently. The problem compounds as new tags inherit the wrong style from whichever existing tag the author copied. Standardizing on one separator costs a single sprint and prevents years of ambiguity.",[55,92,94],{"id":93},"example","Before \u002F after",[96,97,98,121],"compare",{},[99,100,102,112],"compare-col",{"label":101},"Before — mixed separators",[103,104,110],"pre",{"className":105,"code":107,"language":108,"meta":109},[106],"language-text","GA4 | Page View\nGA4 | Form Submit\nGA4 - Purchase\nGA4 - Add to Cart\nMeta | Lead Event\n","text","",[27,111,107],{"__ignoreMap":109},[10,113,114,115,117,118,120],{},"Two separator styles in one container. The ",[27,116,72],{}," pattern is dominant (3 tags); ",[27,119,64],{}," deviates (2 tags).",[99,122,124,130],{"label":123},"After — standardized",[103,125,128],{"className":126,"code":127,"language":108,"meta":109},[106],"GA4 | Page View\nGA4 | Form Submit\nGA4 | Purchase\nGA4 | Add to Cart\nMeta | Lead Event\n",[27,129,127],{"__ignoreMap":109},[10,131,132,133,135],{},"All tags use the dominant ",[27,134,72],{}," separator. Filtering by vendor prefix now returns complete results.",[55,137,139],{"id":138},"remediation","Remediation",[141,142,143,146,149,152,155],"ol",{},[20,144,145],{},"Open the TagManifest audit report and note the dominant separator listed in the rule output.",[20,147,148],{},"Filter your container's tag list for each deviating separator pattern.",[20,150,151],{},"Rename each deviating tag to use the dominant separator.",[20,153,154],{},"Confirm renamed tags still reference the correct triggers and variables — renaming does not affect wiring.",[20,156,157],{},"Publish the container with a version note describing the naming standardization.",[55,159,161],{"id":160},"metadata","Metadata",[163,164,167,168,173,167,177,181,167,184,188,167,191,194,167,197,201,167,204,208,167,214,217],"dl",{"className":165},[166],"spec-list","\n  ",[169,170,172],"dt",{"id":171},"severity","Severity",[174,175,176],"dd",{},"low",[169,178,180],{"id":179},"tier","Tier",[174,182,183],{},"info",[169,185,187],{"id":186},"category","Category",[174,189,190],{},"organization",[169,192,193],{"id":46},"Layer",[174,195,196],{},"container",[169,198,200],{"id":199},"version","Version",[174,202,203],{},"1",[169,205,207],{"id":206},"effort","Effort",[174,209,210,213],{},[27,211,212],{},"2hr"," (about 2 hours)",[169,215,216],{"id":52},"Reversibility",[174,218,219],{},"non-destructive",[55,221,223],{"id":222},"see-also","See also",[17,225,226,234,241],{},[20,227,228,233],{},[229,230,232],"a",{"href":231},"\u002Fcategories\u002Forganization\u002F","Organization rules"," — other rules in this category",[20,235,236,240],{},[229,237,239],{"href":238},"\u002Fhealth-score\u002F","Health score"," — how this rule contributes to the score",[20,242,243,247],{},[229,244,246],{"href":245},"\u002Frules\u002F","Rules catalog"," — browse all rules",{"title":109,"searchDepth":249,"depth":249,"links":250},2,[251,252,253,254,255,256],{"id":57,"depth":249,"text":58},{"id":80,"depth":249,"text":81},{"id":93,"depth":249,"text":94},{"id":138,"depth":249,"text":139},{"id":160,"depth":249,"text":161},{"id":222,"depth":249,"text":223},[258,261,263],{"label":259,"href":260},"API Reference","\u002F",{"label":262,"href":245},"Rules",{"label":29},{"cards":265,"onpage":276},[266],{"title":267,"tabs":268},"Evaluate",[269,273],{"label":270,"language":271,"code":272},"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\":\"naming-mixed-separators\",\"url\":\"https:\u002F\u002Fexample.com\"}'\n",{"label":274,"language":108,"code":275},"MCP","User: Run naming-mixed-separators on https:\u002F\u002Fexample.com\n\n# Tool call\n{\n  \"tool\": \"evaluate_rule\",\n  \"arguments\": {\n    \"rule_id\": \"naming-mixed-separators\",\n    \"url\": \"https:\u002F\u002Fexample.com\"\n  }\n}\n",[277,278,279,280,281],{"id":57,"label":58},{"id":80,"label":81},{"id":93,"label":94},{"id":138,"label":139},{"id":160,"label":161},null,"Container uses 2+ different naming separator styles ( - , – , | , : ). The dominant separator is identified; deviating tags listed.","md",{},true,"\u002Frules\u002Fnaming-mixed-separators","TechArticle",{"title":5,"description":283},"rules\u002Fnaming-mixed-separators",false,"sALq5aG0Ze3ficvgx8CEOVbKhYfGA3dGy-ydrZkdQKQ",1796069484029]