Skip to content

Job template · Tracking and analytics

Job template: remove old Universal Analytics tags and clean up Google Tag Manager

By The Microployed teamUpdated 2 min read

The short answer

Universal Analytics stopped processing data on July 1, 2023, so any UA tags still in your Google Tag Manager container send data nowhere. This scope has a pro pause and remove those tags, clear out the triggers and variables only they used, check for UA code outside GTM, and publish a clearly named version you can roll back.

Ready-to-post scope

Remove old Universal Analytics tags from our Google Tag Manager container and clean up what they used

Typical time for a pro: 30 minutes to 1.5 hours

Our Google Tag Manager container still has Universal Analytics tags that stopped being useful when UA shut down. Pause and then remove every UA tag, delete the triggers and variables that only those tags used, and check our site for UA code added outside GTM. Make sure GA4 and our ad tags keep firing, and publish a clearly named version.

Check first

  • Which Google Tag Manager container your live site loads
  • Whether anyone else is editing the container right now
  • Any UA tracking code you remember adding through your theme or a plugin

Access to give

  • Publish access to the Google Tag Manager container, granted to the pro's own Google account
  • Viewer access to your GA4 property to confirm data still arrives
  • No passwords: the pro works through their own logins

Done when

  • No Universal Analytics tags remain in the published container
  • Triggers and variables used only by UA tags are removed, and nothing still in use was deleted
  • GA4 and ad tags fire as before in preview mode and data still reaches GA4
  • A new version is published with a name and description listing what was removed

When you need this job

You need this job if your Google Tag Manager container still holds tags from Universal Analytics, the version of Google Analytics that came before GA4. Google says standard Universal Analytics properties stopped processing hits on July 1, 2023, and that access to UA properties and the API was removed starting the week of July 1, 2024. Any tag still sending to a UA- property is doing work that goes nowhere, and it makes the container harder to read for whoever needs to fix your GA4 or ad tracking next.

The cleanup matters most right before other tracking work. A container full of dead tags, triggers and variables is where duplicate events and misfiring conversions tend to hide, and it slows down every pro who has to work out what's live.

What the pro will do

The pro starts by listing every tag that sends to Universal Analytics, along with the settings variables and triggers those tags rely on. Before deleting anything, they pause the UA tags and test the site in preview mode to confirm your GA4, Google Ads and Meta tags still fire as expected, since Google Tag Manager only applies a pause once the change is published.

Once nothing depends on them, the pro deletes the UA tags and any triggers or variables that no other tag uses, using Tag Manager's bulk actions where it saves time. They then check your site's theme or plugins for UA tracking code added outside GTM, which a container cleanup won't touch. Finally, they publish with a version name and description that say exactly what was removed.

How to review the work

Open Versions in Google Tag Manager and read the new version's name and description, then compare it with the previous version to see what changed. Your GA4 property should keep receiving data as before, which you can confirm by looking at the Realtime report while you browse your own site. Ask for the pro's short note listing everything removed, so anyone working on the container later knows the history.

Common gotchas

  • Shared triggers: a trigger built for a UA tag may also fire a GA4 or ads tag, so the pro should delete only triggers with no remaining tags attached.
  • Settings variables: UA tags often pulled their tracking ID from a shared settings variable, which can be deleted once no tag references it.
  • Code outside GTM: an old UA- snippet in a theme file or SEO plugin keeps loading after the container is clean.
  • Rolling back: if something breaks, open Versions, choose Set as Latest Version on the previous version and publish it to restore the old setup.

If your container doesn't yet have GA4 purchase tracking set up properly, the GA4 purchase tracking template is the natural next job.

The next level up

With the dead tags gone, it's a good time to check that your GA4 purchase data is right

A clean container makes it much easier to see whether your GA4 ecommerce events carry the right values, items and transaction IDs. A pro can audit your purchase and checkout events in Google Tag Manager and fix what's missing, so your revenue reports match your orders.

Post the GA4 audit job

Questions people ask

Do old Universal Analytics tags still do anything?

No useful work. Google says standard UA properties stopped processing hits on July 1, 2023, so the tags still load on your pages but the data isn't processed.

Should I pause or delete UA tags in Google Tag Manager?

Pause first, publish and test, then delete once you're sure nothing else depended on them. Google Tag Manager only applies a pause after you save and publish.

Can I undo a Google Tag Manager cleanup?

Yes. In Versions, open the Actions menu next to an earlier version, choose Set as Latest Version, and publish it to restore that setup.

Will deleting UA tags affect my GA4 data?

Not if the pro removes only UA tags and the triggers and variables nothing else uses. Testing in preview mode before publishing confirms your GA4 tags still fire.

Sources

Checked against these pages on .