Free auditStart free
GuideShopify · Analytics

Shopify Google Analytics

Set up GA4 on Shopify with the Google & YouTube app, know what pixels and customer events add, and confirm data in DebugView.

3 min
read
4
sources
Oct 31, 2026
updated
Scaplet Editorial Team
author
In one line

Shopify sets up Google Analytics 4 through the Google & YouTube sales channel: create a GA4 property and web data stream, note the Tag ID, then follow Google's Shopify tag steps. Certain ecommerce events are then tracked automatically. GA4 can't track events while your online store is in private mode, so remove the password first.

30-second check

Where does your site stand?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?
Summarize this page withChatGPTClaudePerplexityGoogleAI Mode
01How it works

The setup in order

Shopify's help page "Setting up Google Analytics 4" splits the job into four steps. Only step 3 happens inside Shopify; the rest happen at Google.
  1. 01

    Create the Google accounts

    You need a Google account and a Google Analytics account. Shopify notes that you don't have to use the Gmail account for anything other than signing in and out of Google Analytics.

  2. 02

    Create or move a GA4 property

    Create a new Google Analytics 4 property or move an existing one, then create a web data stream. Shopify says to make a note of the Tag ID, because you use it in the next step.

  3. 03

    Add the Google tag through the Google & YouTube channel

    Install the Google & YouTube sales channel, then follow Google's "Shopify: Set up your Google tag" help article. If the channel isn't installed, you're prompted to install it during the GA4 tag setup. Connecting Google Merchant Center isn't required to finish this step.

  4. 04

    Optional: link Google Ads

    Linking the GA4 property to your Google Ads account helps you analyze customer activity on your store to measure key events and create audiences. Shopify points to Google's "Link Google Ads and Analytics" guide.

02GA4 events and pixels on Shopify, per Shopify's help pages

What you get automatically, and what you add

Need

Standard ecommerce events (product view, add to cart, purchase)

What Shopify documents
Certain ecommerce events are tracked automatically once the GA4 tags are set up
Who does the work
Shopify and the Google tag, no code
Need

Other recommended or custom events

What Shopify documents
You can also manually implement other recommended or custom events
Who does the work
You, following Google's event docs
Need

A third-party tracker with no app

What Shopify documents
Custom pixels, loaded in a Lax sandbox; Shopify says adding and using them is unsupported
Who does the work
A developer with JavaScript knowledge
Need

Checkout and thank-you page events

What Shopify documents
Pixels load on the storefront, checkout, thank-you page and order status page
Who does the work
An app pixel or a custom pixel

Shopify's pixels overview explains the legacy change. Previously, merchants could manually add JavaScript snippets in several places: online preferences, checkout scripts and apps. The pixels manager, under Customer events in the admin, now keeps those scripts in one tool and runs them in a sandbox. On customer account pages, pixels load only after you connect a custom subdomain for customer accounts, and they track only the page_viewed event there.

03How it works

Check it worked

  1. 1

    Remove the store password

    Shopify states that Google Analytics can't track events until you deactivate private mode for your online store. A store still behind the password page will show nothing in GA4.

  2. 2

    Open DebugView

    Google's "Monitor events in DebugView" page says to enable debug mode on your device first, then go to Admin, and under Data display click DebugView. Then browse a product page and add the product to the cart on your storefront in another tab.

  3. 3

    Confirm the events and the right property

    Look for ecommerce events from your own session; Shopify's page names product views, add to cart and purchases as examples of events but does not list exactly which are automatic. If nothing appears, check that the Tag ID you noted from the web data stream is the one used in the Google & YouTube channel setup.

Questions

Asked a lot.

2 questions people ask next, answered from the sources on this page.

01Do I need Google Merchant Center to use GA4 on Shopify?

No. Shopify says you don't have to connect to the Google Merchant Center to complete the GA4 tags setup. You do need the Google & YouTube sales channel installed.

02Why is GA4 showing no Shopify events?

First check whether the store is in private mode: Shopify says GA4 can't track events until you deactivate it. Then confirm the Tag ID matches the web data stream and look in DebugView.

Sources · 4

Every fact, linked and dated.

Official docs first. The date is when we last opened each page.
  • shopify.com
  • google.com
  1. 01Setting up Google Analytics 4 | Shopify Help Centerhelp.shopify.com · checked 2026-11-01
  2. 02Pixels overview | Shopify Help Centerhelp.shopify.com · checked 2026-11-01
  3. 03Custom pixels | Shopify Help Centerhelp.shopify.com · checked 2026-11-01
  4. 04Monitor events in DebugView | Analytics Helpsupport.google.com · checked 2026-11-01
Free · 2 minutes

Tools point. Agencies advise. This one ships.

Run the free audit, then approve the fixes. Every change can be undone.

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • 0→7 ChatGPT citations in six weeks Paylane