Add Google Analytics to Shopify

How to Add Google Analytics to Shopify (2018)

If you have a Shopify store, you need to know how to add Google Analytics to Shopify to be able to study the behavior of your site visitors and decide what would be the best plan for your marketing. Information such as how many visitors as well as where they are from is crucial and this is where Google Analytics comes in.

By providing you with valuable data and insight into the behavior of your customers, you can make decisions as to how best to retain those customers and increase conversions.

Cool, right?

As you learn to make use of Google Analytics, you are going to love it when that data translates into real-time conversions.

What will be covered on this article?
  • Why is Google Analytics so important?
  • How to add Google Analytics to Shopify.
  • What type of reports will I get with Google Analytics?
  • How to upgrade to Universal Analytics.
  • How to turn on basic E-commerce tracking.
  • How to turn on enhanced E-commerce tracking.

Let’s dive straight in!

Why is Google Analytics So Important?

For someone who operates a physical business, the customers walk in and out. This gives them the perfect opportunity to interact with those customers and learn more about their buying habits, and their preferences.

This is not the case with an online store.

On your Shopify store, you do not get this kind of proximity to your clients. Without the right tools to provide you with the right information, you are pretty much left to operate in the dark. Like someone trying to tell the direction the wind is blowing from by licking the finger and holding it in the air…lame!

This is exactly why you need to add Google Analytics to your Shopify store. You get a wealth of information which you will use to strategize on your marketing and increase those conversions.

And the great this is…

Setting up Google Analytics is simple. You do not have to be a tech genius to do this. Simply follow the steps below and you will be set to go.

Now that we have seen why Google Analytics is so important, it’s time to learn how to add Google Analytics to Shopify.

Video Tutorial

How to Add Google Analytics to Shopify

The first thing you will need is a Google account. If you do not already have one simply go to Google and open a Gmail account. The process is simple and you can even open one just for running Google Analytics on your Shopify store.

Once you have your Google account set up, follow these steps:

  1. Go to the Google Analytics site and at the top right corner select “Create account.”
  2. After the step above, sign in and click on “Create New Account”.
  3. Pick the website and then fill in the details required.
  4. Scroll to the bottom of the page and find “Get Tracking ID” and click it. Accept Google terms and conditions.
  5. You will receive the tracking code. Copy this code on the next page.
  6. Go to your Shopify store admin and click “Settings” then go to “Online store”.
  7. The code that you got from Google Analytics, copy it into the space provided. The code will be added to your Shopify store

After completing the steps above you will need to go to Google Analytics and activate the E-commerce Tracking feature. You can do this through the following steps:

  • At the top of the Google Analytics page, you will see the menu bar. Click the “Admin” button.
  • On the drop-down menu, you will find your account. Click on it.
  • Select “View Settings” in the third column.
  • Go down until you find the “Ecommerce Settings” part and click on the toggle. It should turn on.
  • Scroll down to the bottom of the page and click “Save”

And you are done!

When you first add Google Analytics to your Shopify store, you may be very excited to go through the data…you know before it starts to look complicated and bore you. But a little patience will suffice as Google Analytics will often take at least 24 hours before collecting information.

And like we said, once you get the hang of it, you are going to love what it’s going to do to your sales.

It’s time to get updated.

What Type of Reports Will I Get with Google Analytics?

There are hundreds of reports that you can get with Google Analytics. All that information can leave you a bit overwhelmed. Not to worry though. All you need to start with are a few basic overview reports. If you want extra information, you can build on from there.

On the left of your screen on the Google Analytics site, you should be able to view the different categories of reports. It is important to understand these categories. They are:

  • Real-time reports
  • Audience
  • Acquisition
  • Behavior
  • Conversions

Real Time Reports

These reports will help you analyze the traffic to your website. You are able to tell who is on your site, where they have located geographically and which parts or sections of your website that they are on.

I mean how cool is this?

With such information, you can tell how that marketing campaign that you implemented is performing. To get to the real-time reports section, simply click “Real Time”, then go to “Overview”.

With the Overview, you are able to see plenty of real-time data on your screen. However, when you want to dig a bit deeper, you can also select either content, locations, conversions, traffic source etc.

And that’s not all.

When you have made a blog, you will be able to tell whether it has received any views and the effects it has had on the traffic to your site.

Audience Reports

This is yet another interesting section.  With audience reports, you can tell the location, age or gender of the visitors to your Shopify store as well as what device they are using to access your stores such as PC, laptop, smartphone or Mac.

You can even tell what percentage of new users have viewed your site —a useful feature to gauge the effects of your marketing.

By showing you the visitors and their locations, you might want to start shipping your products to those countries that show interest and increase sales. Of course, there are plenty more data you can get from the audience reports.

Acquisition Reports

This is one section that you will want to pay close attention to.

Why? You may ask.

Well, because you are able to tell how the visitors to your Shopify store found your site. You can then use this information to strategize on how you can drive traffic to your site.

You are also able to easily tell what exactly is working to attract people and what is not working. By finding out the channels that are responsible for the most sales, you can improve on these channels and increase your conversions.

I don’ know about you but I’m enjoying this!

Behavior Reports

This is what you will use when you want to improve certain aspects of your site that have an effect on the number of visitors. An example is the Shopify load time. Nobody wants to spend several minutes waiting for a site to load.

Such information is also related to SEO and how your site ranks in Google. If few people are spending less time on your Shopify site, it will obviously rank lower on Google.

And then there is the bounce rate. This means the percentage of people who quickly open your Shopify site, view one page and leave. You want to minimize the bounce rate as much as possible.

If there are pages on your site that have a high bounce rate, you can decide on how best to improve content so as to retain your visitors and increase conversions.

Conversion Report

Do you remember earlier on when we said that you will need to turn on E-commerce Tracking? Your Shopify store will be sending buying information to Google Analytics for, well, more analysis.

You can tell which products are being bought and at what quantities as well as how the numbers translate in terms of revenue.

On that note, you will also be able to tell the tax amount, the shipping costs, quantity and revenue generated from every single transaction.

How does this help?

By analyzing the sales figures, you are able to determine which of the products you are selling resonate well with your client base.

Google Analytics is an invaluable tool for anyone doing E-commerce. But we have been dealing with the classic version of Google Analytics.

Feeling like an upgrade? Great choice!

How to Upgrade to Universal Analytics

As you familiarize yourself with Google Analytics, it doesn’t hurt to have extra information. The Universal Google Analytics takes things a step further by providing you with even more data and more features.

  • Go to Shopify admin and open in a new browser window.
  • Select “Online Store” then pick “Preferences”.
  • Go down to where you find Google Analytics and select “Upgrade to the Latest Version”.

Now that you have upgraded, it is time to enable Universal Google Analytics. Simply sign in to your Google Analytics account and follow the steps below:

  1. Go to the drop-down menu and select “Analytics”.
  2. Select your Google account.
  3. On the page that follows, click “Website” and then go ahead and fill the form. You will also need to add the domain of your website URL. Don’t forget to uncheck the boxes at the bottom as they are not important.
  4. Scroll at the bottom of the page and click on “Get Tracking ID”.
  5. Select “I Accept” on the terms and conditions section.
  6. The next page will provide you with the Tracking ID. Copy this.
  7. On a new browser window open Shopify store admin and go to “Online Store” and select “Preferences”.
  8. Find the Google Analytics accounts part and paste the Tracking ID.
  9. Don’t forget to remove Password Protection on your Shopify store. This step allows Google Analytics to track your visitors.

And that’s it, you are done!

Let’s talk some more about E-commerce tracking now that we have the latest version of Google Analytics.

You can choose between the basic data which includes transactions and revenue with the Basic E-commerce Tracking option. You can also dig deeper for extra information with the Enhanced Ecommerce Tracking.

How to Turn on Basic E-commerce Tracking

The first thing is to go to the Google Analytics menu and select the drop-down menu. Then…

  1. You will find 3 main categories. These are Account, Properties, and View.
  2. Select “Ecommerce Settings”.
  3. You will find an “Enable Ecommerce toggle. Turn it ON and you are done!

If you want more details on your visitors you will need to turn on Enhanced Ecommerce Tracking.

How to Turn on Enhanced E-commerce Tracking

Go to your Shopify admin and select “Online Store” then pick “Preferences”. Then follow the steps below:

  1. Find the Google Analytics section and select the checkbox saying “Use Enhanced E-commerce”.
  2. Select “Save”.
  3. If you have not yet signed in to your Google Analytics account, do so, go to the menu bar and click on “Admin”.
  4. On the drop-down menu, you can choose the Account, the Property as well as the View.
  5. Select “Ecommerce Settings”.
  6. Go to the “Next”.
  7. You will find the “Enable Enhanced Ecommerce Reporting” toggle and turn it ON
  8. Click on “Submit” and you are done.

Wrapping things up

Information is the key to making well-informed decisions for your Shopify store. But not just any information will do, you need the right kind that you will use to ultimately increase conversions.

Now that you have learned how to add Google Analytics to Shopify, you are one step closer to taking your Ecommerce business to a higher level.


Submit your information and I will contact you as my earliest convenience.