CookieScan
Analytics / measurement

Google Analytics 4 and cookie consent on Shopify

Google Analytics 4 (Google) is one of the most common trackers on Shopify. Here’s what it does, the data it collects, and how to check whether it fires before your visitors consent.

What is Google Analytics 4?

Google Analytics 4 (GA4) is Google’s audience measurement tool, present on the vast majority of Shopify stores. It analyses traffic, acquisition sources and the purchase journey.

What data does Google Analytics 4 collect?

Sessions, page views, e-commerce events, device, referral, and a client identifier (cookie `_ga`) that follows the visitor over time.

Why it needs consent

Google Analytics 4 is an analytics/measurement tracker. In Europe, even non-essential analytics needs consent before firing: it must wait for the visitor’s “yes”, which is what cookie banners are for.

How it shows up

We detect Google Analytics 4 via these network/cookie signals:

google-analytics.comgoogletagmanager.comcookie _ga

Does Google Analytics 4 fire on YOUR store?

Our free scanner loads your storefront in a clean browser, without touching the cookie banner, and tells you in ~30 seconds which trackers fire before consent — and which app loads them.

Scan my store for free

How to make it compliant

The fix is to actually block the tracker until the visitor consents (via your tag manager, theme, or a properly configured banner). We’re building the Shopify compliance assistant that pinpoints the responsible app and blocks trackers before consent — automatically.

We can help you fix it

Leave your email: we’ll reach out to see how to sort this on your store.

No spam. One-click unsubscribe.

Other trackers to know

Independent information page, not affiliated with Shopify or the vendors mentioned. Not legal advice.