Free: Assessment Does your website build trust with buyers and bring in revenue?

Score My Website

Free: Assessment

Does your website build trust with buyers and bring in revenue?
Take this free 6 question assessment and learn how your website can start living up to its potential.
Score My Website

Free: Assessment

Google Analytics: When & How to Track Multiple Website Domains

By Liz Murphy

Google Analytics: When & How to Track Multiple Website Domains

"Stop me if you've heard this one before."

You've built an amazing inbound website for your business that's ripe for lead generation.

You've invested in HubSpot for your marketing automation, so now you have a blog and landing pages that live on at least one subdomain (e.g., ""), since they're part of your website, but they technically live on HubSpot.

(Or maybe you're an e-commerce company, and you've got a sweet "shop" or "cart" subdomain for when people are making purchases through your website.)

You're also using Google Analytics to track your website data, because of the rich insights it provides into your audience, as well as the fact that you need it for all of your Google Ads campaigns.

Basically, you've got your sweet suite of marketing tech in front of you, and you're ready to take the digital sales and marketing world by storm.

Well, that is until you look into your Google Analytics and realize the data you're seeing there is drastically different than what is being reported in HubSpot or a different platform. 

Why is Google Analytics giving you contradictory or incomplete data?

First of all, don't panic.

According to IMPACT Paid Media Specialist Dan Baum, you're not the first or the last digital marketing team to find themselves in this particular reporting pickle. In fact, the underlying cause is actually a common oversight that can create all sorts of reporting gaps and challenges, regardless as to whether you use HubSpot or not.

"The most common reason people see this discrepancy in their Google Analytics data is that they're not properly tracking their data cross multiple domains. If you have a straightforward company with no subdomains or HubSpot outliers, you won't have this problem," says Dan.

Sometimes this may be because a primary domain ( and its subdomain ( are being tracked separately, instead of one collective whole. Dan notes there are cases where this makes sense:

"Google tracks YouTube (a Google property) separately from other Google sites in their reporting data because they're separate entities. It's a separate site. They want the information, they want to know about the referrals that are coming from YouTube to Google or Google to YouTube, vice versa. They want to know the separation between those things."

And then there are other cases where someone might forget to track their pesky little subdomain(s) entirely. Which, hey... it happens.

But which is the right call for you? If you have a subdomain, should you have track holistically alongside your primary domain data? Or should you have it off on its own Google Analytics island, for reporting purposes?

Deciding how to report your primary and subdomain data in Google Analytics

"If you have two separate sites, you will want to track those separately," Dan says. "Yes, there may be a case where a subdomain falls into this category of separate reporting data, but you shouldn't be looking at Google Analytics to give you the answer. How you decide to track this data (together or separately) is a business decision."

To explain what he means, we'll use IMPACT as an example. 

IMPACT's website is hosted on HubSpot. (We do this for a variety of reasons.) 

Our publication ("blog") isn't hosted on a subdomain, as most are traditionally. But we do have subdomains such as "," for our landing pages and offers. We view the efforts across our primary domain (, our publication (, and our downloadable offers ( as a single effort.

And thus we track them together as one holistic set of reporting data in Google Analytics, as we do in HubSpot. 

We do have one subdomain, however, that we've carved out to track separately — the "microsite" for our digital sales and marketing agency services, which is found at

For us, it's a different part of our business, and thus we want to track all of the traffic and conversions from that separately.

In short, how you choose to bundle and silo out your primary and subdomain data in Google Analytics comes down to whether or not you view what's happening on those domains as "a single effort" or not, to use Dan's words.

How to set up your subdomains correctly using Google Tag Manager

Once you figure out how you want to handle your primary and subdomain tracking in Google Analytics, it's time to actually set up your account properly. (Fair warning, it gets a bit technical!)

According to Dan, how you approach this process will depend on how old your Analytics code is:

"Originally, Google Analytics was a separate script that you could manipulate and then add multiple snippets of code [for reporting purposes] across your domains. Now, with Google Tag Manager — which allows site owners to store, manage, and deploy all marketing tags to their site from one centralized location — the process is different."

All of the magic happens in the Variables section of Google Tag Manager:

Screen Shot 2019-06-25 at 10.50.37 AM

Truth be told, this entire process is extremely technical, but Google has a great support document that walks you through the process of updating your Universal Analytics tags for multi-domain tracking purposes. 

"Do I really need to be fooling around with Google Tag Manager? Is it really that big of a deal?"

If you're anything like me, I was a bit nervous being walked through this process. I'm not a coder. I like simplicity and easily understood directions. 

But Dan says now is the time to get comfortable with Google Tag Manager, because of how powerful it is and what it can do for you:

"The way Google Tag Manager works is essentially all the tracking tags you have within your website, those are all java script files that all live in your header on your website and every java script you have on your page slows the page down.

So, if you're tracking, if you're doing a lot of efforts you have your Google ads tag, you have your global site tag, you have your analytics tag, Meta pixel, LinkedIn, Insight, Lucky Orange, Hot Jar, all those tracking things, those are all scripts within your header. It slows things down a lot.

What Google Tag Manager does is it basically says hey Google, here's one script, here's a link to the folder and all the scripts live in there. So Google only has one script to read instead of 15 or 20."

For a marketer like me, that matters because we all know site speed is so critically important so while it's technologically dense to understand, you have to because this is the way the future is moving. This is how you're going to keep your site lightweight.

Free: Assessment

Does your website build trust with buyers and bring in revenue?
Take this free 6 question assessment and learn how your website can start living up to its potential.


Search Engine Optimization
Reporting & Performance
Published on August 21, 2019

Recent Articles

9 SEO Best Practices for Stronger Organic Traffic in 2023
November 18, 2022 • 12 min read
Video SEO: How To Optimize Videos To Drive Traffic to Your Website
May 9, 2022 • 8 min read
37 Eye-opening SEO Statistics To Nail Your 2022 Search Strategy
April 28, 2022 • 10 min read
10 Reasons Why Your Website Is Not Ranking In Google
February 10, 2022 • 15 min read
Google Shares New Tools to Audit Website User Experience
August 12, 2021 • 3 min read
Google: Website Content Quality More Important Than Quantity
August 10, 2021 • 3 min read
How Long Tail Keyword Research Can Drive Business
August 9, 2021 • 7 min read
How to Optimize Videos On Your Business Website for Search
July 23, 2021 • 4 min read
Google: 'Here's how to prepare for the future private web'
July 16, 2021 • 4 min read
Too many internal links in content can confuse Google about site structure
July 9, 2021 • 5 min read
Google July 2021 core update rolling out over next 2 weeks
July 2, 2021 • 4 min read
Inbound Marketing Help: My Traffic And Leads Are Down. What Can I Do?
June 28, 2021 • 5 min read
Finally, Google page experience core update is rolling out
June 18, 2021 • 3 min read
What is a Featured Snippet? [Definition + Examples]
June 10, 2021 • 4 min read
Google June 2021 core update live, July core update coming
June 4, 2021 • 3 min read
Google's June page experience core update will be mobile first, then desktop
May 21, 2021 • 3 min read
Google confirms demise of Q&A search feature, Question Hub lives on
April 26, 2021 • 1 min read
Big Google algorithm update moved to June with new performance report
April 21, 2021 • 4 min read
No, changing page publish dates won't increase Google search rankings
April 10, 2021 • 4 min read
Google: 'zero-click search' claims and data 'misleading'
April 5, 2021 • 6 min read
3 quick SEO fixes that will increase your website rankings right away
March 30, 2021 • 5 min read
10 Google Analytics metrics you absolutely must track (updated)
March 29, 2021 • 5 min read
Meet the new Google My Business review management view
March 20, 2021 • 2 min read
Google Ads help: Top 10 reasons your Google Ads campaigns are failing
March 10, 2021 • 10 min read
Google 'price drop' structured data for e-commerce can grab buyer eyes
March 9, 2021 • 2 min read