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

We recommend using free an opensource platform

To install it you have to put this code on your site in the HEAD section

<script id="oil-configuration" type="application/configuration">
"publicPath": "",
"config_version": 3,
"advanced_settings": true,
"timeout": -1,
"advanced_settings_purposes_default": true,
"require_optout_confirm": true,
"gdpr_applies_globally": true
<script src="//" type="text/javascript"></script>
<script src="//" type="text/javascript"></script>

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

GDPR compliance - Adserver.Online

You are able to customise almost everything in the appearance (check the documentation for details

Then you have to enable CMP mode in our invocation code. In order to do that, you need to put this code to the HEAD section.

var _aso = _aso || {};
_aso.cmp = true;

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.