Store check · Tracking
Old Google Analytics code that records nothing
Last updated: 2026-11-18
What the store check found
Your pages still load Universal Analytics, the version of Google Analytics before GA4. Its IDs start with UA-,
for example UA-12345678-1. The report shows the ID and the pages it is on.
Why it matters
Google stopped recording data for Universal Analytics on July 1, 2023 (July 1, 2024 for paid Analytics 360). The code still loads and sends every visit, but nothing receives it:
- Slower pages for nothing: each visitor downloads and runs code that does no work.
- A false sense of tracking: if this is the only Google Analytics on your store, you are recording no visits or sales in Google Analytics at all.
How to check
- Look at the report's summary line, Tracking we could see. If it lists Google Analytics 4, GA4 is set up as well and you only need to remove the old part.
- If GA4 is not listed, it may still be set up inside Google Tag Manager or through Settings → Customer events (the check can't see either). Open Google Analytics, choose your GA4 property and look at Reports → Realtime while you visit your store (pause any ad blocker first). If you see yourself, GA4 works.
- No GA4 property at all? Install Shopify's Google & YouTube app and connect Google Analytics there: it sets up GA4 for you, checkout included.
How to remove it
The old code is usually in your theme, sometimes in Google Tag Manager.
- Go to Online Store → Themes, click … next to your live theme and choose Duplicate.
- On the copy, choose … → Edit code, open
layout/theme.liquidand search (Ctrl+F or Cmd+F) forUA-. If nothing is there, search the theme's snippets the same way. - Delete what loads the
UA-ID:- a whole block such as
orthat only mentions theUA-ID; - if the same block also has a
G-ID (GA4), delete only the linegtag('config', 'UA-…');and keep the rest. If the<script src="…googletagmanager.com/gtag/js?id=UA-…">line is the only one that loads the block, changeUA-…in it to yourG-ID instead of deleting it.
- a whole block such as
- Save, Preview the copy, and if everything looks right, Publish it.
If the theme has no UA-, check Online Store → Preferences: on older stores a Google Analytics box there can
still hold old code. Empty it and save. If your store loads Google Tag Manager, ask whoever manages it to delete any
"Universal Analytics" tag in the container.
The report is saved for 24 hours, so run the store check again the next day to see the change.
Working with a developer
Send them the store address and the UA- ID from the report. Ask them to remove every Universal Analytics call, keep
GA4, and check in GA4's Realtime report afterwards that visits still arrive.
When you can ignore it
There is no reason to keep it: Universal Analytics records nothing any more. Removing the code changes nothing in your Google account (Google has already closed Universal Analytics properties and deleted their data).