Universal Analytics tags still published and set to fire
Native Universal Analytics tags are published and set to fire. Universal Analytics stopped processing data in July 2023, so they load analytics.js and send hits nothing records.
Summary
- rule_id —
ua-tag-live - purpose — Detect native Universal Analytics tags (GTM tag type
ua) that can still fire - effect — Each page view loads analytics.js and sends hits to a property that no longer processes data
- layer — container
- reversibility — non-destructive
What fires this
The rule flags every native Universal Analytics tag that is set to fire. A tag counts as set to fire when it is not paused and has at least one firing trigger that is not also one of its exception triggers, or when it runs as the setup or cleanup tag of a tag that can fire (tag sequencing). Paused tags and tags with no way to fire are left out; they are clutter, not live code. Universal Analytics calls inside custom HTML are covered separately by ua-send and gaq-push.
Why it matters
Google stopped processing Universal Analytics data on July 1, 2023. A UA tag that still fires costs a script download and a network request on every page it fires on, and the data goes nowhere. It also signals a container nobody has cleaned since the GA4 migration, which is usually where other stale tags sit.
In the verdict this is a confirmed reason. It is grouped with live Optimize tags and Universal Analytics code as one problem, retired Google tools, so on its own it makes a container Needs fixing, never Liability.
Before / after
Tag: GA - Pageview (Universal Analytics)
type: ua
trigger: All Pages
status: published
Tag: GA - Pageview (Universal Analytics)
status: paused, then deleted after a review
Tag: GA4 - Google tag
type: googtag (G-XXXXXXXXXX)
trigger: Initialization - All Pages
Remediation
- List the flagged tags and note what each tracked (page views, events, ecommerce).
- Check that GA4 covers each one; rebuild anything still needed as a GA4 event first.
- Pause the UA tags, publish, and confirm nothing breaks.
- Delete the tags, and any variables and triggers only they used (the UA settings variable, UA tracking id constants).
Metadata
- Severity
- high
- Tier
- error
- Category
- dead-code
- Layer
- container
- Version
- 1
- Reversibility
- non-destructive
See also
- Dead-code rules — other rules in this category
- Verdict — how this rule feeds the verdict
- 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":"ua-tag-live","url":"https://example.com"}'
User: Run ua-tag-live on https://example.com
# Tool call
{
"tool": "evaluate_rule",
"arguments": {
"rule_id": "ua-tag-live",
"url": "https://example.com"
}
}