Privacy notification | alpha87 | 2014-05-29 09:16 |
Status: Closed | ||
Hi all, just a quick question: due to EU privacy laws, websites hosted in the EU community should notify users if they set cookies/track activity, even if it's just Google Analytics or cookies needed by the system to allow login. I've already successfully used http://cookiecuttr.com/ to enable such notifications in other websites, but I'm frankly new to java development, and I was wondering if somebody can help me in make this work. In theory, it's a two-step work: - add these additional external .js scripts & css files to all web pages and somewhere on the server: <script src="//ajax.googleapis.com/ajax/ libs/jquery/1.7.1/jquery.js"></script> <script>window.jQuery || document.write("<script src='assets/js/libs/jquery-1.7.1.min.js'>\x3C/script>")</script> <script src="jquery.cookie.js"></script> <script src="jquery.cookiecuttr.js"></script> <link rel="stylesheet" href="cookiecuttr.css"> - add the following javascript snip to all pages: if (jQuery.cookie('cc_cookie_accept') == "cc_cookie_accept") { // insert the code you do not want to run UNTIL cookies are accepted here } Thank you! |
||