Dec 12, 2019 4:53 PM
On November 1, 2019, we made a change to the Google Analytics integration that will prevent the Google Analytics tracking script from firing until a visitor opts in to cookie tracking via the HubSpot cookie banner.
So customers hosting their website with HubSpot can ensure their Google Analytics tracking is compliant with GDPR and EU cookie laws. If visitors don’t opt in to cookie tracking, the Google Analytics script won’t fire. This may result in a decrease in the traffic recorded on HubSpot-hosted pages in your Google Analytics account.
If you’re using the Google Analytics with HubSpot integration, you don’t need to take further action.Your HubSpot cookie banner will control your native Google Analytics integration on your HubSpot-hosted pages.
If you’re not using the Google Analytics with HubSpot integration but want the cookie controlled by the banner, you will need to set up the integration.
This Google document on disabling the Google Analytics tag may be a helpful resource. Next steps are as follows:
If you have any questions about this change, or how it might have impacted your reporting in Google Analytics, please reach out to your HubSpot Customer Success Manager or the HubSpot Support team. We’re here to help however we can. If you have general non-account specific development questions or comments please join the conversation here.
Feb 14, 2020 4:43 PM - edited Feb 14, 2020 4:43 PM
You would need to either build a custom cookie banner on your non-HubSpot site or use one of the many cookie banner services online for that. The cookie banner that you can enable for HubSpot Pages, Landing Pages, and blog posts only affects those HubSpot hosted resources.
May 12, 2021 12:06 PM
@jmclaren does this same functionality apply to the other native integrations in that same screen including Google Tag Manager or Adroll? So if the user doesn't opt in to be tracked then the GTM and Adroll scripts will NOT be fired for that user.