HUGO

Cookie consent script (display banner and autoblock tracking tags) with 1 line code for GDPR/CCPA

We make a script to show cookie consent notice and autoblock some popular analytics (you can add your own as well) :

  • show consent banner
  • autoblock GA, GTM, Facebook pixel, Twitter, Convertkit etc. ~20 scripts
  • when user accept, it will load the tracking scripts

quick install, just paste 1-line code before any on any page you want to show or the template :

<script src="https://cdn.jsdelivr.net/gh/sprucejoy/cookie-consent-autoblock-gdpr/cookie-consent.js" crossorigin="anonymous"></script> 

You can also customize message, edit style (color), add additional tracking scripts to block, read the docs.

Current list of tracking codes autoblocked:

  • Google Tag Manager
  • Google Analytics
  • Google Ads
  • Google Adsense
  • Google Publisher Tags
  • Facebook Pixel
  • Hotjar Analytics
  • Youtube embed
  • Vimeo embed
  • Google maps
  • Addthis widget
  • Sharethis widget
  • Twitter widget
  • Slideshare embed
  • Linkedin widget
  • Instagram embed
  • Pinterest widget
  • ConvertKit
  • Intercom
  • Mixpanel

Thanks.

1 Like