How To Install Google Analytics 4 On Shopify

Web Development Software

Adding Google Analytics 4 to your Shopify store is an important task for gaining insights and improving your store’s performance. As a devoted Shopify user and advocate for data-based decision-making, I am thrilled to present a detailed tutorial on how to successfully install Google Analytics 4 on Shopify. Let’s get started!

Step 1: Create a Google Analytics 4 Property

The first step is to create a Google Analytics 4 property in your Google Analytics account. If you don’t have a Google Analytics account yet, you can easily create one by visiting

Once you’re logged in, click on the “Admin” tab at the bottom left corner of the screen. Under the “Property” column, click on “Create Property” and select “Google Analytics 4”. Follow the prompts to set up your property, including providing a name and URL for your online store.

Step 2: Get your Measurement ID

After creating your Google Analytics 4 property, you’ll need to retrieve your Measurement ID. In the Admin section, click on “Data Streams” under the “Property” column, and then click on the “Add Stream” button.

Select “Web” as the platform and enter the URL of your Shopify store. Click on “Create Stream” and you’ll be provided with your Measurement ID. Make note of this ID as you’ll need it in the next step.

Step 3: Install the Google Analytics 4 Tracking Code on Shopify

Now that you have your Measurement ID, it’s time to install the Google Analytics 4 tracking code on your Shopify store. Login to your Shopify admin dashboard and navigate to the “Online Store” section.

Click on “Preferences” and scroll down to the “Google Analytics” section. Paste your Measurement ID into the “Google Analytics” field and click on the “Save” button.

Shopify will automatically add the necessary tracking code to your store’s theme, ensuring that data is collected and sent to your Google Analytics 4 property.

Step 4: Verify the Installation

It’s crucial to verify that Google Analytics 4 is correctly installed on your Shopify store. To do this, go back to your Google Analytics account and navigate to the “Realtime” section. Open your Shopify store in a new browser tab and browse through a few pages.

If everything is set up correctly, you should see real-time data being recorded in your Google Analytics 4 dashboard. This confirms that the installation was successful and you can start analyzing the performance of your online store!


Installing Google Analytics 4 on Shopify is a relatively simple process that provides powerful insights into the performance of your online store. By following the steps outlined above, you’ll have access to valuable data that can help you make informed decisions and improve your Shopify store’s success. So don’t wait any longer – install Google Analytics 4 on Shopify today and unlock the full potential of your e-commerce business!