A Beginner’s Guide to Google Analytics


A Beginner's Guide to Google Analytics for eCommerce

Google Analytics is a free service offered by Google to help you understand your web traffic, and while it’s not a perfect solution, it is a great option for businesses both small and large. It’s cost effective but still focused enough to help you get some valuable insight. As an eCommerce merchant, you’ll definitely want to leverage Google Analytics to help get a holistic view of your performance, but getting Google Analytics for eCommerce right is absolutely critical.

And it’s not always easy to do.  

That’s why when I often get asked by merchants just starting out what first steps they should tackle, getting their Google Analytics ironed out is always something I recommend. Why? Put simply: there is no way to fix or clean the data in Google Analytics once you get started, so if you miss the mark at the start, your reporting will be wrong—forever

That sounds scary, but it doesn’t need to be. Over the years, I’ve had tons of experience helping brands set up and optimize their Google Analytics.

Here are three simple steps you can take to make sure you’re set up for success: 

  1. Have eCommerce Analytics turned on 
  1. Check your referral exclusions 
  1. Check your Default Channel Grouping 

First thing’s first...a bit about Google Analytics

Before we get started, it’s important to understand that Google Analytics works by embedding Javascript in your website that sends data to Google whenever a user visits your site.

Here’s why that matters: let’s say that someone is visiting your site with a browser that blocks Javascript from running (like DuckDuckGo). In that case, the Javascript won’t run, and Google Analytics won’t capture your data. This is why orders and revenue in Google Analytics are always lower than what you might see on the admin page of your Shopify store. Luckily, Shopify has done a great job making it easy to set up your Google Analytics. You just need to follow the simple steps here.   

Now that you’ve done that, you might be thinking you’re good to go, but there is still more setup within Google Analytics that you’ll want to do.

Why? Because Google Analytics is used across all sorts of websites (blogs, news, eCommerce, etc.) and each one has different needs, you want to tailor Google Analytics to each, instead of using the basic “one-size-fits-all” version of Google Analytics.

Here’s how: 

Step 1: Have eCommerce Analytics turned on 

From the homepage, you’ll want to find the Admin option in the bottom left hand corner. Once you’ve done this, click “View Settings” and select “Ecommerce Settings.” Make sure Enable Ecommerce and Enable Enhanced Ecommerce Reporting are turned on.

Why? Having these options enabled allows for much better visibility into the metrics that matter most to your business performance. Ecommerce allows you to see things like transactions and revenue by channel, while Enhanced Ecommerce allows us to see things like product performance—product page views, adds to carts, transactions, etc.  

step 1 and 2 of how to turn on google analytics for eCommerce
step 3 of how to turn on google analytics for eCommerce

Step 2: Check Your Referral Exclusions 

Referral exclusions allow you to tell Google Analytics to exclude certain domains from being tracked as new sessions. This is important because certain payment methods (such as PayPal, for one) require the user to log into their account to make the payment. If you don’t exclude PayPal, then Google Analytics will think the customer is coming to your site from PayPal—even if they didn’t. 

Let’s say a customer sees your ad on Facebook and clicks through to your site to make a purchase. If they use PayPal for the transaction, Google Analytics will give all the credit to PayPal, even though the sale really came from Facebook. That’s not good. Ultimately, without referral exclusions, the original “real” source appears worse, while the referral channel looks better, leading to discrepancies and errors in your reporting. 

So, how can you make sure you’ve set up referral exclusions correctly?  

Navigate to the Property and Tracking Info within Google Analytics, and add the domains you want to exclude. Here’s a good guide from Shopify that covers which domains to exclude. We’ve excluded our store, Shopify and PayPal in our referral exclusions. 

Step 3: Check Your Default Channel Groupings 

The last thing we recommend changing is your Default Channel Grouping in Google Analytics, which can be located under Channel Settings

Channel groupings matter because your channels get mapped based on the UTM parameters in your marketing. Take Facebook, for example. For many of us in the eCommerce space, we would use Facebook as an advertising platform to generate traffic to our site with paid ads. We might also create our own posts hoping that people see them and visit our site without us having to pay for that traffic.

Unfortunately, Google doesn’t know the difference between organic traffic and paid traffic—all it knows is that the traffic came from Facebook. 

That’s where your Channel Settings come into play. We need to tell Google Analytics how to interpret some of these sources so we can make smarter and more informed decisions when it comes to how we’re spending our marketing dollars. 

From the Channel Settings menu, click on Default Channel Grouping to open the rules.  

Almost everyone on Shopify uses Google Ads and Facebook Ads to get traffic.

At Daasity, we always recommend that users set up or modify two channels and put them at the top of the list: 

  1. Paid Search: We usually modify the system-defined Paid Search, specifically for bing cpc in Google Analytics. Make sure to add “bing / cpc” as a “source / medium,” as we don’t always see Bing getting captured correctly
  1. Paid Social: Paid ads from Social platforms are almost never tagged correctly which is why it’s important to set them up in your marketing platform, as well as Google Analytics, so you can differentiate between the traffic and order types.  

For Facebook, paid ads almost always come with “cpc” as the medium, so it’s important to set up a rule that says assign “facebook / cpc” to Paid Social first  

In just a few simple steps, you can take your Google Analytics for eCommerce from basic to brilliant so you can get the insights you need to boost your business. Looking for more? Check out this helpful guide from Elevar for more details.   

Have questions? Drop us a line and say hello, we’d love to hear from you! 

May interest you

Stay Data-Driven.

Get tactical insights delivered to your inbox.