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 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.

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 or move a Google Analytics 4 property

To activate Google Analytics 4, either create a new Google Analytics 4 property to add to your Shopify store, or move an existing property that you previously created.

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 process.

Steps:

  1. From your Shopify admin, got to Online store > Preferences.
  2. In the Google Analytics section, click Manage pixel here.
  3. Click Connect your Google account.
  4. In the Your Google Analytics property section, select the tag for the GA4 property that you want to connect to your Shopify store.
  5. Click Connect.

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 key events and create audiences.

To link your Google Analytics account to your Google Ads account, refer to Link Google Ads and Analytics.

Can’t find the answers you’re looking for? We’re here to help.