Super Admins and users with permission to edit website settings can customize visitor cookie tracking and privacy policy banners to comply with EU cookie laws and the General Data Protection Regulation (GDPR).
A privacy alert allows visitors to opt in or opt out of being tracked in your HubSpot account with cookies. This feature works for all HubSpot pages as well as any external pages with your HubSpot tracking code installed.
Please note: while HubSpot has cookie tracking and privacy policy settings, your legal team is the best resource to give you compliance advice for your specific business circumstances.
HubSpot uses cookies to track your website visitors and contacts. A cookie is a small text file that is left behind on a visitor's browser when they come to your site. When the HubSpot software runs on your website, it leaves behind a cookie on your visitors’ browsers that helps HubSpot identify them on future visits.
If your business has a presence in Europe, or if you store any data on contacts in the European Union (EU), you must adjust your privacy policy to comply with EU laws. The EU has mandated that member countries create laws that require websites to gain consent from end users prior to storing data on a website visitor’s computer. These regulations are designed to help your website visitors protect their privacy and determine how their behaviors online are used by others.
Under the GDPR, if a contact of yours is an EU citizen, they must be given notice that you're using cookies to track them (in a language they can understand), and they need to consent to being tracked by cookies.
HubSpot allows you to set this privacy policy, show it to your visitors, and prompt them to consent to allow cookies to comply with EU regulations.
Please note: only Super Admins and users with permission to edit website settings can set up and edit cookie policies.
If you want to allow users to edit their consent, you can work with a developer to implement that functionality using the HubSpot Tracking Code API. Learn more about implementing additional consent status and cookie removal functions in the developers documentation.
If you want to allow users to revoke their consent for cookies installed by the cookie banner, check out the following steps to add a Remove cookies button.
Please note: if you're using the HubSpot ads tool to add a pixel to pages with the HubSpot tracking code, your privacy policy banner will automatically display when the pixel fires on your pages. If you require visitors to opt into cookie tracking, the pixel will not be able to place any cookies until the visitor confirms their consent.
You can choose to show different versions of your cookie consent message based on domains, subdomains, specific URL paths, or both domains and URL paths that you specify. For example, you can choose not to have an opt-in banner for your US site, and only require an opt-in banner for your EU site.
Please note: if a page URL matches multiple policy rules, the most specific rule will take priority (in order from most to least specific: (sub)domain and URL path, URL path, (sub)domain, then the default policy). For example, you may have three policies for the following domains and or URL paths: info.hubspot.com, info.hubspot.com/fr, and /fr. A visitor to info.hubspot.com/fr/offer will see the info.hubspot.com/fr policy, while a visitor to info.hubspot.com/fr will see the policy for the /fr URL path.
If you want to allow users to edit their consent, you can work with a developer to implement that functionality using the HubSpot Tracking Code API. Learn more about implementing additional consent status and cookie removal functions in the developers documentation.
If you want to allow users to revoke their consent for cookies installed by the cookie banner, check out the following steps to add a Remove cookies button.
Please note: if you're using the HubSpot ads tool to add a pixel to pages with the HubSpot tracking code, your privacy policy banner will automatically display when the pixel fires on your pages. If you require visitors to opt into cookie tracking, the pixel will not be able to place any cookies until the visitor confirms their consent.
Customize the colors and style of your cookie policy banner.
To add a "Remove cookies" button to that page for users to revoke their cookie consent to the cookies implemented or loaded by the cookie policy banner:
If you want to install the code on all pages, most content management systems can install code to all pages on your site, such as a footer file that is referenced across all pages. In HubSpot, you can add the code to the footer HTML of all pages on a specific domain. Please check with your developers on how they can help do this on external sites.
If a visitor accepts your privacy policy, you can track them with the cookie settings you've set up in your account. If a visitor declines your privacy policy, they will not be tracked with cookies.
Please note: this cookie policy banner controls:
If your HubSpot cookie banner is set to require opt-in, these scripts will not load until the visitor accepts the HubSpot cookie banner. HubSpot is unable to control the cookies placed by other scripts on your website. Learn more about using the banner for third-party scripts.
To view a single contact's interaction with the cookie policy banner:
To create a list of contacts who've had a certain interaction with the cookie policy banner: