Hm, I'm using this now:
http://civicuk.com/cookie-law/index (link in profile)
I have it on two boards. On A board works just fine, but on B it always allows GA cookies (
I have GA activated for that board and on A not). And codes are the same on A and B board. Even if I dont allow cookies it deletes it, but when I refresh site it loads them again (only on B board).
The code I'm using:
Code: Select all
<script src="http://www.geoplugin.net/javascript.gp" type="text/javascript"></script>
<script src="/{T_TEMPLATE_PATH}/cookieControl-5.1.min.js" type="text/javascript"></script>
<script type="text/javascript">//<![CDATA[
cookieControl({
introText:'...',
fullText:'...',
position:'left', // left or right
shape:'triangle', // triangle or diamond
theme:'dark', // light or dark
startOpen:true,
autoHide:10000,
subdomains:false,
protectedCookies: [], //list the cookies you do not want deleted ['analytics', 'twitter']
consentModel:'explicit',
onAccept:function(){ccAddAnalytics()},
onReady:function(){},
onCookiesAllowed:function(){ccAddAnalytics()},
onCookiesNotAllowed:function(){},
countries:'' // Or supply a list ['United Kingdom', 'Greece']
});
function ccAddAnalytics() {
jQuery.getScript("http://www.google-analytics.com/ga.js", function() {
var GATracker = _gat._createTracker('');
GATracker._trackPageview();
});
}
//]]>
</script>
Some other questions:
- should I block GA cookies because of that law?
- if I remove my board from GA, should I do anything else? I haven't installed any of the GA code on my board...