Prompt
How do I manage cookie consent across multiple websites?
Latest observation
Managing cookie consent across multiple websites is mostly about consistency, governance, and technical implementation. The right setup depends on whether the sites are all owned by you, whether they share the same domain, and whether you want consent to persist across them.
1. Decide your consent model
You generally have 3 options:
A. Separate consent per website
Best when the sites are unrelated or have different legal/entity ownership.
- Each site shows its own banner
- Consent is stored per domain
- Simplest from a privacy/compliance perspective
B. Shared consent across related sites
Best when multiple sites are part of one brand/ecosystem and you want a consistent user experience.
- Use a central consent platform or shared logic
- Consent can sometimes be synced across subdomains
- Often requires careful domain and legal setup
C. Centralized consent management platform (CMP)
Best for larger organizations.
- One CMP manages banners, preferences, logs, and vendor consent
- Easier reporting and policy updates
- Supports geolocation rules, A/B tests, and audit trails
2. Use a Consent Management Platform
A CMP helps you handle:
- Banner display
- User preferences
- Consent logging
- Regional rules like GDPR/UK GDPR/CCPA
- Vendor script blocking until consent is given
Popular CMPs include:
- OneTrust
- Cookiebot
- Quantcast Choice
- Didomi
- TrustArc
If you have multiple websites, a CMP can keep settings and policy language aligned.
3. Store consent appropriately
For one site
Store consent in a cookie or localStorage on that domain.
For subdomains of the same root domain
You can often share consent by setting the cookie domain to the parent domain, like:
example.comshop.example.comblog.example.com
Then the consent cookie can be set for .example.com, depending on browser/security rules.
For different root domains
You usually cannot directly share cookies across domains like:
site-a.comsite-b.com
Instead, use:
- A centralized CMP
- A user account system with consent preferences
- A backend consent profile tied to login
- A cross-domain consent handoff flow, if legally and technically appropriate
4. Block tags until consent is granted
Make sure analytics, ads, and tracking scripts do not run before the user opts in where required.
Common approaches:
- Tag managers with consent features
- Script blockers
- CMP auto-blocking
- Custom logic that only loads scripts after consent
For example:
- Essential cookies: allowed by default
- Analytics cookies: wait for opt-in
- Marketing cookies: wait for opt-in
5. Keep a consent record
For compliance, it’s useful to log:
- Consent status
- Timestamp
- Website/domain
- Categories accepted or rejected
- Policy version shown
- Country/region if relevant
This is especially important for audits and legal defense.
6. Let users change preferences easily
Across all websites, users should be able to:
- Reopen the cookie settings panel
- Withdraw consent
- Update categories
- See your privacy/cookie policy
A common pattern is a “Cookie Preferences” link in the footer.
7. Handle regional rules
Different rules may apply depending on where the visitor is:
- EU/UK: opt-in required for non-essential cookies
- California/US privacy laws: notice and opt-out rights may apply
- Other jurisdictions may have their own requirements
Many CMPs can show different banners by region.
8. Standardize categories across sites
To reduce confusion, keep the same categories everywhere:
- Necessary
- Preferences
- Analytics
- Marketing
Also keep:
- Similar wording
- Same button behavior
- Same vendor list structure
9. If you need cross-site consent sharing, plan carefully
If your websites are on different domains and you want to share consent, you may need:
- A unified privacy policy approach
- Legal review
- An authenticated user flow
- A consent service storing preferences server-side
Be careful: consent on one site may not automatically count for another unless the notice, controller, and purpose details are aligned and your legal basis supports it.
10. Practical recommendation
For most organizations:
- Use a CMP
- Keep banners consistent across sites
- Store consent per domain unless you have a clear reason to share it
- Share consent only across subdomains when appropriate
- Log consent centrally
- Make withdrawal easy
If you want, I can also help you with:
- a technical architecture for multiple websites,
- a cookie consent implementation example (JavaScript / React / GTM),
- or a privacy-compliance checklist for multi-site consent.