Tags without structured naming convention
5+ active tags lack a structured naming separator ( - , – , | , : ). A consistent naming convention makes the container easier to navigate, filter, and audit.
Summary
- rule_id —
naming-no-convention - purpose — Detect containers where most active tags lack a structured naming separator
- effect — Tags are difficult to filter, search, and audit without a consistent naming pattern
- layer — container
- reversibility — non-destructive
What fires this
The rule filters active (non-paused) tags and checks each tag name against a separator pattern. The pattern accepts space-padded forms (GA4 - Event - Purchase) and no-space forms (GA4-Event-Purchase). The rule fires only when two thresholds are both met: at least 5 tags fail the separator check, and those tags represent 40% or more of all active tags. Containers with 8 or fewer active tags are skipped — no convention can be established at that scale.
Why it matters
Unstructured tag names make routine container work slower and error-prone. Filtering by platform, type, or action in the GTM (Google Tag Manager) UI relies on predictable name segments. Without separators, auditors must read every tag name individually to determine scope. When containers grow or change ownership, undocumented naming increases the risk of duplicate or conflicting tags. Renaming tags is non-destructive and does not affect firing behavior.
Before / after
Tags named without separators:
GA4 purchaseGoogle Ads conversionMeta pixel pageviewHotjar recordingLinkedIn insight
Tags renamed with a consistent separator convention:
GA4 - Event - PurchaseGoogle Ads - Conversion - CheckoutMeta - Pixel - PageviewHotjar - Session - RecordingLinkedIn - Insight - All Pages
Remediation
- Choose a separator style for the container: space-dash-space (
-), pipe (|), or colon (:). Pick one and document it in a container description or internal wiki. - Decide on a naming structure, for example
Platform - Type - ActionorVendor - Tag Type - Trigger Scope. - Open GTM and filter active tags by the tag names listed in the issue payload.
- Rename each flagged tag to match the chosen pattern.
- Confirm whether paused tags should be renamed or deleted before reactivation.
- Publish a versioned container snapshot after renaming so the change is auditable.
Metadata
- Severity
- medium
- Tier
- info
- Category
- organization
- Layer
- container
- Version
- 1
- Effort
2hr(about 2 hours)- 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":"naming-no-convention","url":"https://example.com"}'
User: Run naming-no-convention on https://example.com
# Tool call
{
"tool": "evaluate_rule",
"arguments": {
"rule_id": "naming-no-convention",
"url": "https://example.com"
}
}