How-to · Shopify

Add Google Analytics to your Shopify site

How to connect Google Analytics 4 to your Shopify website, where the Measurement ID goes, and what to know about consent.

1 min readBy Wiredeo

A laptop and phone showing visitor charts on a wooden desk
Photo: Vagaro, Unsplash

Steps checked against the platform’s own help pages on 27 October 2026. Menus move; if yours look different, tell us and we’ll update this page.

Shopify connects Google Analytics 4 through the free Google & YouTube app.

Steps

  1. In Shopify admin, search for Google & YouTube and install it.
  2. On the app’s Overview, find the Google Analytics 4 setup and click Get started.
  3. Connect your Google account, choose your GA4 property, click Connect, then Confirm.

Good to know

  • The store can’t be password-protected while you set this up.
  • You need at least Editor access to the Analytics property.
  • The old Google Analytics field in Online Store preferences is no longer used.

Prefer something simpler or cookie-free? Compare options in Google Analytics vs Cloudflare vs Plausible vs Fathom, and track the five numbers that matter.

Add Google Analytics on other platforms

Compare all platforms for this task

More how-tos for Shopify

Sources

  1. Shopify Help Center, Setting up Google Analytics 2026
  2. Google Analytics Help, Set up GA4 on Shopify 2026

Filed under Getting foundRunning your site

Next step

Not sure where your own business stands?

A two-minute check-up shows where you are losing time and customers, and what to fix first.

Take the check-up Request an audit