...
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.
...
setPublisherCC. Two uppercase letter country code of the country that determines the legislation of reference. Normally corresponds to the country code of the country in which the publisher's business entity is established.
setPrivacyPolicy. The link to your privacy policy page
setLogo. The link to your logo that is displayed in the AdConsent GDPR GUI.
...
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
...