ampproject / ampproject/amp.dev
Example for Cookie consent with CCPA, GDPR, and other geo groups and multiple cookies for Analytics and features
- Dominant language
- HTML
- Stars
- 600
- Forks
- 675
- PR merge metrics
- No merged PRs in 30d
Description
## 🚀 Feature Request
It's so common scenario that it'd be good to have an example for a cookie consent, which:
1. Identifies EEA (GDPR) geo group
2. CCPA geo group
3. All other (maybe in that case still offer CCPA?)
The example would contain Google Analytics (or other analytics), Disqus comment sections or other amp-iframe.
### Problem
I have not been able to find a clear solution for these, and I have uncertainty what I'll patch together is good.
### Solution
I'd like to see an official solution.
### Alternatives
Could be also a blog post. It'd be best if the solution wouldn't require own hosted portions of the consent logic, but if that's the only way to handle cookie categories I'm highly interested.
### Additional information (optional)
I feel like since GDPR and CCPA are mandatory now, and majority of the websites use analytics and other features requiring cookies that it'd be best to have a pair official examples.
Contributor guide
Research direction
No files or tests are named. Start by reviewing the existing consent examples and the requested EEA, CCPA, and other geo groups, including Google Analytics and Disqus or amp-iframe integrations; done means an official example or blog post documents a complete solution without relying on privately hosted consent logic.
Written by the indexing model from the issue text.
Assessment
- Domain
- content, documentation
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100