Cross-domain Consent

Share consent preferences across subdomains or even entirely separate domains, so visitors only need to consent once.

Subdomain sharing

If your site spans multiple subdomains (e.g. www.example.com, app.example.com, blog.example.com), you can share consent across all of them by setting the cookie domain.

In the General tab of your site settings, set the cookie domain to your root domain (e.g. example.com). LiteConsent stores the consent cookie on the root domain so it's accessible from all subdomains.

Multi-domain sharing

For entirely separate domains (e.g. example.com and example.de), LiteConsent supports multi-domain consent sharing. This works by syncing consent state through the LiteConsent API.

To set this up:

  1. In the General tab of your site settings, use the Join group feature to link this site to a domain group.
  2. All sites in the same group share consent automatically.

When a visitor consents on one domain, their consent is recorded to the database. On init for a linked site, the server derives a visitor ID from IP, user agent, and a salt, then looks up existing consent from any linked site and applies it automatically.