GDPR (General Data Protection Regulation) compliance is essential to those who handle data of EU subjects. Here we will explain how to ensure GDPR compliance on your websites using consent management platforms (CMPs).

First of all, you need to install and configure one of the consent management platforms (CMP) on your website(s).

The purpose of CMP is to ask a visitor's consent(s), store it, and pass these consents to an ad server.

You can use any CMPs compatible with the technical standard of the IAB Transparency and Consent Framework (TCF v2).

For example, you may use Cookiebot.

To install it you have to put CMP platform JS-code on your site in the HEAD section.

You have to obtain your own script in the CMP panel. This script is just an example of how Cookiebot script may look.

<script id="Cookiebot" src="" data-cbid="xxx" data-framework="IAB" type="text/javascript" async></script>

In rare cases, if CMP platform does not provide IAB stub by itself (refer CMP platform documentation), you have to additionally install this script to the HEAD section:

<script src=""></script>

Please note, stub script should be executed on the page before any Adserver.Online scripts.

After that, your visitors will see a consent dialogue like this.

Usually, CMP platform allows to customise almost everything in the appearance.

That's it. The ad server will get consents from CMP and change its behaviour accordingly.

If you want to know more about GDPR compliance and the idea behind it, you may find this information useful.