Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
GDPR: addPrivacyConsentListener & revokeCookieConsent
Highlighted
Occasional Contributor
05-23-2018 08:40
Our code in footer.php is
<script id="hs-script-loader" async defer src="https://js.hs-scripts.com/[Account-ID].js"></script>
How and where can I integrate the code?
1.)
// Log the consent status of the current visitor to the console _hsq.push(['addPrivacyConsentListener', function(consent) { console.log(consent.allowed); }]);
2.)
document.getElementById("removeCookies").onclick = function() { _hsq.push(['revokeCookieConsent']); };
Thank you for your support. I'm not a programmer.
Thomas
P.S.: The cookie banner is already displayed correctly.
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content