• Resolved yangoxx

    (@yangoxx)


    Hello,
    i was trying to setup the cookiebot and everything is working. But i have some troubles to include google analytics and adsense into the cookiebot.

    I use the the Google Analytics Dashboard for WP (GADWP) Plugin, and was tryin to intigrate the gooogle analytics with this tutorial from CB :
    https://support.cookiebot.com/hc/en-us/articles/360003949514-Google-Analytics-Dashboard-for-WordPress-GADWP-

    i have put the code correctly into the google analytics folder /front/views/analytics-code.php.

    But now with the added code – “text/plain” data-cookieconsent=”statistics” – google analytics dont work anymore. The same problem if i try to add the code into the adsense code. If i add the above code, the ads or analytics dont works.

    I m 100% sure i have placed the code well and in the correct file like in your tutorial.

    What could be the problem ??

    Thanks in advance

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter yangoxx

    (@yangoxx)

    I just found out that only the normal adsense display ads are not working. But the Article-Ads and In-Feed-Ad working. But why ?
    This is the code how i try to intigrate cookiebot into adsense ads.

    <script async src=”//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js” type=”text/plain” data-cookieconsent=”marketing”></script>
    <!– Sidebar –>
    <ins class=”adsbygoogle”
    style=”display:block”
    data-ad-client=”ca-pub-7671270902230771″
    data-ad-slot=”1487181077″
    data-ad-format=”auto”
    data-full-width-responsive=”true”>
    <script type=”text/plain” data-cookieconsent=”marketing”>
    (adsbygoogle = window.adsbygoogle || []).push({});
    </script>

    but this dont work. On other side the In-Article-Ads are working with this code:

    <script async src=”//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js” type=”text/plain” data-cookieconsent=”marketing”></script>
    <ins class=”adsbygoogle”
    style=”display:block; text-align:center;”
    data-ad-layout=”in-article”
    data-ad-format=”fluid”
    data-ad-client=”ca-pub-7671270902230771″
    data-ad-slot=”1487181077″>
    <script type=”text/plain” data-cookieconsent=”marketing”>
    (adsbygoogle = window.adsbygoogle || []).push({});
    </script>

    How can i fix this ?? i want to use the normal adsense display ads too

    Hi yangoxx,

    I think that the above described issue is caused because the ads you want to display does not support asynchronous loading, so you need to use the asynchronous version when implementing cookie consent on the tag.
    For more information about this you could check the following articles: https://support.cookiebot.com/hc/en-us/articles/360003814093-AdWords-Remarketing-Tag-cookie-consent
    https://support.cookiebot.com/hc/en-us/articles/360003812773-AdSense-cookie-consent

    Unfortunately, I could not access your domain in order to check it out and for now I can just guess what could cause the problem.
    Please try to change the script as described, if you still experience any problems do not hesitate to write back so we can investigate the issue further more.

    Regards,
    Spas

    • This reply was modified 6 years, 1 month ago by svelinov.
    • This reply was modified 6 years, 1 month ago by svelinov.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Google Analytics/Adsense and CB dont works’ is closed to new replies.