Google Optimize tags still published and set to fire
Native Google Optimize tags are published and set to fire. Optimize shut down in September 2023, so they load code that does nothing.
Summary
- rule_id —
optimize-tag-live - purpose — Detect native Google Optimize tags (GTM tag type
opt) that can still fire - effect — Each page load requests a script for a product that no longer runs; an anti-flicker snippet may still hide the page while it waits
- layer — container
- reversibility — non-destructive
What fires this
The rule flags every native Google Optimize 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). Optimize was often sequenced with a Universal Analytics tag, so the sequencing case matters here.
Why it matters
Google Optimize and Optimize 360 shut down on September 30, 2023. A live Optimize tag requests code that does nothing. If the site still carries the Optimize anti-flicker snippet, it can hide the page for up to its timeout on every load while it waits for an experiment that never arrives.
In the verdict this is a confirmed reason, grouped with live Universal Analytics tags and code as one problem, retired Google tools.
Before / after
Tag: Google Optimize
type: opt
sequencing: setup tag of GA - Pageview
status: published
Tag: Google Optimize
status: deleted
Site template: anti-flicker snippet removed
Remediation
- Delete the Optimize tags and any variables only they used.
- Remove the Optimize anti-flicker snippet from the site template if it is still there.
- If you still run experiments, set them up in the testing tool you use now; Optimize data cannot be recovered.
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":"optimize-tag-live","url":"https://example.com"}'
User: Run optimize-tag-live on https://example.com
# Tool call
{
"tool": "evaluate_rule",
"arguments": {
"rule_id": "optimize-tag-live",
"url": "https://example.com"
}
}