Implementing Cookie Consent in Your Knowledge Base

Last updated: December 16, 2025

Overview

In some cases, you may need to get consent before setting certain cookies, like analytics cookies. Regulations like GDPR (EU) and CCPA (California) often require this for non-essential cookies.

This guide walks you through adding a cookie consent solution to your knowledge base.

Implementation guide

This guide provides instructions for using a dedicated third-party consent management platform (CMP) for cookies in your Pylon knowledge base. Popular CMP options include:

Disclaimer: These are third-party services. Pylon is not responsible for how they work or their availability. Your use of third-party services is subject to your agreement with the third-party provider.

Setup steps

1. Sign up with a consent management platform

Create an account with one of the services above and configure your preferences according to their documentation.

2. Generate your consent code

The CMP will provide you with a JavaScript snippet. This code displays the cookie banner and manages user preferences.

3. Add code to your knowledge base

  • Go to your Pylon knowledge base settings

  • Navigate to Knowledge Base > Code > Custom Code

  • Paste the consent script from the CMP at the top of the code editor

  • Make sure it appears before any existing analytics scripts

4. Configure cookie blocking

In your CMP, set it up to block certain cookies until users accept.

If it is functioning properly, the CMP should prevent these cookies from loading until the user opts in. Be sure to verify this is working correctly in line with your compliance requirements.

Global Privacy Control (GPC)

Some browsers let users broadcast their privacy preferences automatically through Global Privacy Control. This signal tells every website the user visits that they want to opt out of tracking. Certain privacy laws require respecting these signals, even if they override the user's previous consent choices on your site. Many modern CMPs can be configured to enable you to respect GPC signals. Check your CMP's documentation to confirm this feature is enabled and be sure to verify it is functioning correctly once configured.

Need help?

If you run into issues or have questions about cookie consent:

  • Contact our support team

  • Check the documentation for your CMP

  • Consult with legal counsel about compliance requirements in your jurisdiction