How LiteConsent Works

From installation to full compliance in minutes. Here's what happens when you add LiteConsent to your website.

1

Auto setup, based on your site

Enter your website URL in the dashboard. LiteConsent scans the live site and does the heavy lifting: it detects cookies, tracking scripts, and third-party services, classifying each into consent categories. It also picks up your site's color palette and language to generate a banner that matches your branding out of the box. Within seconds you have a fully configured consent banner with categories, descriptions, and translations ready to go.

2

Install the script

Copy two lines into your website's <head>. The first is a config file compiled specifically for your site. The second is the consent runtime. Together they weigh under 10 KB gzipped and load without slowing down your page.

<script src="https://cdn.liteconsent.com/s/YOUR_SITE_ID/c.js"></script>
<script src="https://cdn.liteconsent.com/lc.js"></script>
3

Setup Assistant for complete coverage

The auto setup from Step 1 gives you a working banner immediately. The Setup Assistant is an optional but recommended step to catch everything the crawler missed. No crawler can detect every cookie on your site: it can't log in, go through checkout, click a chat bubble, or play an embedded video. Many cookies and scripts only appear during these interactions.

The Setup Assistant solves this. It opens your site with a lightweight scan script that watches you browse in real time. Walk through the flows your visitors actually use: log in, open a support chat, start a purchase, trigger a popup. Every cookie and third-party script that appears during your session is captured, classified, and turned into precise resource rules and cookie records. No bloated universal blocklist: only rules that match what actually runs on your site.

4

Show the right banner to the right visitor

LiteConsent detects each visitor's jurisdiction and displays the appropriate consent experience. EU visitors see a GDPR opt-in banner. California visitors see a CCPA opt-out notice. Visitors from regions without specific consent requirements see a minimal notice or no banner at all. The banner language matches the visitor's browser language automatically.

5

Collect and enforce consent

When the visitor makes a choice, LiteConsent records the consent and immediately enforces it. Accepted categories load their scripts, rejected categories stay blocked. The consent record is stored for compliance proof. Google Consent Mode v2 signals update automatically.

What happens under the hood

Script blocking

Before consent is granted, LiteConsent prevents non-essential scripts from executing. You can control scripts using markup mode (data attributes on script tags), resource rules (domain-based matching), or a combination of both.

Consent storage

Consent choices are stored in a first-party cookie on the visitor's browser. The cookie contains only the category choices and a timestamp. No personal data is stored in the cookie itself. A server-side consent log keeps the full audit trail.

Google Consent Mode v2

LiteConsent sets Google consent signals (analytics_storage, ad_storage, etc.) before Google tags load. When consent changes, it sends an update. This enables conversion modeling in Google Ads even without full consent.

Jurisdiction detection

The edge worker determines the visitor's country from their IP address at the CDN level. No personal data is sent to LiteConsent servers for geolocation. The jurisdiction determines which consent model (opt-in or opt-out) to apply.

Ready to get started?

Add cookie consent to your website in under 5 minutes.