How to Add Google Analytics to Shopify? - STDetector
Shopify - pay only $1 /pm for 3 months   Free Trial
Detect Shopify Theme

Or go to our Shopify Theme Detector directly

How to Add Google Analytics to Shopify?

Last modified: December 2, 2021

How to Add Google Analytics to Shopify?
Shopify Trial

If you’re here reading this article it probably means you’ve already started your own Shopify eCommerce site but are looking for a way to improve and help you to grow your business. Well then you’ve come to the right place. Some of you may be very familiar with what Google Analytics is and how it works, while others out there may have only heard of it and not know anything about it so let’s start by just letting you know what this tool from Google is. Google Analytics is a web analytics service that can track and report website traffic. That sounds great, right? Seems like it could be very useful to use to enhance business so let’s talk more about it and how you can incorporate it into your Shopify site.

How Can Google Analytics Help Improve Your Business?


Google Analytics is incredibly important for shopping sites. With it you can do various things like measure the results of campaigns and compare data to previous information. It allows you to monitor data from PPC, SEO, Social Media, Direct traffic, etc. By being able to monitor all of these platforms simultaneously you can see what in your advertising is working and what is not. This will help save you time, money and resources and efficiently improve your advertising efforts which should increase sales on your site.


How to Add Google Analytics to Your Shopify eCommerce?

First things first, you have to have sign into your Google Analytics account and if you do not have one then just create one, it’s simple and easy. Once you’ve done this here are the steps you need to take to add Google Analytics to your Shopify site:

  • Click on Analytics in the drop-down menu
  • Choose website and fill in the form
  • Insert your primary domain under Website URL
  • Click Get Tracking ID which will show you a tracking ID code snippet
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),

ga(‘create’, ‘UA-########-#’, ‘’);
ga(‘send’, ‘pageview’);
  • Copy the entire code and then go to your Shopify admin panel
  • Go to Online Store and choose Preferences where you will paste the code into the Google Analytics field

And that’s it, you did it!

After reading this article we hope you feel confident in being able to add Google Analytics to your Shopify site. Remember, it’s a free tool offered by Google and will only help to improve your business.

Got Something To Say?

Your email address will not be published. Required fields are marked *