includi il js alla fine della pagina e funzionerà:
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="content-type" content="text/html" />
<meta name="author" content="robertino" />
<script>
document.addEventListener('DOMContentLoaded', function(event) {
cookieChoices.showCookieConsentBar('Your message for visitors here',
'close message', 'learn more', 'example.com');
});
</script>
</head>
<body>
<P>TEST</P>
<script src="_cookie_law/cookiechoices.js"></script>
</body>
</html>