Free Cookie Consent

Free tool for cookie consent management for your websites to comply with GDPR, EU Cookies Directive (ePrivacy), Google Consent Mode V2.

How to tag your JavaScript scripts.

Instructions

  1. Tag any JavaScript <script> that you're using by changing type="text/javascript" to type="text/plain".

  2. Add the corresponding consent level for each tagged <script>. For example: data-cookie-consent="functionality".

Example

<!-- Login Cookies -->
<script type="text/plain" data-cookie-consent="strictly-necessary" src="/js/login-session.js"></script>
                                            
<!-- Google Analytics -->
<script type="text/plain" data-cookie-consent="tracking">
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', GOOGLE_PROPERTY_ID_GOES_HERE, 'auto');
ga('send', 'pageview');
</script>