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.
Step 1: Create a Google account and Googe 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.
After you create a Google account, you need to Create an Analytics account. After you create your Google Analytics account, continue to Step 2: Create a Google Analytics 4 property .
Step 2: Create a Google Analytics 4 property
To enable Google Analytics 4, create a Google Analytics 4 property to add to your Shopify store. After you create your property, you need to create a web data stream. Make a note of the Measurement ID because you'll use it in Step 3.
Step 3: Add Google Analytics 4 tags
If you don't have the Google 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 Measurement ID for the GA4 property 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
Linking a Google Analytics property to your Google Ads account helps you to analyze customer activity on your store that you can use to measure conversion actions and create audiences.
To link your Google Analytics account to your Google Ads account, refer to Link Google Ads and Analytics.