• Resolved Dominic Wenig

    (@dominicwenig)


    When enabling the AdSense “insert code” (Let Site Kit place AdSense code on your site RECOMMENDED), I receive the following error in the console log.

    {
        "message": "adsbygoogle.push() error: Only one 'enable_page_level_ads' allowed per page.",
        "name": "TagError",
        "pbr": true
    }
Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Support James Osborne

    (@jamesosborne)

    Thanks for opening a support topic. This console error is to alert you that you have more than one AdSense Auto ads code snippet placed on your side. This doesn’t impact ads being served on your side, as one of the snippets will be ignored.

    If you’re looking to determine the source of any non Site Kit placed snippet feel free to share your Site Health information and I can check your setup. You can alternatively remove the Site Kit placed snippet if you wish, while keeping the AdSense module connected in order to view AdSense data on your site within Site Kit. You’ll find this settings under “Site Kit > Settings > Connected Services > AdSense > Edit“, from within your WordPress dashboard.

    So to summarize the console warning is coming from the AdSense platform and is just an indicator of more than one Auto ads snippet.

    Let me know if you have any questions on the above.

    Thread Starter Dominic Wenig

    (@dominicwenig)

    Hi, and thanks for the fast response.
    Yes, I already figured out that it seems that there are two AdSense Auto ad code snippets on the website. However, if I disable Google Site Kit AdSense Auto Code replacement, then I do not have any AdSense Code in my WebSite. So it seems to be an issue with Site Kit. I shared the health information with you so that you are able to help further.
    However, since I know that it doesn’t impact the ads being served, it is still being complained by lighthouse and my beforehand 100% is now down to 83%.

    Plugin Support James Osborne

    (@jamesosborne)

    Thanks for sharing.

    Yes, I already figured out that it seems that there are two AdSense Auto ad code snippets on the website. However, if I disable Google Site Kit AdSense Auto Code replacement, then I do not have any AdSense Code in my WebSite.

    Site Kit only inserts the Auto ads snippet on one occasion on a users site. From checking the details you kindly provided I do see this warning when checking your site, and I noticed what looks like non Site Kit placed ads related snippets.

    Can you check if the same console error appears after following the steps below, which will help determine the cause?

    1. Login to your site from a Chrome browser incognito window
    2. Install and activate the Health Check & Troubleshooting plugin.
    3. Navigate to “Plugins > Health Check & Troubleshooting > Troubleshoot”.
    4. From the same screen click on the “Available Plugins” tab at the top right and then click on the “Enable” option next to “Site Kit by Google”
    5. Check for the console error once more

    Let me know how you get on with the above, or ask if you have any questions.

    However, since I know that it doesn’t impact the ads being served, it is still being complained by lighthouse and my beforehand 100% is now down to 83%.

    When you add servers to your website, including ads or Google services there are additional http requests made. Such trade offs are not uncommon although you can use the insights and suggestions from PageSpeed insights for any performance improvements. You can also consider AMP for your website to maintain a high performance.

    Thread Starter Dominic Wenig

    (@dominicwenig)

    Hi and thank you very much for replying.
    So regarding “and I noticed what looks like non Site Kit placed ads related snippets” – I searched for “googlead” in the code with activated “Let Site Kit place AdSense code on your site RECOMMENDED” and there are 3 results – ok – including your screenshot. I deactivated the AdSense “RECOMMENDED” way and I searched for “googlead” again with 0 zero results – thus I still think it is an issue with Site Kit.
    Moreover, I did all the steps you recommended, checked the console error once more, and still do not have any more insights and the same error.
    Thanks in advance.

    Plugin Support James Osborne

    (@jamesosborne)

    Thanks for performing those steps above. Can you confirm the same console error appeared in troubleshooting mode, which results in no other plugins activated and a core theme used?

    Thread Starter Dominic Wenig

    (@dominicwenig)

    Yes, I can confirm. I retested again and only “Site Kit von Google – Deaktivieren” was active, and the console error appeared. I deactivated the plugin again and the error is gone. The active theme was YOOtheme.

    Plugin Support James Osborne

    (@jamesosborne)

    Many thanks for this confirmation, appreciate the update. With that I’ve created the below GitHub issue:
    https://github.com/google/site-kit-wp/issues/4180

    I’ll keep you updated with any progress on this. In the meantime can you confirm you do see ads present on your site?

    Thread Starter Dominic Wenig

    (@dominicwenig)

    Many thanks for your reply and for creating the issue.
    Currently, I do not see any ads on my site, because it is still in the “Getting ready…” state – “We’re getting your site ready for ads” – when I check the status on https://www.google.com/adsense/

    Plugin Support James Osborne

    (@jamesosborne)

    Thanks for the update. In that case the “Getting ready…” indicates it’s just a matter or waiting for the AdSense network to inform you of your site application once processed. Hopefully that won’t be too long. While we can’t speed up the application process I will keep this support topic open to inform you once we have an update on the console error you reported.

    Let me know if you have any questions in the meantime.

    @dominicwenig Today we released v1.43.0, which includes a fix for this AdSense error. Please update update to the latest version of the plugin and this message should no longer display.

    I’ll mark this topic as resolved, but if you do continue to have any trouble, just let us know. Thank you for using Site Kit!

    Thread Starter Dominic Wenig

    (@dominicwenig)

    Hi, and thanks a lot. I updated Site Kit and can confirm that this issue is fixed.
    Kind regards

    Plugin Support James Osborne

    (@jamesosborne)

    Great to hear it. Many thanks for the update. If you have any further queries be sure to reach out.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘AdSense – adsbygoogle.push() error: Only one ‘enable_page_level_ads’ allowed’ is closed to new replies.