Integrating Cookie Control with the Hubspot CMS Platform

HubSpot users can seamlessly embed Civic Cookie Control using the platform’s built-in settings for custom code. This gives you control over cookie categories and consent behavior while maintaining compliance across all your HubSpot pages.
How to add Cookie Control with Hubspot CMS platform
Step 1: Access your website settings
In your HubSpot dashboard, go to Content > Website Pages

Select the page where you'd like to add the banner.
Step 2: Add the Cookie Control script
Navigate to Settings > Advanced.

- In the Footer HTML section, paste the following:
<!-- Latest Stable Version of Cookie Control core script -->
<script src="https://cc.cdn.civiccomputing.com/9/cookieControl-9.x.min.js" type="text/javascript"></script>
<!-- Cookie Control configuration -->
<script>
var config = {
apiKey: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
product: 'XXX'
};
CookieControl.load(config);
</script>

- Replace 'xxxxxxxx...' and 'XXX' with your license’s API key and product type.
Step 3: Save and verify
- Publish or preview your page to confirm the cookie banner is working as expected.
Need Help?
For full documentation on all configuration options, visit our official documentation: Cookie Control Available Options
If you encounter any issues or need support, please contact us via our help page: Cookie Control Support