Klickbee Tracking Help

Consent banner

Show a cookie-consent banner generated by Klickbee Tracking, so your ad pixels load only after the visitor accepts. Settings, what visitors see, and how it works with your own banner.

The consent banner is a cookie banner that Klickbee Tracking generates for you. It holds back every ad pixel you added in Klickbee Tracking (Meta, Google Ads, LinkedIn, custom snippets) until the visitor clicks Accept all. You set it up in the dashboard, with no code to write, and it is available on the Free plan.

What it covers, and what it doesn't

  • Covered: every pixel you manage on the Pixels page, the browser-side conversions sent through them and, from tracker 0.6.11, the server-side conversions Klickbee sends to Meta and Google Ads: a visitor who refused, or has not answered yet, produces none (see Conversion debugger).
  • Not affected: Klickbee's own audience measurement. It is cookieless, so it keeps running whatever the visitor answers. (If your site uses requireConsent, that setting still applies as before: see below.)
  • Not covered: any other tool on your site, such as Google Tag Manager, a chat widget or embedded videos. Klickbee does not block or signal them. You stay responsible for those.

Off by default

Nothing changes on your site until you switch the banner on. While it is off, your pixels load as they do today. Your obligations remain yours: see Privacy and consent.

Turn it on

  1. Open Pixels in the sidebar, then the Consent banner tab.
  2. Check Show the consent banner on my site.
  3. Adjust the settings below and click Save.

The banner appears once your site has at least one enabled pixel to gate. If there is none yet, the page says so. The banner is delivered with your pixel list: there is nothing to add to your site, and it shows from the visitor's next page load.

Owners and admins can edit these settings. Other members see them read-only.

SettingWhat it does
PositionBar at the bottom (full width), Bottom left or Bottom right (a card).
ThemeLight, Dark or Match the visitor's system.
Button colourThe colour of the Accept all and Refuse all buttons, which always share the same style. Their text colour is picked automatically (white or dark) for contrast, unless you set one under Colours.
ColoursButton text colour, Background colour and Text colour. Each one is on Automatic by default (it follows the theme, or for the button text, whichever of white or dark contrasts more). See below.
Privacy policy linkOptional. A link to your policy, shown in the banner. It must start with http:// or https://. It is also the page used for languages without their own link: see Links per language.
Cookie declaration linkWhere the banner's Cookie declaration link points: Hosted cookie declaration (the default, the cookie declaration Klickbee generates, in the banner's language), My own cookies page, or No link (only possible with a privacy policy link, because the banner must always link at least one information page).
Show a small "Cookies" button so visitors can change their choiceAdds a floating Cookies button after the visitor has answered, to reopen the banner.

Colours and contrast

Under Colours, you can replace the automatic colours with your own:

  • Button text colour: the text of Accept all and Refuse all.
  • Background colour and Text colour: the banner itself. A custom background or text colour applies in light and dark mode alike, including with Match the visitor's system. Borders and secondary text are derived from them.

Leave a colour on Automatic to keep following the theme. Under the colours, a contrast readout shows Button text on button colour and Text on background as a ratio. Below 4.5:1, the minimum for readable text, it warns you that some visitors may struggle to read the banner. You can still save.

A Preview next to the settings shows your unsaved changes, in English, French or Spanish, in light or dark, and in its three states: the banner, the Customize panel, and the page after a choice. Switch Device between Desktop and Mobile to see the compact banner phones get (see On small screens).

On a multilingual site, link each visitor to the policy and cookies page in their language:

  1. Fill in the Privacy policy link (and, with My own cookies page, the Cookies page link). This is the default page.
  2. Open Different page per language under it and fill in the English, French or Spanish page. Leave a language empty to use the default link.
  3. Or click Find translations: Klickbee reads the default page and fills in the translated versions it declares (hreflang links). Languages filled this way are marked Found automatically; languages that already have a link are never overwritten. Check them, then click Save.

The button needs an https:// link. If the page declares no translations, add them by hand. The banner always links the page of the language it is shown in.

What visitors see

The banner offers three buttons:

  • Accept all: the pixels load.
  • Refuse all: nothing loads. This button is exactly as visible as Accept all.
  • Customize: opens an Advertising switch, off by default, with the platforms listed by name (for example Meta (Facebook/Instagram), Google Ads, LinkedIn). The visitor saves their choice with Save my choice.

Other details:

  • Language. English, French or Spanish, taken from your page's <html lang>, otherwise the visitor's browser language, otherwise English.
  • Closing without choosing (the × or the Escape key) counts as no consent: no pixel loads, and the banner is shown again on the next page view.
  • The choice is kept for 6 months in the visitor's browser (local storage, key kb_pixel_consent), then asked again. Storing the choice itself needs no consent.
  • Cookie declaration. The banner shows a Cookie declaration link, next to your privacy policy link if you set one. By default it opens your site's hosted cookie declaration in the banner's language; you can point it to your own cookies page or remove it (see the Cookie declaration link setting).
  • Reopening. The Cookies button, if you left it on, lets visitors change their mind. If they switch from accepted to refused, browser-side pixel conversions stop at once. A tag that is already on the page cannot be removed until the next page load, where it is no longer loaded.

On small screens

On a screen up to 640px wide or 700px tall (phones, and short laptop windows), the banner turns compact, so it covers at most about 30% of the screen:

  • a shorter text that still names every platform, with the links inline;
  • Refuse all and Accept all side by side, with large tap areas, and Customize still available. The choices are exactly the same as on desktop;
  • on phones, Bottom left and Bottom right become a full-width bar at the bottom;
  • the Customize panel scrolls inside at most 70% of the screen.

This needs tracker version 0.6.11 or later.

When visitors are asked again

Besides the 6-month expiry, everyone is asked again when the banner version changes. The version goes up when:

  • you enable a pixel for a new platform. Disabling a pixel and enabling it again counts, because the platform was removed from the list in between;
  • you click Ask visitors again (under Asking again) and confirm. Use it after you change your policy or how you use data.

Removing a pixel, or changing the look of the banner, does not ask again. The current version is shown on the settings page.

Add a "Cookie settings" link to your footer. With the script tag:

<a href="#" onclick="klickbee.openConsentBanner(); return false">Cookie settings</a>

With the npm package, using the client from useTracking():

tracking.openConsentBanner();

It does nothing when the banner is off. If you call it before the pixel list has arrived, the banner opens as soon as it does.

If you already have your own banner

The built-in banner and requireConsent / grantConsent() (see Privacy and consent) work together without surprises:

  • If your site uses requireConsent with its own banner, Klickbee does not show its banner until grantConsent() is called, and once it was called the built-in banner is not shown. grantConsent() also counts as consent for the pixels, as before.
  • The built-in Accept all grants consent to the pixels only. It never starts analytics under requireConsent: that stays your site's decision.

Switching to the built-in banner? Klickbee's own measurement needs no consent, so you can remove requireConsent (or data-require-consent) and your own banner's call to grantConsent(), unless that banner also serves other tools on your site.

Each answer is logged so you can show it and measure it. The log is anonymous: it holds only the choice (accepted or refused), the banner version and the date. There is no IP address, no visitor id and no user agent. Entries are deleted after 13 months.

The Visitor answers card on the settings page shows, for the date range you pick, the number of Accepted and Refused answers and the Acceptance rate. Closing the banner without choosing is not logged.

Tracker version

The banner needs tracker version 0.6.7 or later. The custom colours and the Cookie declaration link need 0.6.9 or later. Links per language and the Cookie declaration link setting need 0.6.10 or later, and the compact banner on small screens 0.6.11 or later.

  • Script tag: nothing to do, you get it automatically.
  • npm package: run npm i @klickbee-agency/tracking@latest and redeploy.

Test it

Open your site in a private window: the banner should appear. Before you click, no pixel request should leave the page. Add ?kb_pixel_debug to the URL to open the pixel debugger, which says that pixels are waiting for the consent banner, or that the visitor refused. See Ad pixels.

On this page