Got A HubSpot Website? Your Google Analytics Tracking Is Broken.

Posted in HubSpot by Steven Mitchell

If you are using HubSpot COS as your web platform, then you almost certainly have some erroneous sessions being tracked in Google Analytics.

If you are following standard practice for GA hygiene, you'll have already filtered your business' IP addresses (and any other static IP addresses used by employees or suppliers) from diluting your data. However, this may not be enough. When you use HubSpot to edit or preview website pages, landing pages or blog posts, your visits are (currently) still being counted in GA (probably).

Why are my visits not being filtered  from GA?

When you use the edit or preview modes in the HubSpot COS, HubSpot sends a bot on your behalf to fetch the page. Effectively, this means you are visiting the site via a proxy. This means the IP of the visit is from HubSpot's servers - NOT your IP address, which is the one you have filtered.


How can I stop this from happening?

Easy peasy.  Create a new filter in Google Analytics. 

  • Name: Anti HubSpot Preview Filter
  • Filter Type: Custom
  • Exclude >
  • Filter Field: ISP Organisation
  • Filter Pattern: HubSpot

This should prevent visits from HubSpot being included in your data.

Still need some help?

If you're having trouble taming the magnificent beast which is HubSpot, you can reach out to us. We're a Gold HubSpot Partner and would be delighted to help you conquer your inbound marketing strategy. 

Let's Talk!

Steven Mitchell
Steven Mitchell

Ste likes to mess about with the techie side of SEO. As such his blogs are mainly about SEO or rants about bad web development practice.

Meet Steven Mitchell

Monkey Mail 💌🍌

Get monthly digital marketing tips sent straight to your inbox.

Want to know what to expect before you subscribe? You can preview the monthly newsletter right here.

Don't worry - we won't EVER share your email with anyone. Even if they offer us a million quid. It says so in our privacy policy.
If you would like to offer us a million quid, email at once.