# Merge Hubspot consent banner with piwik ones?

**URL:** <https://community.piwik.pro/t/merge-hubspot-consent-banner-with-piwik-ones/380>\
**Category:** API & integrations\
**Created:** [December 8, 2021, 6:02pm UTC](https://community.piwik.pro/t/merge-hubspot-consent-banner-with-piwik-ones/380 "2021-12-08T18:02:05Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sylvain\_Tirreau](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/sylvain_tirreau/32/193_2.png) [@Sylvain\_Tirreau](https://community.piwik.pro/u/Sylvain_Tirreau)\
**Post date:** [December 8, 2021, 6:02pm UTC](https://community.piwik.pro/t/merge-hubspot-consent-banner-with-piwik-ones/380/1 "2021-12-08T18:02:05Z")

</div>

Hello,

Piwik consent manager is used on the website of one of our clients. This client became a client of Hubspot too. When we put the Hubspot tracking code on the client’s website, Hubspot open its own consent manager. So, in this case, we have two consent banners appears on the website.

Is there a way to pass the values given by Hubspot ([Cookie banner](https://developers.hubspot.com/docs/api/events/cookie-banner), see “Get privacy consent status” part) to the piwik consent manager without showing the piwik banner?

Thanks for your help.

---

<div class="post-metadata">

**Author:** ![kuba](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/kuba/32/7_2.png) [@kuba](https://community.piwik.pro/u/kuba)\
**Post date:** [December 8, 2021, 9:46pm UTC](https://community.piwik.pro/t/merge-hubspot-consent-banner-with-piwik-ones/380/2 "2021-12-08T21:46:46Z")

</div>

Hi 🙂 Yes, of course. You can use [Consent Manager API](https://developers.piwik.pro/en/latest/consent_manager/js_api/index.html) to set all the values without displaying a second bar/popup.

---

<div class="post-metadata">

**Author:** ![Sylvain\_Tirreau](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/sylvain_tirreau/32/193_2.png) [@Sylvain\_Tirreau](https://community.piwik.pro/u/Sylvain_Tirreau)\
**Post date:** [December 9, 2021, 8:04am UTC](https://community.piwik.pro/t/merge-hubspot-consent-banner-with-piwik-ones/380/3 "2021-12-09T08:04:46Z")

</div>

Hi. That’s great! Thanks a lot! 🙂

---

<div class="post-metadata">

**Author:** ![Sylvain\_Tirreau](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/sylvain_tirreau/32/193_2.png) [@Sylvain\_Tirreau](https://community.piwik.pro/u/Sylvain_Tirreau)\
**Post date:** [December 9, 2021, 4:41pm UTC](https://community.piwik.pro/t/merge-hubspot-consent-banner-with-piwik-ones/380/4 "2021-12-09T16:41:09Z")

</div>

Hi again,

Could you tell me if [this](https://help.piwik.pro/support/tag-manager/hubspot-tracking-code/) could replace the tracking code of Hubspot copy-pasted in the website? In this case, the Hubspot banner would not appears on the website. That’s correct?

---

<div class="post-metadata">

**Author:** ![kuba](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/kuba/32/7_2.png) [@kuba](https://community.piwik.pro/u/kuba)\
**Post date:** [December 10, 2021, 9:56am UTC](https://community.piwik.pro/t/merge-hubspot-consent-banner-with-piwik-ones/380/5 "2021-12-10T09:56:21Z")

</div>

You would have to check hubspot docs / configuration but in general - yes. You can stop using hubspot cookie banner and handle the consent via Piwik PRO Consent Manager. That would make the setup cleaner.

---

<div class="post-metadata">

**Author:** ![Sylvain\_Tirreau](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/sylvain_tirreau/32/193_2.png) [@Sylvain\_Tirreau](https://community.piwik.pro/u/Sylvain_Tirreau)\
**Post date:** [December 10, 2021, 12:21pm UTC](https://community.piwik.pro/t/merge-hubspot-consent-banner-with-piwik-ones/380/6 "2021-12-10T12:21:32Z")

</div>

We did it, but if Piwik add really another choice in the consent banner, none of the Hubspot cookies is put in the user’s browser. The Hubspot tracking js script is well loaded within the page, but no Hubspot cookie is loaded on the browser of the visitor who has accepted all cookies.

---

<div class="post-metadata">

**Author:** ![Sylvain\_Tirreau](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/sylvain_tirreau/32/193_2.png) [@Sylvain\_Tirreau](https://community.piwik.pro/u/Sylvain_Tirreau)\
**Post date:** [December 10, 2021, 3:13pm UTC](https://community.piwik.pro/t/merge-hubspot-consent-banner-with-piwik-ones/380/7 "2021-12-10T15:13:09Z")

</div>

I’ve finally fixed it.  
I think you have to add in [this doc](https://help.piwik.pro/support/tag-manager/hubspot-tracking-code/) that we have to: 1) [deactivate cookie banner in Hubspot](https://knowledge.hubspot.com/reports/customize-your-cookie-tracking-settings-and-privacy-policy-alert); 2) copy-paste the tracking code on all pages of your site.

---

<div class="post-metadata">

**Author:** ![kuba](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/kuba/32/7_2.png) [@kuba](https://community.piwik.pro/u/kuba)\
**Post date:** [December 13, 2021, 2:41pm UTC](https://community.piwik.pro/t/merge-hubspot-consent-banner-with-piwik-ones/380/8 "2021-12-13T14:41:42Z")

</div>

Great! I’ll pass your feedback to the team.
