Search docs…

This guide explains how to handle user consent in line with GDPR and CCPA.

1. Introduction

Always get explicit consent before collecting or sharing personal data.

2. Obtaining User Consent

To obtain consent:

  • Explain what data you collect and why.

  • Let users accept or decline.

3. Storing and Managing Consent

Store consent securely:

  • Link records to user accounts.

  • Let users review their preferences.

4. Revoking Consent

When a user revokes consent:

  • Stop processing their data.

  • Confirm the change to the user.

5. Best Practices
  • Ask for consent per purpose.

  • Protect consent data from tampering.

6. Code Snippets
// Ask the user for consent
function obtainConsent() {
    return confirm("Do you consent to share your data?");
}
7. Additional Resources

That's it! Contact our support team if you need help. Happy coding!

Create a free website with Framer, the website builder loved by startups, designers and agencies.