Free tool
Universal Analytics cleaner
Drop a GTM container export and get it back without Universal Analytics: the UA tags, the Custom HTML that loads analytics.js, the triggers only they used and the settings variables nothing else needs, as a file GTM imports.
·
Also free: GTM container viewer: see whether a live container still has UA tags, by its ID.
Why a container still has them
Universal Analytics stopped processing data (standard properties on 1 July 2023, the last 360 properties on
1 July 2024), but nothing removed the tags. A container built before GA4 still fires its UA pageview on every
page, its event tags on every click they were set up for, and often a Custom HTML block that loads
analytics.js on its own. They send to nothing, cost a request each time, and make every container
audit longer than it needs to be.
What it takes out, and what it leaves
- Universal Analytics tags: the
uatag type, or any tag whose tracking ID starts withUA-. - Custom HTML written for UA: code calling
ga('send'),_gaq, or loadinganalytics.jsorga.js. - Triggers only those tags used. A trigger a GA4 tag shares, or a trigger group names, stays.
- Google Analytics Settings variables nothing else refers to.
- Setup and cleanup links to a removed tag, which would otherwise fail the import.
Everything else is copied as it was. The cleaned file is the same export with those items missing, so GTM’s own import screen shows exactly what changes before anything is published.
Importing it
- In Tag Manager, open Admin → Import Container and choose the cleaned file.
- Pick a new workspace, so the change can be reviewed on its own.
- Choose Overwrite. Merge adds to what is there and would keep the UA tags.
- Check the summary, preview the workspace, and publish.
Questions
Do Universal Analytics tags still do anything?
They still fire, and they send to nothing. Standard Universal Analytics properties stopped processing data on 1 July 2023 and the last 360 properties on 1 July 2024. A UA tag left in a container costs a request on every page it fires on, and an analytics.js download where nothing else loads it.
What does the cleaner remove?
Universal Analytics tags, Custom HTML tags that call analytics.js or ga.js, the triggers only those tags used, and the Google Analytics Settings variables nothing else refers to. A trigger shared with a GA4 tag, or named by a trigger group, stays.
How do I import the cleaned file?
In Tag Manager: Admin, Import Container, choose the file, pick a new workspace and Overwrite. Merge would add to what is there and keep the UA tags. GTM shows the changes before anything is published.
Is my container uploaded anywhere?
No. The file is read in your browser and the cleaned copy is built there; nothing is sent and nothing goes into the page address.
How do I find out whether a live container still has UA tags?
Open it in the GTM container viewer by its ID. It lists every tag with its type, so Universal Analytics tags show up without access to the account.
The Tag Master extension does the same on a live site: when the container it reads still has UA tags, the Container tab offers this cleanup, and the Audit says whether a UA library is still loading or still sending.
Try it on your own site
Tag Master is free, needs no account, and collects no data.
Add to Chrome, it’s free