If you want your Shopify business to grow, you’ll need to make changes based on data insights rather than guesswork. Google Analytics will provide the insight you need to increase your store’s search exposure, traffic, conversions, and profits. This article provides a step-by-step guide on implementing Google Analytics for Shopify.

But first, let’s define Google Analytics.


What Is Google Analytics?

Google Analytics (GA) is a free web analytics tool that can measure a range of data across a website. These metrics include website traffic, bounce rates, click-through rate, conversions, and time on page, among others. This tool provides invaluable information to help entrepreneurs establish a successful online store.

You probably run a range of ads, collaborate with influencers, and send out email campaigns as an online retailer. Each of these marketing efforts will include a link to your website.

When you have Google Analytics installed, you will be able to determine the effectiveness of your campaigns. The tool will show how many people interacted with your campaign, how many converted, and how much money you made. It allows you to see all of your marketing funnels in one location and create bespoke reports that highlight what matters most to your business.


Google Analytics Vs. Shopify Analytics

People ask why they need Google Analytics when they already have Shopify analytics. The answer is simple; you need all of the data you can get to make more informed business choices.

While Shopify analytics provides a general overview of how your store is doing, it does not provide you with the valuable insight you need to make the best business decisions.

For example, the Shopify tool shows you your total conversion rate and sales and offers pre-built reports, but it doesn’t provide in-depth insight into any of these metrics.

Suppose you want to analyze different traffic sources, or what types of devices are typically used while completing a transaction. In that case, you won’t be able to see this breakdown with Shopify analytics.

This is where Google Analytics triumphs. GA allows you to see how users interact with your website, and it provides in-depth insight to understand your customers better and create marketing strategies that scale with your business. And the best part is that you get all of these for free, unlike Shopify, where you’ll need to switch to a more expensive plan to get additional reports.

Now that you know the benefits go Google Analytics for Shopify, let’s look at how you can set up GA for your store.



How To Setup Google Analytics for Shopify

Step 1: Make sure Google Analytics isn’t already turned on.

When you enable Google Analytics many times, the data becomes erroneous. If you’re sure you’ve never activated Google Analytics previously, move on to Step 2. Otherwise, follow these steps to check if GA is already activated for your store.

  1. Go to Online store > Preferences in your Shopify admin.
  2. Check that the box in the Google Analytics section only has the phrase “Paste your code from Google here” or it’s empty. Continue to the next step if that’s the case. If you see a code that starts with UA- instead, you’ve already set up Google Analytics, and you’ll only need to enable eCommerce tracking.
  3. To further confirm, go to Themes.
  4. Click Actions and select Edit code.
  5. Click{/} theme.liquidin the Layout section.
  6. Look for any of the following Google Analytics tracking tags in the theme.liquid file: ga.js, dc.js, gtag.js, or analytics.js. Suppose any of these tags appear in your theme.liquid file, Google Analytics is already activated, and you can skip it.

If you don’t see a tracking code in the Google Analytics section of your Preferences page or a Google Analytics tracking tag in your theme.liquid file, Google Analytics isn’t enabled on your store. Move on to step 2.


Step 2: Create an account with Google.

  • You’ll need an account with Google to access Google Analytics. If you have a Gmail account, sign in with that. Create a new Gmail account if you don’t already have one.
  • After logging in, click the “Sign up” button on the first page.
  • On the next screen, you can choose whether you have a website or mobile app. Since we are setting this up for a Shopify store, choose “website.”
  • Next, give your analytics account a name, the name of your website, the URL of your site, select your industry category from the menu, leave the other checkboxes alone, scroll down and click the “Get Tracking Id” button at the bottom of the page.
  • When you click “Get Tracking Id, “a pop-up box will display, asking you to agree to the GA terms and conditions. You’ll be taken to your Google Analytics account after clicking the “I Agree” button.
  • Your website tracking information section will appear on your first visit to your analytics account. The tracking id and script to use in your Shopify online store will also be found here. The tracking script will look like the screenshot below.
  • To get your tracking code go to admin >>> property >>> tracking info >>> tracking code.
  • Copy the code in-between the Script>/Script> tags and log into your Shopify account in a new tab.

Google analytics for shopify..

Step 3. Integrate Google Analytics with Shopify

Here’s how to add Google Analytics to Shopify.

  • Log into your Shopify dashboard/admin and go to Online Store > Preferences.
  • Paste the Google analytics code in the Google Analytics Account field.
  • Click save!
  • Next, from Shopify admin, go to Online Store >>> Preferences and check the “Use enhanced eCommerce” checkbox in the Google Analytics Account field.
  • Click Save to complete setup.


Step 4. Confirm Your GA Code Shopify Setup

There are two ways to check if the tracking code was accurately entered.

  1. View Real-Time Reports

From the analytics account reporting tab, go to Real-Time, then overview and open your site in a new tab. It will tell you how many active visitors you have on your site at that specific time.


  1. Download and install Google Tag Assistant.

The Google Tag Assistant is a browser extension that uses different colors to display the number of analytics tracking tags on your website as well as the tracking status. It will also alert you if your tracking tags have any problems.


Step 5. Add your website to the Referral Exclusion List.

To receive accurate reports, exclude the websites you don’t want to be attributed as referrals.

From the admin page, go to Property >> Tracking Info >> Referral Exclusion List.

Next, include the domains below in your referral exclusion list.

  • Yourwebsitename.com
  • Checkout.shopify.com
  • Any third-party payment processors you’re using (example, paypal.com)


Step 6. Enable Ecommerce Tracking.

So, we’ve successfully installed Google Analytics for Shopify and can now see reports. We are just receiving reports on website traffic, not eCommerce reports.

We must enable eCommerce reports from the GA account in order to view Shopify Google Analytics eCommerce reports.

  • To do this, open your Google Analytics account.
  • Click on Admin, then View >> Ecommerce Settings.
  • In eCommerce settings, turn on the “Enable Ecommerce” option, then go to the next step and enable the “Enhanced Ecommerce Settings” toggle, then click submit. Once you are done, you’ll see a green success message box at the top of the page.

Ecommerce reports will start showing in your analytics account within 24-48 hours.


Step 7. Set up a Google Analytics account.

After you’ve installed Google Analytics on your Shopify store, the next step is to set it up for accurate reporting. To do this, you’ll have to set up your goals, segments, and dashboards in your analytics account.

After that, you should configure the appropriate filters, block all spam and internal traffic, and connect the search console to track SEO metrics.

So there you have it. You’ve just successfully set up Google Analytics for Shopify. Although it was a long process, every bit of it counts. The question now is, what are you going to do with all these statistics and filters? Here’s what you should know.

Google analytics for shopify..,

What Should Google Analytics Be Used For?

First, keep in mind that you should not analyze things only for the purpose of analyzing them. To get the most out of your Google Analytics implementation, you’ll need to ask specific questions and compare the results across different periods and scenarios.


Here are the primary questions you should try to answer with Shopify and Google Analytics.

1. Who Are My Ideal Clients?

Google Analytics can help you develop buyer personas and modify your marketing plan to increase sales. Here’s how you can do this.


2. Research your demographics.

From your GA dashboard, go to Audience >> Demographics>>Overview to see the most prevalent age groups and genders of people that visit your Shopify store.

Compare your data over time to see which demographics are most interested in your store and adjust your advertising strategies accordingly.


3. Determine your best locations.

Find out which countries or region buys more from you and modify your campaigns accordingly.

For example, you might notice that your best-paying consumers live in the Texas area. One thing you may do is place additional ads in that region. You can even go bigger! You may take your company to the next level by locating suppliers in the Texas area and reducing delivery times! As a result, you may see increased client happiness, favorable reviews, and sales.


4. Find out your top devices

Google Analytics also helps you identify the devices your customers typically use to make purchases.

For example, you might have more mobile visitors than desktop users. Still, your e-commerce conversion rate (the percentage of individuals who complete your desired activity, such as making a purchase) is substantially lower among mobile users. This could indicate that your store’s mobile UX (user experience) is far worse than its desktop counterpart. You’ll need to improve your mobile UX if you don’t want to lose sales.


5. Identify your target audience based on interest

Interest Reports can show you your store’s visitors’ interests are all over the internet. This might provide you with some ideas for cross-targeting your potential clients or what kinds of content ideas might pique their interest.

Consider the following scenario: you own an online boutique that sells clothes. You notice that some of the people that come into your store are interested in jewelry. You can expand your offerings to include jewelry like necklaces or possibly change your product images to include photos of models rocking your products (clothes) with various jewelry.


6. How do customers interact with your Shopify store?

Google Analytics also allows you to see how customers interact with various pages on your store.

  • To do this, navigate to Behavior >> Site Content >> Landing Pages. You’ll be able to view the analytics for various product pages and determine which ones require more attention.

Google analytics for shopify sales

Another thing to consider is how visitors to your website behave on different pages of your store. By selecting Behavior Overview, you can see a general overview.

  • Go to Behavior>> Site Content>> Landing Pages to really understand what’s going on with your store.

Some of the metrics to look out for include:

  • Pageviews: The total number of times your store’s pages have been visited. If a customer visits pages A, B, and C, it will count as three page views.
  • Unique pageviews: The number of times a specific page was viewed at least once during a given session. During the same session, multiple visits to your product page A by the same user would count as one unique page view.
  • Bounce rate: This indicates how many people visit your page and then leave without taking any action. The higher the percentage, the more visitors will leave your page.
  • Average Time on Page: The average amount of time people spend on a single page or a group of pages.
  • Session: A session is a collection of interactions with your Shopify store that occur over a period of time. So if a customer visits your site and then leaves, that counts as a session.
  • % Exit: The percentage of visitors who leave a page (or a collection of pages) after seeing it.
  • Transactions: Total amount of completed purchases on your site.
  • Revenue: The total amount of money you have.


7. How Do You Achieve your goals?

Before you start analyzing data using Google Analytics, you must first determine your overall goals.

Make a list of three or four major business objectives for your Shopify store. Your objectives can be long-term (measured in years) or short-term (measured in months) (could take a few weeks or months). What matters is that they’re achievable, specific, and measurable within a reasonable time frame.

For instance, your objective could be to reduce the bounce rate. In that case, you’ll need to work on improving your page speed and other metrics that make people leave your site.



Implementing Google Analytics is one sure way to improve your Shopify game, and this article explains it all. Feel free to ask questions below.