EU GDPR Compliance for External Cookies

Test

Test

Test

Test

Test

Test

Test

Notice: due to Cookies creation/verification, this demo works only on a server.

If the visitor accepts, the javascript ressources are included then when the page is reloaded a message appears.

When closing the box, the counter continues and the ressources are loaded when the count is finished.

When the visitor declines, the external javascript ressources are not included, then on page reload a message appears.

For best practices with Google Analytics: the loader allows you to invocate many ressources in an array. We recommand you to call first the Google Tag Manager, then the needed script for analytics directives (as an external file):

EU_cookies_law(["https://www.googletagmanager.com/gtag/js?id=UA-3-1", "//my-website.tdl/js/google-analytics-instance.js"]);