# 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.

Canonical: https://scaplet.com/seo/shopify/google-analytics

Guide Shopify Shopify · 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 with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo%2Fshopify%2Fgoogle-analytics%20(%22Shopify%20Google%20Analytics%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo%2Fshopify%2Fgoogle-analytics%20(%22Shopify%20Google%20Analytics%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo%2Fshopify%2Fgoogle-analytics%20(%22Shopify%20Google%20Analytics%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo%2Fshopify%2Fgoogle-analytics%20(%22Shopify%20Google%20Analytics%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

On this page

## 3 parts, 3 minutes.

1. [The setup in order 01](#the-setup-in-order)
2. [What you get automatically, and what you add 02](#what-you-get-automatically-and-what-you-add)
3. [Check it worked 03](#check-it-worked)

_01_How it works

## The setup in order

Shopify's help page "Setting up [Google Analytics 4](/glossary/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](/glossary/data-streams). 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](/glossary/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](/glossary/key-events) and create audiences. Shopify points to Google's "Link Google Ads and Analytics" guide.

_02_GA4 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.

**Sandbox limits**Shopify lists things pixel sandboxes can't do, such as render buttons or banners, scrape the DOM for events or user data, or detect page scrolling. A third-party script that depends on those may not work as a custom pixel. Ask the vendor before you paste it in.

_03_How 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](/glossary/ga4-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.

**Decision rule**Use the Google & YouTube channel for GA4 unless you need an event it doesn't send. Reach for a custom pixel only when no app pixel covers the tool, and treat it as code you own: Shopify says compliance, code security, troubleshooting and updates are your responsibility.

Questions

## Asked a lot.

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

_01_ Do 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.

_02_ Why 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. 01 [Setting up Google Analytics 4 | Shopify Help Center](https://help.shopify.com/en/manual/reports-and-analytics/google-analytics/google-analytics-setup) help.shopify.com · checked 2026-11-01
2. 02 [Pixels overview | Shopify Help Center](https://help.shopify.com/en/manual/promoting-marketing/pixels/overview) help.shopify.com · checked 2026-11-01
3. 03 [Custom pixels | Shopify Help Center](https://help.shopify.com/en/manual/promoting-marketing/pixels/custom-pixels) help.shopify.com · checked 2026-11-01
4. 04 [Monitor events in DebugView | Analytics Help](https://support.google.com/analytics/answer/7201382) support.google.com · checked 2026-11-01

## Keep learning

[All platform guides](/seo)

[Learn Shopify SEO Ecommerce](/seo/shopify) [Related ProductGroup schema Commerce](/schema/product-group) [Read next Shopify speed optimization Ecommerce](/seo/shopify/page-speed) [Do Run a free site audit Free, about two minutes](/site-audit)

More in Shopify SEO
[Shopify 404 page](/seo/shopify/404) [Shopify AI crawlers](/seo/shopify/ai-crawlers) [Shopify breadcrumbs](/seo/shopify/breadcrumbs) [Shopify canonical tags](/seo/shopify/canonical-tags) [Shopify favicon](/seo/shopify/favicon) [Shopify Google Analytics](/seo/shopify/google-analytics) [Shopify Google Search Console setup](/seo/shopify/search-console) [Shopify hreflang](/seo/shopify/hreflang) [Shopify image SEO](/seo/shopify/image-seo) [Shopify lazy loading](/seo/shopify/lazy-loading) [Shopify noindex](/seo/shopify/noindex) [Shopify redirects](/seo/shopify/redirects) [Shopify robots.txt](/seo/shopify/robots-txt) [Shopify speed optimization](/seo/shopify/page-speed) [Shopify structured data](/seo/shopify/structured-data) [Shopify titles and meta descriptions](/seo/shopify/title-and-meta) [Shopify XML sitemap](/seo/shopify/xml-sitemap)

Terms on this page
[Google Analytics 4](/glossary/google-analytics-4) [Data streams](/glossary/data-streams) [Google Merchant Center](/glossary/google-merchant-center) [Key events](/glossary/key-events) [GA4 DebugView](/glossary/ga4-debugview)

Free · 2 minutes

## Tools point. Agencies advise. _This one ships._

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

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **0→7** ChatGPT citations in six weeks Paylane
