adsbygoogle | CMP
-
Hi there,
I think I installed my cmp correctly now but I still see one adsbygoogle in my page source which is this one:
<script>
(function () {
var scriptDone = false;
document.addEventListener(‘advanced_ads_privacy’, function (event) {
if (
(event.detail.state !== ‘accepted’ && event.detail.state !== ‘not_needed’ && !advads.privacy.is_adsense_npa_enabled())
|| scriptDone
) {
return;
}
// google adsense script can only be added once.
scriptDone = true;var script = document.createElement(‘script’),
first = document.getElementsByTagName(‘script’)[0];script.async = true;
script.src = ‘https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js’;
script.dataset.adClient = “ca-pub-xxxxxxxxxx”;
first.parentNode.insertBefore(script, first);
});
})();
</script>
- The topic ‘adsbygoogle | CMP’ is closed to new replies.