How to Add a Cookie Policy to HubSpot
Last updated on November 24, 2026
On this page
Prerequisites
After sign-up, you are directed to the installation screens. Install the cookie banner to support GDPR compliance for your use of cookies. To create a cookie policy first, skip the installation and go to the CookieYes Dashboard.
Generate a Cookie Policy in CookieYes
Step 1: Access the cookie policy generator

Step 2: Configure language settings

Step 3: Add about cookies details

Step 4: Add use of cookies details

Step 5: Review and edit types of cookies

Step 6: Set cookie preferences and generate the policy

The Revisit consent widget enables your website visitors to manage their cookie preferences. You can remove the code in the field if you don’t want a widget to be displayed.
Add the Cookie Policy to HubSpot

Option 1: One-click install (recommended)
Step 1: Select One-click install
Step 2: Create a policy page in HubSpot
- Log in to your HubSpot account.
- Go to Content > Website Pages.

- Click Create a website page, then select Start with blank page.

- Click Edit manually.
- In the top-right corner of the page editor, click Settings.
- On the General tab, enter Cookie Policy in Internal page name and Page title.
- In Page URL, enter cookie-policy in Content slug.

- Copy the URL of the cookie policy page and paste it into the CookieYes web app.

Step 3: Embed the policy code
- In the page editor, click + Add section.

- Select Blank layouts > 1-column layout.

- In the section, click + (Add), select Rich Text, then drag the module into the section.

- In the Rich Text module toolbar, go to Advanced > Source code.
- Paste <div id="cky-auto-cookie-policy"></div> into the source code window, then click Save changes.

- Click Publish.

Step 4: Publish and verify
- Return to the CookieYes web app.
- Click Publish cookie policy.

- Open the live cookie policy page on your HubSpot website.
Option 2: Hosted URL
Step 1: Copy the hosted URL
If someone else manages your website, click Send URL to a teammate to share the link with them.
Step 2: Add the link to HubSpot
- Log in to your HubSpot account.
- In the top navigation bar, click the Settings icon.
- In the left sidebar, go to Content > Navigation menus.

- Select your footer menu.
- Click Add menu item > Add URL Link. Enter Cookie Policy as the label, select URL, then paste the hosted URL.
- Click Save.

Option 3: Code snippet
Step 1: Copy the code snippet
If someone else manages your website, click Send code to a teammate to share the code with them.
Step 2: Create a policy page in HubSpot
- Log in to your HubSpot account.
- Go to Content > Website Pages.

- Click Create a website page, then select Start with blank page.

- Click Edit manually.
- In the top-right corner of the page editor, click Settings.
- On the General tab, enter Cookie Policy in Internal page name and Page title.
- In Page URL, enter cookie-policy in Content slug.

Step 3: Embed the policy code
- In the page editor, click + Add section.

- Select Blank layouts > 1-column layout.

- In the section, click + (Add), select Rich Text, then drag the module into the section.

- In the Rich Text module toolbar, go to Advanced > Source code.
- Paste the JavaScript snippet into the source code window, then click Save changes.

- Click Publish.

Option 4: HTML format
Step 1: Copy the HTML
If someone else manages your website, click Send code to a teammate to share the code with them.
Step 2: Create a policy page in HubSpot
- Log in to your HubSpot account.
- Go to Content > Website Pages.

- Click Create a website page, then select Start with blank page.

- Click Edit manually.
- In the top-right corner of the page editor, click Settings.
- On the General tab, enter Cookie Policy in Internal page name and Page title.
- In Page URL, enter cookie-policy in Content slug.

Step 3: Add the HTML
- In the page editor, click + Add section.

- Select Blank layouts > 1-column layout.

- In the section, click + (Add), select Rich Text, then drag the module into the section.

- In the Rich Text module toolbar, go to Advanced > Source code.
- Paste the HTML into the source code window, then click Save changes.

- Click Publish.

To remove the Cookie Policy heading at the top of the page, delete the following line from the HTML code: <h1 class="cookie-policy-h1">Cookie Policy</h1>
Frequently asked questions
- What should I do if my cookie policy does not appear on my website?Check that the policy is added correctly for the method you used:
- One-click install: Make sure the CookieYes banner script is active, and the policy page URL in CookieYes is correct.
- Hosted URL: Make sure the link on your website matches the URL from CookieYes.
- Code snippet or HTML format: Make sure the full code is pasted in your editor’s HTML view.
- How can I update my cookie policy if it shows outdated cookies or no cookies?Scan your website again. If you’re still creating your policy, click Scan again on the Types of cookies page. If it’s already published, go to Cookie Manager and click Scan now.Your policy updates automatically. If you used the HTML format, republish it and replace the code on your website.
- How can I change the language of my cookie policy?If you’re still creating your policy, select your language in the Configure language settings step. If it’s already published, click Edit policy, change the language, and republish.
If you used the HTML format, select the language when copying the code, then replace the code on your website.
The generated policy is not legal advice, so review it against your data practices and applicable laws before publishing.



