Setting up Google Analytics 4
Before you can start gathering data about your store, you need to have a Google Analytics account and create a Google Analytics 4 property. You can then set up Google Analytics 4 tags on your Shopify store, and link your Google Ads account to your Google Analytics account.
On this page
Step 1: Create a Google account and Google Analytics account
You need a Google account to use Google Analytics. If you already use Google products, such as Gmail or Ads, then you can use the same account for Google Analytics.
If you don't already have an account for a Google product, then create a Google account. You don't have to use the Gmail account for anything other than signing in and out of Google Analytics.
Step 2: Create or move a Google Analytics 4 property
After you have your property, you need to create a web data stream. Make a note of the Tag ID because you'll use it in Step 3.
Step 3: Add Google Analytics 4 tags
If you don't have the Google & YouTube channel installed, then you're prompted to install it during the set up process for your GA4 tags. You don't have to connect to the Google Merchant Center to complete your GA4 tags setup proces.
- From your Shopify admin, got to Online store > Preferences.
- In the Google Analytics section, click Manage pixel here.
- Click Connect your Google account.
- Select the Tag ID for the GA4 property that you want to connect to your Shopify store.
- Click Connect your Google Analytics 4 property.
After you set up Google Analytics 4 tags, certain ecommerce events are tracked automatically. To learn more about event tracking in Google Analytics 4, refer to Setting up Google Analytics events.
Step 4: Link your Google Analytics account to your Google Ads account
To link your Google Analytics account to your Google Ads account, refer to Link Google Ads and Analytics.