Home / Resources / Shopify GA4 integration

Tracking and analytics · Comparison

Shopify GA4 integration: native app vs Tag Manager

2 Feb 2025deadline Google gives for the old Shopify GA integration
3routes: Google & YouTube app, GTM custom pixel, legacy field
26 Aug 2026non-Plus deadline for the old thank-you page scripts

Short answer: for most stores, use Shopify’s Google & YouTube app: Google calls connecting your web stream through it “strongly preferred”. Use Google Tag Manager in a custom pixel only if you need several ad platforms or custom events and can accept its limits. The old Google Analytics field in Online Store preferences has been turned off, so remove any leftover ID.

Watch it in under a minute

Real jobs, short videos. Press play.

See all videos →
  • Real store

    Tracking rescue: 0 purchases in GA4

    Selling daily, reporting zero. Fixed and proven with test orders.

The three routes

1Google & YouTube appShopify’s official route
2GTM in a custom pixelMore control, more upkeep
3Legacy GA fieldTurned off, clean it up

Google’s help pages say Shopify turned off its old Google Analytics integration. Tags that were not migrated by 2 February 2025 were converted to a custom pixel, which can reduce measurement quality.

Side by side

Google & YouTube appGTM in a custom pixel
SetupInstall the app and connect your GA4 web stream and Google Ads accountPaste your GTM code into a new custom pixel, subscribe to customer events and push them to the data layer
EventsGoogle lists extra events the app adds: view_item_list, remove_from_cart, view_cart and add_shipping_info. For Google Ads it suggests purchase, add to cart and checkout startedYou choose and build every event yourself
SupportOfficial Shopify appShopify says it does not support adding or using custom pixels
EnvironmentApp pixels run in a strict sandboxCustom pixels run in a lax sandbox
Best forMost stores that mainly use GoogleStores with several ad platforms, or that need custom data

Sources: Google Analytics Help, Shopify web pixels API and Shopify help. We could not confirm a full per-event list for the app.

What the GTM route cannot do

Shopify’s own tutorial for adding Tag Manager as a custom pixel lists these limits:

  • Tag Assistant’s troubleshoot feature does not detect Google tags inside custom pixels
  • You cannot add custom data to standard events
  • GA4 outbound link tracking does not work
  • Checkout data needs a UI extension to reach web pixels
  • GTM needs at least one tag and one trigger

Source: Shopify help: Google Tag Manager tutorial.

Clean up the old setup

  1. Open Online Store, then PreferencesFind the Google section.
  2. Look for a legacy IDGoogle says to open the Google & YouTube section, click Change and delete any old UA-style ID.
  3. Check Customer events for a leftover custom pixelAn auto-converted pixel may still be sending data.
  4. Make sure only one method is liveTwo methods double-count sales. See our Shopify GA4 setup guide.

Checkout scripts changed too. Shopify’s changelog says script tags, additional scripts and checkout.liquid are deprecated on the thank-you and order status pages: 28 August 2025 for Plus stores and 26 August 2026 for non-Plus stores. Use web pixels or app pixels instead.

Shopify’s privacy help says non-essential data is collected only after consent under opt-in settings. Its cookie banner covers Shopify’s own tools, including Shopify pixels, while manually or app-added third-party pixels may need separate consent logic. This is not legal advice. See our server-side tracking guide for how consent interacts with server events.

Which route should you pick?

Use the Google & YouTube app if you

  • Mainly run Google Ads and want the official setup
  • Want fewer things to maintain
  • Do not need custom events
  • Want Shopify-supported tools

Use GTM in a custom pixel if you

  • Run Meta, TikTok and Google together
  • Need custom events or data
  • Have someone to maintain the container
  • Accept the limits above

Sources

Questions answered

What is the best way to connect GA4 to Shopify?

For most stores, Shopify’s Google & YouTube app. Google’s help says connecting your web stream through it is strongly preferred.

Did Shopify stop its Google Analytics integration?

Google’s help pages say Shopify turned off the old integration. The deadline Google gives is 2 February 2025, after which unmigrated tags were converted to a custom pixel. We read this on Google’s pages, not a Shopify page.

Can I use Google Tag Manager on Shopify?

Yes, by adding it to a custom pixel and pushing customer events to the data layer. Shopify says it does not support custom pixels, and lists limits such as no custom data on standard events.

Which events does the Google & YouTube app send?

Google lists view_item_list, remove_from_cart, view_cart and add_shipping_info as added by the app, plus purchase, add to cart and checkout started as default Google Ads conversions. We could not confirm a complete list, so test in DebugView.

Do I still need to clean up the old Google Analytics ID?

If you ever used the old field, yes. Google says to open the Google & YouTube section in Online Store preferences, click Change and delete the legacy ID.

Limon Ghosh

Limon Ghosh runs MindfulClicks from Sydney and manages paid ads, tracking and Claude AI automation for online stores and B2B companies in Australia and the USA.

Not sure which setup you have?

Book a free 30-minute call. We check your tags and tell you which route fits your store.

Book a free strategy call →

Related

Get your consultation booked in

Share a few details in the form so we can better help you and your company


MindfulClicks

Limon Ghosh

PPC/SEO Consultant Expert