🍪 OpenConsent v2 - Basic Example

Welcome to the Basic Example

This page demonstrates the basic usage of OpenConsent v2, a lightweight GDPR-compliant Consent Management Platform.

Features demonstrated:

Test the CMP

Use these buttons to test the consent management functionality:

Implementation

Here's how this example is implemented:

<!-- OpenConsent v2 CMP - Must be placed immediately after <title> --> <script src="../dist/cmp.min.js" data-site-id="demo-site-001"></script> <script> window.RSCMP.init({ siteId: 'demo-site-001', apiUrl: 'http://localhost:3000', config: { /* ... */ } }); </script> <!-- Blocked scripts with data-category --> <script type="text/plain" data-category="analytics"> // Your analytics code here </script>

Next Steps

📊 Consent Status