Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. 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.

  2. 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.

  3. Signal AdConsent to start through the AdConsent start command.

  4. (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

...