...
Include the AdConsent script in the document
<head>
section before any ad technology script. The script must be loaded synchronously to avoid race conditions while loading the page with scripts using the privacy API from AdConsent.Set AdConsent visual adjustments to fit the page look and feel, as well as the configurations needed to make AdConsent compatible with the publisher's privacy requirements. For more information regarding available AdConsent functions, check the AdConsent API reference.
Signal AdConsent to start through the AdConsent start command.
(optional) Load 3rd party ad technology scripts like AdSense.
...
Code Block |
---|
<!-- AdConsent loading tag -->
<script src="//cdn.snigelweb.com/adconsent/adconsent.js" type="text/javascript"></script>
<!-- AdConsent configuration tag -->
<script>
adconsent('setPublisherCC', 'US');
adconsent('enableGoogleAnalytics', true);
adconsent.gdpr('setLogo', '//www.mysite.com/logo.jpg');
adconsent('setPrivacyPolicy', 'https://mysite.com/privacy.html');
adconsent('start');
</script> |
Starting AdConsent with visual styles, a specific privacy policy link for each privacy law and with consent reconsideration after 48h
...