Examples

Google AdSense

Tag before conditioning
1
<script src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
Copied!
becomes:
Tag modified with conditioning
1
<script
2
data-cmp-src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"
3
data-cmp-vendor="755"
4
data-cmp-purposes="1,3,4"
5
data-cmp-purposes-li="2,7,9,10">
6
</script>
Copied!

Conditioning Google Ad Manager with Limited Ads as fallback
Tag before conditioning
1
<script src="https://securepubads.g.doubleclick.net/tag/js/gpt.js"></script>
Copied!
becomes:
Tag modified with conditioning and Limited Ads as fallback
1
<script
2
data-cmp-src="https://securepubads.g.doubleclick.net/tag/js/gpt.js"
3
data-cmp-vendor="755"
4
data-cmp-purposes="1,3,4"
5
data-cmp-purposes-li="2,7,9,10"
6
data-cmp-fallback-src="https://pagead2.googlesyndication.com/tag/js/gpt.js"
7
data-cmp-fallback-vendor="755"
8
data-cmp-fallback-purposes-li="2,7,9,10">
9
</script>
Copied!

Other examples

Example 1

Conditioning of a script for the partner 53 requiring consent for the purposes 1 and 3
1
<script data-cmp-src="https://www.example.com/script.js"
2
data-cmp-vendor="53"
3
data-cmp-purposes="1,3">
4
</script>
Copied!

Example 2

Conditioning of a script for the partner 81 requiring consent for the purpose 1 and the legitimate interest established for the purpose 6
1
<script data-cmp-src="https://www.example.com/script.js"
2
data-cmp-vendor="81"
3
data-cmp-purposes="1"
4
data-cmp-purposes-li="6">
5
</script>
Copied!

Example 3

Conditioning of a pixel for the partner 29 requiring consent for the purposes 1 and 9
1
<img data-cmp-src="https://www.example.com/pixel.png"
2
data-cmp-vendor="29"
3
data-cmp-purposes="1,9"
4
width="1" height="1"/>
Copied!

Example 4

Conditioning of a script requiring consent for the purpose 1 with loading of an alternative script in case of non-consent
1
<script data-cmp-src="https://www.example.com/script.js"
2
data-cmp-fallback-src="https://www.example.com/script_noconsent.js">
3
</script>
Copied!
Last modified 7mo ago