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 https://www.oiljs.org/

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

<script id="oil-configuration" type="application/configuration">
{
"publicPath": "https://unpkg.com/@ideasio/oil.js/release/current/",
"config_version": 3,
"advanced_settings": true,
"timeout": -1,
"advanced_settings_purposes_default": true,
"require_optout_confirm": true,
"gdpr_applies_globally": true
}
</script>
<script src="//unpkg.com/@ideasio/oil.js/release/current/oil.1.3.5-RELEASE.min.js" type="text/javascript"></script>
<script src="//unpkg.com/@ideasio/oil.js/release/current/oilstub.1.3.5-RELEASE.min.js" 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 https://oil.axelspringer.com/docs/last-release).

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.

<script>
var _aso = _aso || {};
_aso.cmp = true;
</script>

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.