Guides
The docs tell you what. The guides tell you why and how. Each guide is a narrative walkthrough — context first, then steps, then common mistakes. Pick a topic below to get started.
Learn
Frontend — @consenti/ui
Minimal Setup
Get a consent banner on screen in under 5 minutes — no backend required.
How Consent Flow Works
Follow a consent decision from first visit all the way to cookie and event.
How Auto-Detection Works
Understand the three scenarios Consenti uses to resolve the right compliance group.
Framework Integrations
Complete working snippets for React, Next.js, Vue 3, Angular, and Vanilla JS.
GTM & Google Consent Mode v2
Wire Consenti to GTM and push consent signals to your dataLayer automatically.
Adobe Analytics & Experience Platform
Read Adobe-shaped consent and wire it to Launch, AppMeasurement, or the Web SDK.
Meta Pixel & Conversions API
Sync the fbq consent flag and gate what you forward to the server-side CAPI.
Microsoft Clarity
Gate session recordings and heatmaps behind analytics consent.
Twilio Segment
Gate identify, page, and track calls independently instead of an all-or-nothing switch.
Hotjar & Others
Tools with no dedicated vendor format — pick the right getConsent() call and gate the script.
Custom Themes & Dark Mode
Override CSS tokens, swap themes at runtime, and toggle dark mode.
Backend — @consenti/api
Minimal Setup
Mount the Consenti API on any Node.js framework in minutes.
How Consent Flow Works
Trace a consent record from HTTP POST through storage to GDPR erasure.
Geo-Routing & Auto-Detection
How Consenti maps a visitor's IP and timezone to the right compliance group.
Choosing a Storage Driver
Compare JSON, SQLite, PostgreSQL, MySQL, and MongoDB — and when to use each.
Auth Modes
Local passwords for dev, JWT for API consumers, OIDC/SAML for enterprise SSO.
Server-Side Enforcement
Gate a tag, pixel, or backend event pipeline on real consent — including an edge-worker example.
Webhook Integration
POST consent decisions to your own webhook URL using the existing eventBus — no new package.
Policy & Rules Engine Mapping
How compliance groups, geo-resolution, and multi-tenancy map onto "policy by regulation/region/site" language.
Hot Topics
Google Consent Mode v2 Explained
What the seven consent signals mean, and basic vs. advanced mode.
GDPR vs DPDPA
Where the EU and India opt-in laws agree — and where they don’t.
DPDPA Cookie Compliance Guide
A practical checklist for an India-compliant opt-in banner.
CPRA Implementation Guide
Do Not Sell/Share, GPC auto-honour, and sensitive data opt-in.
Right to Erasure ("Right to Be Forgotten")
The erasure endpoint, the preference modal's "Forget me" button, and what events fire.
Google Consent Mode for GTM
Configuring consent checks and triggers inside the GTM console.
Self-hosting a CMP
The four pieces a self-hosted consent stack actually needs.
Open-source alternatives to OneTrust
Scoped to the cookie consent module, not the full GRC suite.
Open-source alternatives to Cookiebot
Self-hosted options compared feature-for-feature.
Looking for API reference tables, configuration options, and type definitions? Head over to the Documentation section.