Skip to main content
TagManifest /Docs Dashboard

Mixed naming separators across tags

Container uses 2+ different naming separator styles ( - , – , | , : ). The dominant separator is identified; deviating tags listed.

On this page 6

Summary

  • rule_id — naming-mixed-separators
  • purpose — Detect containers where tag names use more than one separator style
  • effect — Inconsistent separators make filtering, sorting, and grepping tags harder
  • layer — container
  • reversibility — non-destructive

What fires this

The rule scans all active (non-paused) tags and tests each name against four separator patterns: - (hyphen), – (en dash), | (pipe), and : (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.

Why it matters

Naming conventions are an implicit contract across everyone who edits a container. When half the tags use | and the rest use -, 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.

Before / after

GA4 | Page View
GA4 | Form Submit
GA4 - Purchase
GA4 - Add to Cart
Meta | Lead Event

Two separator styles in one container. The | pattern is dominant (3 tags); - deviates (2 tags).

GA4 | Page View
GA4 | Form Submit
GA4 | Purchase
GA4 | Add to Cart
Meta | Lead Event

All tags use the dominant | separator. Filtering by vendor prefix now returns complete results.

Remediation

  1. Open the TagManifest audit report and note the dominant separator listed in the rule output.
  2. Filter your container's tag list for each deviating separator pattern.
  3. Rename each deviating tag to use the dominant separator.
  4. Confirm renamed tags still reference the correct triggers and variables — renaming does not affect wiring.
  5. Publish the container with a version note describing the naming standardization.

Metadata

Severity
low
Tier
info
Category
organization
Layer
container
Version
1
Effort
2hr (about 2 hours)
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":"naming-mixed-separators","url":"https://example.com"}'