Adsense after consent
-
I like to show adsense only after implicit/explicit consent. Therefore I combined the adsense script with the script mentioned in the installation files. Sadly it doesn’t seem to work. Can you please help me tweek the script to get this working:
<script async src=”//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”></script>
<!– Oxxxxxxxxxxg-responsive –>
<ins class=”adsbygoogle”
style=”display:block”
data-ad-client=”ca-pub-xxxxxxxxxxxxx”
data-ad-slot=”xxxxxxxxxx”
data-ad-format=”auto”>
<script>
$(document).ready( function() {
if(hasHayonaCookieConsent()) {
(adsbygoogle = window.adsbygoogle || []).push({});
}
} );
</script>
- The topic ‘Adsense after consent’ is closed to new replies.