• Resolved jasonwarner

    (@jasonwarner)


    I have an error that occurs with my site kit plugin (adsense)

    adsbygoogle.push() error: Only one ‘enable_page_level_ads’ all

    This suggests there is duplicate script- this is what site kit adds when I allow site kit to place the adsense code to the header file

    <!-- Google AdSense snippet added by Site Kit -->
    <script src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-1802995185109397" crossorigin="anonymous" type="text/javascript"></script>
    <script type="text/javascript">
    (adsbygoogle = window.adsbygoogle || []).push({"google_ad_client":"ca-pub-1802995185109397","enable_page_level_ads":true,"tag_partner":"site_kit"});
    </script>
    <!-- End Google AdSense snippet added by Site Kit -->

    However when I remove either the toggle (to allow site kit to insert the code) or deactivate or remove the site kit plugin, ALL code is removed which no additional/duplicate code left so the conflict seems to be caused by the site kit plugin. I have tried resetting/disconnecting/deleting site kit and then redownloading and reactivating with the same problems

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support James Osborne

    (@jamesosborne)

    Thanks for reaching out and sharing the additional details. With what you’ve kindly provided, along with other reports I’ve created the below GitHub issue:
    https://github.com/google/site-kit-wp/issues/4180

    While the error you’re encountering doesn’t result in loss of ad placements if you’d like to share your Site Health information here or by using this form I’d be happy to check your site setup.

    Thread Starter jasonwarner

    (@jasonwarner)

    Thanks James- Site Health Submitted via the form- thanks for creating the github ticket! Look forward to a quick resolution-
    Best

    Plugin Support James Osborne

    (@jamesosborne)

    Thanks for sharing. Nothing stands out from the details provided. As you have an approved AdSense account and site can you share whether this was a recent approval, and whether you had ads placed on your site previously?

    Thread Starter jasonwarner

    (@jasonwarner)

    Account is not recent
    Actual site is still ‘getting ready’ and therefore not approved- It would also be worth mentioning that the site was linked (via site kit) to another adsense account in the past however this is reflected (via publisher ID) in any of the code snippet that is inserted

    Plugin Support James Osborne

    (@jamesosborne)

    Thanks for the clarification. That’s useful to know. I’ll keep you updated here once we have an update on the GitHub issue.

    @jasonwarner Today we released v1.43.0, which includes a fix for this 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 jasonwarner

    (@jasonwarner)

    Thanks- Yes this has fixed the issue- Must appreciated and thanks for the update!!

    Plugin Support James Osborne

    (@jamesosborne)

    No problem at all, thanks for reporting this to us. If you have any further queries or concerns be sure to reach out. And if you’ve been using Site Kit for some time we’d also love to hear your plugin feedback.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Site Kit Duplicating Script’ is closed to new replies.