# Google Consent Mode through HubSpot

**URL:** <https://community.hubspot.com/t/google-consent-mode-through-hubspot/29313>\
**Category:** GDPR\
**Tags:** gdpr\
**Created:** [December 17, 2020, 11:21am UTC](https://community.hubspot.com/t/google-consent-mode-through-hubspot/29313 "2020-12-17T11:21:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![AKarlsson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/akarlsson/32/76793_2.png) [@AKarlsson](https://community.hubspot.com/u/AKarlsson)\
**Post date:** [December 17, 2020, 11:21am UTC](https://community.hubspot.com/t/google-consent-mode-through-hubspot/29313/1 "2020-12-17T11:21:41Z")

</div>

Hi there

Trying to set up Google Consent Mode using HubSpot.  
Cannot find any documentation on how to do this. Available documentation refers to using Google Tag Manager, but I want to keep my setup limited to HubSpot as much as possible.

Been following this guide, which I thought would work for Hubspot as well. But can’t get it to work.  
[https://support.cookieinformation.com/en/articles/4465069-how-to-enable-google-consent-mode](https://support.cookieinformation.com/en/articles/4465069-how-to-enable-google-consent-mode)

Has anyone done this and how did you do?  
Thanks in advance

---

<div class="post-metadata">

**Author:** ![sharonlicari](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/sharonlicari/32/101479_2.png) [@sharonlicari](https://community.hubspot.com/u/sharonlicari)\
**Post date:** [December 18, 2020, 11:08am UTC](https://community.hubspot.com/t/google-consent-mode-through-hubspot/29313/2 "2020-12-18T11:08:02Z")

</div>

Hi @AKarlsson

Welcome to the Community!

I’d like to share the following resources that might be able to help you!

[Add the Google Tag Manager code to your pages](https://knowledge.hubspot.com/cos-general/how-do-i-add-the-google-tag-manager-code-to-my-hubspot-pages)

[Google Tag Manager: A Simple Tutorial](https://blog.hubspot.com/marketing/google-tag-manager-guide)

[Why would we use Google Tag Manager?](https://community.hubspot.com/t5/Reporting-Analytics/Why-would-we-use-Google-Tag-Manager/td-p/356234)

I’ll also tag a few experts that might be able to help.

Hey @Aakar [@Mike\_Eastwood](https://community.hubspot.com/t5/user/viewprofilepage/user-id/9259) [@Ben\_M](https://community.hubspot.com/t5/user/viewprofilepage/user-id/87451) any thoughts you would like to share with @AKarlsson?

Thanks

Sharon

---

<div class="post-metadata">

**Author:** ![AKarlsson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/akarlsson/32/76793_2.png) [@AKarlsson](https://community.hubspot.com/u/AKarlsson)\
**Post date:** [December 21, 2020, 9:47am UTC](https://community.hubspot.com/t/google-consent-mode-through-hubspot/29313/3 "2020-12-21T09:47:32Z")

</div>

Hi @sharonlicari  
Thank you for your reply.  
I do have GTM installed, and use it for some tag implementations.  
But all of my tracking codes that would be affected by Consent Mode are installed through Hubspot.  
I’m therefore looking for a solution on how to install Consent Mode in Hubspot directly 🙂  
Thanks in advance,  
Happy Holidays

/ Axel

---

<div class="post-metadata">

**Author:** ![Aakar](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/aakar/32/107785_2.png) [@Aakar](https://community.hubspot.com/u/Aakar)\
**Post date:** [December 28, 2020, 9:46am UTC](https://community.hubspot.com/t/google-consent-mode-through-hubspot/29313/4 "2020-12-28T09:46:20Z")

</div>

Thanks @sharonlicari

Hi @AKarlsson

If you’re using multiple tags, it’s best to implement via Google Tag Manager. Since you don’t want to use the Google Tag Manager, I’d suggest trying out this Google method mentioned [here](https://developers.google.com/gtagjs/devguide/consent#gtag.js). You can generate the code and put it directly in the HubSpot site header/footer via settings page. You can also reach out to your Google Account Manager for Google consent mode.  
Alternatively, you might want to explore the [Cookiebot app on HubSpot](https://www.cookiebot.com/en/partners/hubspot/) as well. I have not used it, and I don’t know whether it helps achieve your goal. I’d suggest checking that app.  
Thanks.

---

<div class="post-metadata">

**Author:** ![AKarlsson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/akarlsson/32/76793_2.png) [@AKarlsson](https://community.hubspot.com/u/AKarlsson)\
**Post date:** [March 1, 2021, 9:16am UTC](https://community.hubspot.com/t/google-consent-mode-through-hubspot/29313/5 "2021-03-01T09:16:54Z")

</div>

Hi @Aakar  
Thank you for your reply.  
I ended up going with a GTM solution, and it works well.

Best regards

Axel
