# External cookie banner

**URL:** <https://community.hubspot.com/t/external-cookie-banner/97325>\
**Category:** CMS Development\
**Tags:** javascript\
**Created:** [January 8, 2024, 1:24pm UTC](https://community.hubspot.com/t/external-cookie-banner/97325 "2024-01-08T13:24:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![VLarue](https://avatars.discourse-cdn.com/v4/letter/v/71e660/32.png) [@VLarue](https://community.hubspot.com/u/VLarue)\
**Post date:** [January 8, 2024, 1:24pm UTC](https://community.hubspot.com/t/external-cookie-banner/97325/1 "2024-01-08T13:24:25Z")

</div>

Hello,

I wish to integrate a home made cookie banner to my Hubspot CMS, Client Portal and landing page.

I want to deactivate Hubspot cookie banner, place my homemade cookie banner, and maybe use Hubspot Cookie consent banner API to manage cookies.

Is there a way not to update each and every layout manually ( maybe through Hubspot API ?) and to force the loading of an external script that would do all that ?

Thank you,

V.

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [January 8, 2024, 10:54pm UTC](https://community.hubspot.com/t/external-cookie-banner/97325/2 "2024-01-08T22:54:13Z")

</div>

Hey, @VLarue 👋 Welcome to our community. It’s challenging for our community to give a specific reply without knowing more about what you’ve already tried and how it’s not working as you’d expect it to. Can you share any additional details on the steps you’ve taken?

Here are the available documents for customizing or replacing the cookie banner:

- [How can I manage HubSpot cookies with a third-party cookie banner?](https://knowledge.hubspot.com/privacy-and-consent/consent-banner-faq#:~:text=How%20can%20I%20manage%20HubSpot%20cookies%20with%20a%20third%2Dparty%20cookie%20banner%3F)
- [Cookie consent banner API](https://developers.hubspot.com/docs/api/events/cookie-banner)
- [Use cookie management tools in HubSpot](https://knowledge.hubspot.com/privacy-and-consent/use-cookie-management-tools-in-hubspot)
- [Set up a consent banner with the new editor](https://knowledge.hubspot.com/privacy-and-consent/set-up-a-consent-banner-with-the-new-editor)
- [Customize your cookie tracking settings and consent banner](https://knowledge.hubspot.com/privacy-and-consent/customize-your-cookie-tracking-settings-and-consent-banner)

Best,

Jaycee

---

<div class="post-metadata">

**Author:** ![VLarue](https://avatars.discourse-cdn.com/v4/letter/v/71e660/32.png) [@VLarue](https://community.hubspot.com/u/VLarue)\
**Post date:** [January 9, 2024, 4:40am UTC](https://community.hubspot.com/t/external-cookie-banner/97325/3 "2024-01-09T04:40:47Z")

</div>

Thx, the first link confirm what I thought : there no “easy” way to replace Hubspot cookie banner.

I am prepared to use somme css, javascript to hide Hubspot cookie banner and “cookie banner api” to manage HubSpot cookies through the third-party banner.

Is there any way to attach the css and js files through API ?
