HubSpot consent banner | Frequently asked questions
Last updated: February 2, 2024
Find answers to the most commonly asked questions about website consent management tools in HubSpot.
How does HubSpot track website visitor activity?
Please note: while HubSpot provides cookie tracking and consent banner tools, your legal team is the best resource to give you compliance advice for your specific business circumstances. In addition, while these features help to enable compliance, there's no one solution that fits every situation. Learn more in the HubSpot GDPR Playbook.
What's the difference between first-party and third-party cookies?
First-party cookies are set and stored by a website's domain. Often times, these cookies are used to collect analytics data, remember language settings, or store shopping cart contents. Information collected by first-party cookies doesn't leave the website.
Third-party cookies are set by a server outside of the website's domain and are commonly associated with website functionality and ad targeting. Information collected by third-party can be used by companies outside of the website you're visiting.
Are HubSpot's cookies first-party or third-party?
The HubSpot tracking code script drops first-party cookies. Though the HubSpot tracking code collects data to personalize the site visitor's experience, the data is not shared across websites and it belongs only to your HubSpot account.
Learn more about which cookies HubSpot sets in a visitor's browser.
Why is my consent banner not appearing on my external page?
For HubSpot's consent banner to manage cookies on an external page, your website needs to have the HubSpot tracking code installed. If your account was created after November 2022, you'll first need to add your external domain to your consent management settings.
Why is my consent banner appearing in an iframe?
A consent banner that is configured to target all URLs will load on all pages that contain your HubSpot tracking code. Because an iframe embeds a page within another page, an iframe embedded page with the tracking code is expected to load the consent banner too.
You can resolve this by configuring your consent banner to only appear on specific domains and URLs. Alternatively, you can remove the HubSpot tracking code from the page being loaded in the iframe. Be aware that removing the tracking code will remove tracking capabilities from that page if it's being used elsewhere outside of the iframe.
Why is my consent banner reappearing after accepting/declining?
This issue may occur for a couple reasons:
- The visitor may be using a browser setting or extension to automatically clears cookies, which may be removing the consent banner preference cookies.
- If you're embedding a page with an iframe, the SameSite flag restricts the iframe page from being able to read or set cookies on its domain when it differs from the parent page's domain. As a result, HubSpot will be unable to store the banner preference selected in the iframe.
How can I manage HubSpot cookies with a third-party cookie banner?
Unless you're using the Cookiebot integration, managing HubSpot cookies with a third-party banner requires a custom developed setup, such as:
- Using the cookie banner API to manage HubSpot cookies through the third-party banner.
Why are HubSpot cookies loading without accepting cookie consent?
Learn more about customizing your consent banner's settings.