Multiple URLs for the same HubSpot page in Google Analytics

Last updated: February 11, 2019

Applies to:

Marketing Hub  Starter, Professional, Enterprise
Legacy Marketing Hub Basic

Every link in an email sent from HubSpot contains identity tracking parameters so visits from links clicked in emails are attributed to the correct contacts.

These parameters, _hsenc and _hsmi, are unique to HubSpot and are not recognized by Google Analytics. In your Google Analytics report, you may see that each URL clicked from an email is considered a unique, separate page due to these unrecognized tracking parameters.

GA landing page visits

Filter traffic in Google Analytics

You can filter these query strings out of your report so that all visits to landing pages that contain those tracking parameters are bucketed together:

  • Navigate to your Google Analytics account.
  • In the left sidebar menu, navigate to Admin.
  • Click View Settings.
  • In the Exclude URL Query Parameters section, add the following:
    • _hsenc
    • _hsmi
  • HubSpot adds additional parameters to HubSpot CTA links. To exclude these parameters, include the following:
    • __hssc
    • __hstc
    • hsCtaTracking

Please note: values must be comma-separated when entered in the Exclude URL Query Parameters section, not entered as separate line items.

  • Click Done to save your changes. Moving forward, Google Analytics will group all of your visits to your pages from HubSpot emails together under a single page URL.

Please note: after applying these filters, your data won't be filtered retroactively.

Free Inbound Marketing Training Learn inbound marketing techniques that range from creating content, using  social promotion, converting and nurturing leads, and all the way to marketing  to your customers. Start the course