How the banner works
How the license works
Unlike other solutions that sell consent banners per domain, the Dastra license is based on two criteria:
Maximum monthly traffic: the total number of user sessions (or visits) on your websites over one month.
The number of banners: you configure a banner with a set of cookies and services, which you can reuse across several websites or subdomains. The consent cookie can work across several subdomains (for example
*.example.com).
The number of domains and subdomains is therefore unlimited per banner.

Overall operation
The consent banner works in three main steps:
The proposal of the consent window.
The collection of consent (storage of proof).
The actual execution of the user's consent.
The banner's JavaScript SDK must be called on all pages of the site that use cookies.

1. Visit to the client's website
The visitor opens the website where the JavaScript code snippet is installed. To avoid affecting the performance and SEO of your pages, the SDK is loaded asynchronously and cached for one day.
2. and 3. Collect and cache the banner configuration
To work, the banner needs an up-to-date configuration retrieved from the Dastra servers. To get the latest version, it makes a GET request with the public API key, which checks that the banner belongs to the customer.
4. Requesting consent from the user
If the consent-eu cookie (you can change the cookie name) is missing, the consent window appears. To test that the banner displays correctly, delete this cookie from your browser.
5. Collecting consent
Consents are collected automatically by the Dastra API with a POST request in JSON.
In the banner interface, consent is expressed by purpose, but it is stored by service.
Here is what a proof of consent looks like as stored in our databases. Internal technical fields are not shown.
In return, the API returns a consentId, which is saved with the visitor's choices in the consent storage: the consent-eu cookie by default, or localStorage if you chose that mode. Its lifetime is the one set by the Consent expiry time (Default to 180 days) setting (180 days by default, from 1 to 365 days). This identifier is the unique identifier of the proof of consent. In the case of a dispute, it is the one to look for in the customer's browser.
6. Execution of consent
Once consent is collected, you need to apply the user's choice by passing the consent information to all the services on the site.
For this phase, see the guide on blocking cookies:
Blocking cookiesYou can now start the technical integration of the banner:
Quick startLast updated
Was this helpful?