All things Shopify and commerce
Universal Analytics is dead. Long live the king. Anybody know how to stop Shopify from loading the old UA tracking code alongside the newer GA4 code? Many thanks!
Hi, @plfunkymusic !
go to Online Store > Preferences. In the "Google Analytics" section, check for the old Universal analytics tracking code and remove it if it's present. Optionally, add the GA4 tracking code in the same section and save your changes. If needed, inspect your theme files by navigate to Online Store > themes, selecting "edit code" under "actions" for your current theme, and remove any references to the old Universal analytics tracking code in the code editor.Save your theme files after making these adjustments. Additionally clear your browser cache to make sure youre not viewing cached content
Hi @ignelis_ - i've actually just sorted this via an answer way down in another thread.
The solution for me was really simple - i disconnected Google Ads from my Google setup and the additional tags have gone. I guess some changes within Google Ads would also fix this issue.
Thanks again for your answer. Hope this helps folks.
Does deleting the old Universal analytics tracking code in theme.liquid remove historic conversion data from Google Ads?
Bumping this. @Liam any insight here? I have a client who migrated to GA4 by installing the Google app on their store, but their old UA tag is still loading on the site. Will going in and removing the UA tag delete historic conversion data, or am I safe to do so? Analytics is probably my most common pain point in dealing with Shopify for what it's worth, feels like Shopify changes how they do it every year.
Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025Expand into selling wholesale with Shopify Academy’s learning path, B2B on Shopify: Lau...
By Shopify Jan 28, 2025