Quick Start
This guide walks you through installing the eConsent tracker on your website and capturing your first consent certificate.
Getting Started with eConsent
Step-by-step walkthrough of creating your account, adding a property, installing the tracker, and capturing your first certificate.
~5 minPrerequisites
Section titled “Prerequisites”- An eConsent account (sign up at econsent.org)
- Your Company ID and Property ID (found in the dashboard under Settings)
- Access to your website’s HTML or Google Tag Manager
-
Create a property in the dashboard
Log in to app.econsent.org and navigate to Properties. Create a new property by entering your website’s domain (e.g.,
https://example.com). Save the property to receive your unique Property ID. -
Install the tracker script
Add the eConsent tracker to your website. Replace
COMPANY_IDandPROPERTY_IDwith your actual values.- Open your GTM container and create a new Custom HTML tag.
- Paste the following code:
<script src="https://d13jv0uulndum1.cloudfront.net/cdn/tracker.min.js"data-company="COMPANY_ID"data-property="PROPERTY_ID"></script>- Set the trigger to All Pages (or limit to pages with consent forms).
- Publish the container.
Add the following script tag to the
<head>section of every page that contains a consent form:<script src="https://d13jv0uulndum1.cloudfront.net/cdn/tracker.min.js"data-company="COMPANY_ID"data-property="PROPERTY_ID"></script> -
Tag your consent elements
Add
data-consent-typeattributes to your consent language and checkboxes:<!-- Primary consent language (always visible) --><p data-consent-type="main-implied">By submitting this form, you consent to receive marketing communications.</p><!-- Primary opt-in checkbox --><input type="checkbox" data-consent-type="main-explicit" /><!-- Add a hidden field to receive the certificate ID --><input type="hidden" id="econsent_hidden" name="econsent_hidden" value="">The tracker automatically populates the hidden field with the certificate ID on form submission.
-
Verify the installation
Open your website in a browser and submit a test form. Then:
- Check the browser console for eConsent initialization messages.
- Look for the
econsent_sessionandeconsent_certificatecookies. - In the eConsent dashboard, navigate to Certificates to see your first captured consent event.
-
Configure verification (optional)
To verify certificates programmatically, call the Verification API:
Terminal window curl -X POST https://api.econsent.org/api/verify/match \-H "Content-Type: application/json" \-d '{"certificate_id": "YOUR_CERTIFICATE_ID","company_id": "COMPANY_ID","property_id": "PROPERTY_ID","consent": "By submitting this form, you consent to receive marketing communications."}'
What happens automatically
Section titled “What happens automatically”Once the tracker is installed, eConsent automatically:
- Captures session recordings using rrweb for full DOM replay
- Extracts consent elements from tagged HTML elements
- Generates tamper-proof certificates with HMAC-SHA256 cryptographic signatures
- Auto-populates the hidden form field with the certificate ID
- Tracks core PII (name, email, phone, address) with hashing
- Records metadata including IP address, user agent, geo-location, and browser language
Accessing certificate data
Section titled “Accessing certificate data”After a form submission, the certificate ID is available in three ways:
// JavaScript APIwindow.econsentState.session_id // Session IDwindow.econsentState.certificate // Certificate ID<!-- Hidden form field (auto-populated) --><input type="hidden" id="econsent_hidden" name="econsent_hidden" value="">The tracker also sets two cookies: econsent_session and econsent_certificate.
Next steps
Section titled “Next steps”- Script Installation. Detailed installation options, consent types, and auto-tracking configuration
- Properties & Domains. Configure domain whitelisting and field capture settings
- Consent Certificates. Understand the certificate format and expiration settings
- Verification API. Integrate certificate verification into your workflow