Back to features
Prior consent

Automatic script blocking

Third-party scripts are automatically blocked until the visitor has given consent. nLPD/GDPR compliance from the very first visit.

Scripts status
google-analytics.js
blocked
facebook-pixel.js
blocked
stripe.js
allowed
hotjar.js
blocked
Blocked→ Consent →Unblocked

How blocking works

The Consentio widget intercepts third-party scripts before execution. Until the visitor has consented, no non-essential cookie is set.

  • Blocking before execution (not after)
  • Interception of dynamically added scripts
  • Instant unblocking after consent
  • No impact on essential scripts
HTML
<script src="analytics.js" data-consentio-category="analytics"></script>
necessary
Never blocked
functional
Blocked until consent
analytics
Blocked until consent
marketing
Blocked until consent

Granular per-category control

Simply add an attribute to your script tags to indicate their category. Consentio will block or allow them based on the visitor's consent.

  • data-consentio-category attribute on scripts
  • 4 categories: necessary, functional, analytics, marketing
  • Necessary scripts are never blocked
MutationObserver
// Script ajouté dynamiquement
document.createElement('script')
Intercepted by Consentio
// Résultat
script.type = 'text/plain'
// Script blocked until consent

Dynamic observation

Consentio uses a MutationObserver to continuously monitor the DOM. Dynamically added scripts (by tag managers, for example) are also intercepted.

  • Continuously active MutationObserver
  • Compatible with Google Tag Manager
  • Works with SPAs (Single Page Applications)

100% Swiss hosting

All data is processed and stored in Switzerland by Infomaniak, in ISO 27001 certified data centers. No data leaves Swiss territory.

Ready to simplify your compliance?

Install Consentio in 5 minutes and ensure nLPD/GDPR compliance for your website.