Quick answer: To connect GA4 to Shopify, first create a GA4 property at analytics.google.com. Then install the official Google and YouTube app from the Shopify App Store, connect your Google account, and in the app’s settings find the Google Analytics section and select your GA4 property. Save, visit your store, and check Reports → Realtime in GA4 to confirm data is arriving.
GA4 shows where your Shopify visitors come from, what they view, and which channels drive sales. The Google and YouTube app connects it officially, so you don’t need to paste tracking code into your theme.
Prefer to watch? The 3-minute video above shows every step on screen.
What do you need before connecting GA4?
- A Shopify store and staff permission to install apps.
- A Google account with Editor or Administrator access to a GA4 property.
- A GA4 property. If you don’t have one, create it at analytics.google.com.
How to connect Google Analytics 4 to Shopify (step by step)
Step 1: Create a GA4 account and property
In Google Analytics, click Admin → Create → Account, enter an account name, then a property name, time zone and currency that match your store. Choose Web as the platform and enter your store URL.
Step 2: Install the Google and YouTube app
In Shopify admin, open the Shopify App Store, search for Google and YouTube (published by Google), and click Install.
Step 3: Connect your Google account
Open the app and sign in with the Google account that has access to your GA4 property. Approve the permissions it asks for.
Step 4: Select your GA4 property
Go to the app’s Settings and find the Google Analytics section. Click connect and choose your GA4 property from the list.
Step 5: Check customer privacy settings
If your store uses a cookie banner, make sure consent settings allow analytics for visitors who accept. Otherwise some visits won’t be tracked.
Step 6: Test in Realtime
Visit your store in a new browser window, then open GA4 Reports → Realtime. You should see your visit within a few minutes.
GA4 not tracking Shopify? Common problems and fixes
Your GA4 property doesn’t appear in the app
The signed-in Google account doesn’t have access. In GA4, go to Admin → Property access management and add that account as Editor or Administrator.
Data is doubled
You probably also added the GA4 tag manually in the theme or through Google Tag Manager. Keep one method only, or events like page views and purchases will be counted twice.
Realtime shows nothing
Ad blockers and declined cookie banners stop tracking. Test in a private window with ad blockers off, and accept analytics cookies.
Standard reports are empty
Realtime is instant, but standard GA4 reports can take up to a day or two to fill. Wait before assuming it’s broken.
What should you do next?
- Learn the reports: GA4 dashboard explained for beginners.
- Running ads? Link Google Analytics with Google Ads.
- Track Meta ads too: connect Facebook to Shopify and install the pixel.
Frequently asked questions
The old Universal Analytics field is no longer used. GA4 is connected through the Google and YouTube app or with Google Tag Manager.
Yes. When connected through the Google and YouTube app, standard ecommerce events such as page views, add to cart and purchases are sent to GA4.
The app itself is free to install. Any Google Ads you run through it are paid separately.
Realtime data appears within minutes. Standard reports usually take up to 24 to 48 hours to process.
Want more step-by-step tutorials? Subscribe to Digital Growth Tutor on YouTube for short, no-jargon guides.

