HubSpot

This guide explains how to integrate the Openli cookie widget on a site that is hosted by HubSpot.

Requirements

  1. A Openli cookie widget, with a published cookie policy, ready to install

  2. A website hosted on HubSpot

Integrating Openli on a HubSpot-hosted site

HubSpot do not currently provide an adequate way for us to communicate consent status to their own platform, so you must activate HubSpot's built-in cookie-consent banner. Openli's cookie widget will then use this behind the scenes, supplementing our own consent management, and providing the best current level of integration with HubSpot.

HubSpot have a general guide to enabling their banner here, and your cookie-banner settings should look like this:

Step 2: Add code to your site to integrate Openli and HubSpot

Add this code to the head (not the footer) of your site, following HubSpot's general guide:

Add code like this, from your cookie-widget settings, to the footer (not the head, unlike before) of your site, following HubSpot's general guide again:

The approach used in the guide is very similar to HubSpot's own recommendation for integrating third-party cookie-consent solutions like Openli. We therefore expect HubSpot to continue to support it, but all changes they make are outside our control.

Last updated