Complete guide how to setup GA4 on Shopify

Step 6. How to implement GA4 Configuration tag in Google Tag Manager?

Published by
Oct 18, 2022

GA4 Configuration tag is the first tag you should implement if you want to start tracking traffic on your Shopify website.

This tag is responsible for measuring: page views, scrolls, outbound clicks, site search, video engagement, file downloads events. All is measured automatically. As soon as you install it you will start measuring immediately a lot of things right away.

  1. Go to and admin section and from the property menu please chose “Data Streams” option.

    Data Streams option.
  2. Click your website data stream.
    Website data stream.
  3. Copy your GA4 Measurement ID.
    Measurement ID.
  4. Go to Google Tag Manager and create your first GA4 tag by clicking "New".
    name it: “GA4 – Configuration Tag”,
    GA4 coniguration tag.
    select “Google Analytics: GA4 Configuration” as tag type,
    GTM Trigger Type.
    paste your GA4 Measurement ID which you copied from Google Analytics admin panel(step no. 3) and leave the "Send a page view event when this configuration loads" option selected.
    Paste the measurement ID.
  5. Next step is to configure trigger to make this tag fire. Click the trigger icon.
    GTM triggerinstag.
    Use "plus" icon to add new trigger,
    Add new trigger.
    name new trigger: “All Page views – Dom ready”,
    All Page views Dom ready.
    cick on the trigger type icon and chose: "Dom Ready".
    GTM Trigger Type
    We are using Dom ready type of trigger to be sure among others that all variables are already present in data layer.
    Leave the "All Dom Ready Events" option selected and click "Save" button.
    GTM Trigger Dom ready.
  6. Your first tag is ready, all you have to do is just click save button.
    GTM GA4 Configuration Tag.
  7. To start to measure traffic using this tag you have to publish the new version of your Google Tag Manager Container.
    To do that click "Submit" button:
    Google Tag Manager Publish.
    name and describe your new version of container and click "Publish" button:
    Google Tag Manager Submit Changes
  8. To test if it works visit your website and check in the GA4 "Realtime" report if Google Analytics started to measure traffic.

    GA4 Real Time report.

To be able to analyze in Google Analytics 4(GA4) traffic on your products pages and report for example which items are most popular you have to implement GA4 view_item event. To find out how to do this, see the next section GA4 view_item tag – tracking which products are most popular.

Published Oct 18, 2022 by Piotr Ulacha

If you enjoyed the content please share it:

If you have any question about this topic feel free to comment or react below.

Other articles about Shopify
Complete guide how to setup GA4 on Shopify.

This guide is all about how to implement Google Analytics(GA4) on Shopify. To setup GA4 on Shopify website we use Google Tag Manger(GTM) and Shopify data layer.

Oct 12, 2022
1. How to create Google Analytics account for Shopify website

If you want to measure traffic on your Shopify website, the first thing is to create Google Analytics account for your website

Published by Piotr Ulacha
Oct 13, 2022
2. How to create Google Analytics (GA4) property for Shopify website

If you have Google Account but you don't have GA4 property yet, because for example you are still using Universal Analytics property (former version of GA4) you have to create new GA4 property.

Published by Piotr Ulacha
Oct 14, 2022
3. How to create Google Tag Manager account for Shopify website

Because we will use Google Tag Manger as a method to implement Google Analytics 4 you have to create GTM account.

Published by Piotr Ulacha
Oct 15, 2022

4. Recommended GA4 property settings for Shopify

If you want to get the best out of Google Analytics 4 apply the following recommended GA4 settings and best practices.

Published by Piotr Ulacha
Oct 16, 2022
Popular recently
Implementation of various environments in GA4
# GA4

Environment - is a set of necessary elements of technical / software infrastructure, which is the basis for the operation of a given website/application. Google Tag Manager environments are simply multiple versions of the same container. When we have a website with a different version for development, testing, production and QA, instead of creating separate GTM containers for each version, we can set up separate environments in the same container that will work independently in each version.

Published by Anna Bacciarelli
Jan 17, 2023
Server-Side GTM like a nuclear technology

Some time ago I listened to a podcast from the Technical Marketing Handbook series from Simo Ahava, whose guest was Adam Halbardier from the Google Tag Manager product team. During the conversation, the topic of transparency of data handled by the Server-Side container appeared.

Published by Mariusz Michalczuk
Dec 04, 2022
How to measure the impact of email campaigns?

If you plan email marketing campaigns you are interested in the same as with other campaigns, to measure their impact on your business. When you are starting with this topic it is good to know that without additional effort you will not be able to access this impact. You will see no results because Google Analytics will treat traffic from the email campaigns as direct traffic (when users are using your own app) or as referrals (when users are using web email clients). 

Nov 28, 2022