Subscribe
Join 40,000+ sales and marketing pros who receive our 4x a week insights, tips, and best practices.
Thank you! You have been subscribed.

Free Guide: The Inbound Marketer’s Guide to Search Engine Optimization

Read the Guide Subscribe
Join 40,000+ sales and marketing pros who receive our 4x a week insights, tips, and best practices.
Thank you! You have been subscribed.
Learning Center
Learning Center
Close

Learn

Access the Learning Center

Free resources to help you master inbound marketing and They Ask, You Answer

Access the Learning Center

Blog / Newest Insights

Jump straight to the latest inbound marketing and They Ask, You Answer insights

Access the Learning Center

Free and Pro Courses

Take your knowledge to the next level with free and Pro courses inside IMPACT+

Access the Learning Center

Recordings on Demand

On-demand recordings from past IMPACT events and livestreams

Access the Learning Center

Featured

Inbound Strategy Playbook 2022

Learn 7 foundational principles that have proven to set inbound marketing strategies up for success

Access the Learning Center

Free 5 Min. Inbound Marketing Assessment

Take this free assessment and learn what you can start doing today to boost traffic, leads, and sales

Access the Learning Center

Blueprint for a More Profitable Agency

See why coaching, not implementation, is the key to happier clients and better profit margins

Access the Learning Center

Case Studies

See examples of companies working with IMPACT and thriving with They Ask, You Answer

Access the Learning Center
Events
Events
Close
IMPACT+ Membership
IMPACT+ Membership
Close
Services
Services
Close
Navigation_8_2021_taya

They Ask, You Answer Coaching & Training

They Ask, You Answer Coaching & Training
They Ask, You Answer Workshop

They Ask, You Answer Workshop

They Ask, You Answer Workshop
Navigation_8_2021_workshop

Inbound Marketing Services

Inbound Marketing Services
Navigation_8_2021_website design - monitor

Website Design & Development

Website Design & Development
Navigation_8_2021_hubspot implementation

HubSpot Training & Implementation

HubSpot Training & Implementation
Navigation_8_2021_virtual selling

Virtual Sales
Training

Virtual Sales <br>Training
Navigation_8_2021_swell - paid ads

Paid Search & Social Services

Paid Search & Social Services
Become a Certified Coach
Become a Certified Coach
Close
... Inbound Marketing Search Engine Optimization
Close
The Inbound Marketer’s Guide to Search Engine Optimization

Free Guide:

The Inbound Marketer’s Guide to Search Engine Optimization
Read the Guide
The Inbound Marketer’s Guide to Search Engine Optimization
Free Search Engine Optimization Guide
View The Inbound Marketer’s Guide to Search Engine Optimization
The Inbound Marketer’s Guide to Search Engine Optimization

Free Guide:

Generate more traffic, leads, and sales with search engine optimization

In this free guide, you will learn:

  • What search engines are and who uses them.
  • What search engine optimization is and how it works.
  • Best practices for search engine optimization.

Google Analytics: When & How to Track Multiple Website Domains

By Liz Moorehead

Liz Moorehead also recommends this free guide, The Inbound Marketer’s Guide to Search Engine Optimization.

Google Analytics: When & How to Track Multiple Website Domains Blog Feature

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

Free Guide: The Inbound Marketer’s Guide to Search Engine Optimization

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., "info.awesomesauce.com"), 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 (awesomesauce.com) and its subdomain (info.awesomesauce.com) 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 "offer.impactplus.com," for our landing pages and offers. We view the efforts across our primary domain (impactplus.com), our publication (impactplus.com/blog), and our downloadable offers (offers.impactplus.com) 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 agency.impactplus.com.

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, Facebook 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.

The Inbound Marketer’s Guide to Search Engine Optimization
The Inbound Marketer’s Guide to Search Engine Optimization

Free Guide:

The Inbound Marketer’s Guide to Search Engine Optimization

Generate more traffic, leads, and sales with search engine optimization

In this free guide, you will learn:

  • What search engines are and who uses them.
  • What search engine optimization is and how it works.
  • Best practices for search engine optimization.

Topics:

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

Recent Articles

9 SEO Best Practices for Stronger Organic Traffic in 2022
November 18, 2021 • 12 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 • 6 min read
ICYMI: Digital Marketing News Update for July 26, 2021
July 26, 2021 • 6 min read
How to Optimize Videos On Your Business Website for Search
July 23, 2021 • 4 min read
ICYMI: Digital Marketing News Update for July 19, 2021
July 19, 2021 • 6 min read
Google: 'Here's how to prepare for the future private web'
July 16, 2021 • 4 min read
What the Heck is Going on With All the Google Updates? (Content Lab, Ep. 54)
July 15, 2021 • 1 min read
ICYMI: Digital marketing news update for July 12, 2021
July 12, 2021 • 5 min read
Too many internal links in content can confuse Google about site structure
July 9, 2021 • 5 min read
ICYMI: Digital marketing news update for July 6, 2021
July 6, 2021 • 5 min read
Google July 2021 core update rolling out over next 2 weeks
July 2, 2021 • 4 min read
ICYMI: Digital marketing news update for June 28, 2021
June 28, 2021 • 6 min read
Inbound marketing help: My traffic and leads are down — what am I doing wrong?
June 28, 2021 • 5 min read
ICYMI: Digital marketing news update for June 21, 2021
June 21, 2021 • 5 min read
Finally, Google page experience core update is rolling out
June 18, 2021 • 3 min read
ICYMI: Digital marketing news update for June 14, 2021
June 14, 2021 • 6 min read
What is a Featured Snippet? [Definition + Examples]
June 10, 2021 • 4 min read
ICYMI: Digital marketing news update for June 7, 2021
June 7, 2021 • 6 min read
Google June 2021 core update live, July core update coming
June 4, 2021 • 3 min read
ICYMI: Digital marketing news update for May 24, 2021
May 24, 2021 • 6 min read
Google's June page experience core update will be mobile first, then desktop
May 21, 2021 • 3 min read
ICYMI: Digital marketing news update for May 17, 2021
May 17, 2021 • 5 min read
ICYMI: Digital marketing news update for May 10, 2021
May 10, 2021 • 6 min read