Complianz Privacy Suite

Complianz and Advertising: Personalized Ads based on Consent

Aert Hulsebos

Aert Hulsebos

Categories

Popular articles

Editing Legal Documents

The legal documents are generated by the Wizard and will show up under ‘Pages’ with a shortcode in the content. This shortcode is used to

Read More
Share on facebook
Facebook
Share on twitter
Twitter
Share on linkedin
LinkedIn

For this configuration we will work with the following plugins and tools:

  1. Complianz | GDPR Cookie Consent
  2. Google Tag Manager
  3. Ad Inserter (other plugins and implementations will work)

Configuring Complianz | GDPR Cookie Consent (or Complianz Privacy Suite)

When completing the wizard, please let Complianz implement your Google Tag Manager code so Complianz can handle consent for you.

Under Cookies > Cookie Usage please say Yes to Tag Manager fires scripts that places cookies.

Go to Cookies > Statistics and enter your Google Tag Manager code. Which looks like below image:

Complianz

After finishing the wizard, configure your Cookie Banner with categories. For easy implementation you can use the following:

  1. Functional Cookies ( No advertising)
  2. Statistics (Non-personalized Advertising)
  3. Marketing (Personalized Advertising

To fire the scripts per category, you will need to add custom events (triggers) to your Tag Manager Workspace. For the above categories the custom events are as follows; (please double check if this applies to you as well, when creating the categories more information will be available in the wizard)

  1. Functional Cookies (cmplz_event_functional or “All Pages”)
  2. Statistics (cmplz_event_0)
  3. Marketing (cmplz_event_all)

Configuring the Adsense Code with Ad Inserter*

*this works for most plugins and custom implementations.

Removing the scripts from you Adsense Code

We want to manually edit the script code from Adsense and only fire the script when consent is given, for either Statistics (Non-personalized Ads) or Marketing (Personalized Ads). Instead of:



 


We want to extract the script tags (normally in <>) and only have the ins remaining per ad slot in Ad Inserter. See this image for an example:

We will add the script tags with Google Tag Manager, while adding consent and the variables for Non-Personalized and Personalized Ads.

Configuring Tag Manager

Now we will add the Adsense script tags and triggers to Tag Manager so ads will be shown based on specific categories or consent.

Triggering Personalized Ads

You will need a trigger based on the custom event cmplz_event_all (Marketing, see above explanation) and you will trigger Custom HTML with the Adsense script and added variable.

1. Create a new trigger configuration
2. Choose: Some custom events
3. Choose: “equals”
4. Add: cmplz_event_all

After, create a new tag with the above trigger.

1. Create a Tag with Custom HTML
2. Add below HTML to the editable field.
3. Choose the trigger you’ve just made

script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js" /script
script
 (adsbygoogle = window.adsbygoogle || []).requestNonPersonalizedAds =0;
 (adsbygoogle = window.adsbygoogle || []).push({});
/script


Triggering Non-Personalized Ads

You will need a trigger based on the custom event cmplz_event_0 (Statistics, see above explanation) and you will trigger Custom HTML with the Adsense script and added variable. 1. Create a new trigger configuration 2. Choose: Some custom events 3. Choose: “equals” 4. Add cmplz_event_0 or your custom event. After, create a new tag with the above trigger. 1. Create a Tag with Custom HTML 2. Add below HTML to the editable field. 3. Choose the trigger you’ve just made 3. Add the other trigger “Marketing” as an exception.

We have released 4.0 for Premium. For more information about Cookiedatabase.org and New Features...