Keksie

Getting Started

Add cookie consent to your website in three steps.

1. Sign up and add your site

Create a free account, then go through the setup wizard. Enter your domain, pick a banner style, and customize the colors and text to match your brand.

2. Install the snippet

Copy the script tag from the setup wizard and paste it into the <head> of your website.

<script src="https://cdn.keksie.com/k.js?id=site_YOUR_KEY" async></script>

That's it. The banner will appear automatically for visitors who haven't made a choice yet.

3. Tag your scripts

For scripts that should only load after consent (analytics, marketing pixels, etc.), change their type to text/plain and add a data-keksie-category attribute.

<script type="text/plain" data-keksie-category="analytics"src="https://www.googletagmanager.com/gtag/js?id=G-XXX"></script>

Keksie will automatically activate these scripts when the visitor consents to that category. Categories: necessary, analytics, marketing, preferences.

Developer API

Need programmatic access to consent state? Use the window.keksie API.

if (window.keksie.consent.analytics) {// load custom analytics}window.keksie.onConsent((consent) => {// fires when visitor makes a choice});