×

Hupspot cookie consent setup guide

Configure Cookiebot Consent Tracking in Hubspot

Managing cookies and user consent correctly in Hubspot is essential if you want accurate analytics while respecting privacy regulations. This guide walks you through connecting the Cookiebot integration, configuring consent categories, and ensuring your existing tracking setup keeps working smoothly.

What the Cookiebot–Hubspot Integration Does

When you connect Cookiebot to Hubspot, the integration controls when Hubspot cookies and scripts are allowed to run based on the visitor's consent choice. This helps you align your marketing tracking with GDPR, ePrivacy, and similar regulations.

The integration can:

  • Block Hubspot cookies and tracking scripts until consent is granted.
  • Respect the user's selected cookie categories (e.g., necessary, preferences, statistics, marketing).
  • Allow or restrict Hubspot tracking tools such as analytics, chat widgets, and forms.

Before starting, make sure you already have an active Cookiebot account and have embedded the Cookiebot script on your website.

Requirements Before Connecting Cookiebot to Hubspot

To use Cookiebot with your Hubspot account, you should confirm the following points first:

  • You have admin access to your Hubspot portal.
  • You have admin access to your Cookiebot account.
  • Your website is already scanned and configured in Cookiebot.
  • The global Cookiebot script is installed on your site or in your tag manager.

Once these are in place, you can safely proceed to connect both platforms.

How to Connect Cookiebot in Your Hubspot Account

Follow these steps to enable the integration from inside Hubspot.

Step 1: Open Your Hubspot Settings

  1. Log in to your Hubspot account with an admin user.
  2. Click the settings icon in the main navigation.
  3. Go to the section where integrations and connected apps are managed.

Your exact navigation labels may vary slightly depending on your Hubspot subscription and interface updates, but you are looking for the area that lists installed apps or integrations.

Step 2: Find and Install the Cookiebot–Hubspot App

  1. In the integrations area, open the app marketplace from your Hubspot portal.
  2. Search for Cookiebot using the search bar.
  3. Select the Cookiebot integration listing.
  4. Click the option to install or connect the app to Hubspot.

Hubspot will then redirect you to a standard authorization flow where you approve permissions for the Cookiebot app.

Step 3: Authorize Access Between Cookiebot and Hubspot

  1. Review the list of permissions that Cookiebot is requesting in Hubspot.
  2. Confirm that the requested permissions match what you expect for cookie and consent management.
  3. Click the button to grant access and complete the connection.

After you approve access, you will be taken back to your Hubspot portal, and the Cookiebot integration will appear as a connected app.

Configure Consent Categories for Hubspot Scripts

Once the connection is active, you need to align your tracking scripts and cookies with the correct consent categories so Hubspot only runs them at the right time.

Map Hubspot Tracking to Cookie Categories

In general, you will want to:

  • Classify essential Hubspot features (such as necessary form cookies) as strictly necessary within Cookiebot.
  • Place analytics tracking related to Hubspot into "statistics" or "preferences" categories as appropriate.
  • Assign advertising or remarketing-related tools you run through Hubspot to the "marketing" category.

Make these assignments in your Cookiebot configuration so that each Hubspot-related script is associated with the right consent level.

Update Script Tags for Hubspot Tracking

If you load any Hubspot scripts manually on your site, they may need to be modified to respect Cookiebot consent. Typical adjustments include:

  • Replacing standard <script> tags with <script type="text/plain" data-cookieconsent="category"> as instructed by Cookiebot, where category matches the category you selected.
  • Ensuring that Hubspot analytics or tracking codes are wrapped in Cookiebot's recommended markup so they only fire after consent.

For detailed technical guidance on the exact script attributes Cookiebot expects, consult the official setup instructions on the source page at Hubspot's Cookiebot integration article.

Verify the Cookiebot Integration in Hubspot

After you have mapped your scripts and categories, you should test your implementation to confirm that Hubspot respects user consent properly.

Test User Consent Flow

  1. Open your website in a fresh browser session or incognito window.
  2. Wait for the Cookiebot banner to appear and review the options.
  3. Decline all non-necessary cookies.
  4. Confirm that Hubspot analytics or marketing cookies are not set.
  5. Reload the page and accept all or specific categories.
  6. Check that the relevant Hubspot scripts now fire and corresponding cookies are created.

This test helps you verify that the connection between Cookiebot and your Hubspot tracking is operating as intended.

Monitor Hubspot Analytics After Deployment

Once the consent setup is live, keep an eye on your analytics data inside Hubspot. You may see changes in traffic counts because tracking now depends on user consent. When monitoring:

  • Compare pre-consent and post-consent tracking periods.
  • Adjust your reporting expectations to factor in opt-outs.
  • Use trends instead of raw visit counts when analyzing Hubspot performance.

Troubleshooting Cookiebot with Hubspot

If the integration does not behave as expected, there are common areas to review.

Check Script Order and Placement

Confirm that:

  • The global Cookiebot script loads before any Hubspot scripts that rely on consent categories.
  • Hubspot tracking codes are not hard-coded in a way that bypasses Cookiebot's consent control.
  • Your tag manager is not firing Hubspot tags regardless of cookie categories.

Confirm Consent Categories in Hubspot Context

Revisit your Cookiebot configuration and make sure each Hubspot-related script is assigned to the correct category. A wrong category can cause tracking to be blocked even when visitors have opted in, or to run when they have opted out.

Reauthorize or Reinstall the Integration

If you suspect a connection problem between Cookiebot and Hubspot:

  • Open the connected apps section in Hubspot.
  • Locate the Cookiebot integration.
  • Disconnect and then reconnect it, following the same authorization steps as before.

This can resolve issues caused by expired or revoked permissions.

Best Practices for Cookie Compliance in Hubspot

Beyond the basic setup, use these practices to keep your Hubspot implementation compliant and effective:

  • Regularly rescan your site in Cookiebot to detect new Hubspot scripts or third-party tools added via your portal.
  • Document which Hubspot features rely on non-necessary cookies (for example, certain analytics or ads integrations).
  • Update your privacy policy to mention both Cookiebot and Hubspot as part of your marketing stack.
  • Train your team so they understand how adding a new script in Hubspot might affect consent requirements.

Get Additional Help with Hubspot and Cookiebot

If you need strategic or technical assistance beyond the standard integration steps, consider working with a specialist agency that understands both privacy and marketing automation in Hubspot.

You can explore expert consulting services at Consultevo, where teams experienced in marketing automation and consent management can help you design a scalable setup.

For the most accurate, up-to-date product instructions, always refer to the official documentation at Hubspot's Cookiebot integration guide. Combining that documentation with the steps in this article will help you maintain a compliant, reliable consent strategy across your Hubspot environment.

Need Help With Hubspot?

If you want expert help building, automating, or scaling your Hubspot , work with ConsultEvo, a team who has a decade of Hubspot experience.

Scale Hubspot

“`

Verified by MonsterInsights