Getting Started : Connect your Shopify store to Google Analytics
Step 1. Get your Measurement ID
- Open Google Analytics
- Go to Admin (gear icon)
- Under Property, click Data streams
- Open your Web stream (or create one for your store URL)
- Copy the Measurement ID — it starts with
G-(example:G-XXXXXXXXX)

Step 2. Save your Measurement ID in the app
- Open AB: Google Analytics in Shopify Admin
- Expand Paste your Measurement ID
- Paste your ID in the field (
G-XXXXXXXXXX) - Click Save & Continue
The ID must start with G- followed by letters and numbers.

Step 3. Enable the Theme Extension
- In the app, go to Install Theme Extension
- Click Install Theme Extension (opens the theme editor)
- Turn on the app embed for AB: Google Analytics
- Click Save in the theme editor
- Return to the app and click Check Status until it shows Active


You're live
When all steps are complete, Google Analytics tracks visitors on your storefront.
View reports in Google Analytics — not inside the Shopify app.
Optional next step
Enable Custom events (add to cart, purchase, search, etc.) for deeper GA4 reporting.
See: How to enable custom events tracking
Need help?
Open the chat in AB: Google Analytics or reply to our support email.
Updated on: 07/06/2026
Thank you!