Support » Plugin: Site Kit by Google - Analytics, Search Console, AdSense, Speed » Incorrect account ID found on meta tag

  • Resolved onlanka

    (@onlanka)


    Please check my site’s html source code it shows incorrect adsense account number in one place (Line 105) and correct account number in another place (Line 131).

    Incorrect account number (Line 105)

    <!-- Google AdSense snippet added by Site Kit -->
    <meta name="google-adsense-platform-account" content="ca-host-pub-2644536267352236">
    <meta name="google-adsense-platform-domain" content="sitekit.withgoogle.com">
    <!-- End Google AdSense snippet added by Site Kit -->

    According to this article https://developers.google.com/adsense/platforms/transparent/meta-tags it says ca-host-pub-XXXXX should be my adsense account number.

    But actually my adsense account number is ca-pub-3918084299684199 and it’s showing on the same page at line number 131 but not in line 105

    Line 131 (Correct account number)

    <!-- Google AdSense snippet added by Site Kit -->
    <script async="async" src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-3918084299684199" crossorigin="anonymous" type="text/javascript"></script>
    
    <!-- End Google AdSense snippet added by Site Kit -->

    This should be a serious issue.

    Please check this ASAP.

    Thank you!

    • This topic was modified 2 years, 3 months ago by onlanka. Reason: Correction added

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter onlanka

    (@onlanka)

    Google Site Kit Version 1.47.0

    Thread Starter onlanka

    (@onlanka)

    I’m providing more information as I will discontinue using the Google Site Kit plugin until proper investigation is done on this report.

    If you don’t see relevant code lines on my site as mentioned earlier in this thread, please see the screenshot given below.

    https://ibb.co/VxmV2cZ

    Also if you open the file called AdSense.php (/plugins/google-site-kit/includes/Modules/AdSense.php) in a text editor, go to line 877 and you’ll see there is a static account number of someone.

    You can experience the same by integrating an adsense account through the Site Kit plugin on your own site and check the code as I mentioned earlier in this thread.

    I checked version History and found this https://github.com/google/site-kit-wp/issues/3688 developer named Felix Arntz ( https://github.com/felixarntz ) did this modification.

    I’m using Google Site Kit Version 1.47.0 and I have integrated my active Adsense account (16 year-old adsense account) using Site Kit.

    Please clarify why he added someone’s adsense account ID.

    • This reply was modified 2 years, 3 months ago by onlanka. Reason: text correction
    • This reply was modified 2 years, 3 months ago by onlanka. Reason: Link added
    • This reply was modified 2 years, 3 months ago by onlanka. Reason: Links added
    Plugin Support James Osborne

    (@jamesosborne)

    Hi there @onlanka, thanks for reaching out. The “ca-host-pub-2644536267352236” is a Site Kit publisher ID, to indicate that the snippet has been placed via Site Kit. As you’ve researched on the plugins GitHub this is inserted as an AdSense platform account, rather than an individual users AdSense account.

    If you prefer not to have your AdSense snippet placed via Site Kit this is fine, you can manually insert your own AdSense snippet if you wish, which Site Kit can used to contine to show AdSense data within your Site Kit dashboards while not placing the snippet. You’ll find the settings under “Site Kit > Settings > Connected Services > AdSense > Edit“.

    Note that the Site Kit publisher ID does not impact the serving of ads, it’s just an indicator that Site Kit was used to placed your snippet.

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

    Thread Starter onlanka

    (@onlanka)

    @jamesosborne

    But the problem is the following article clearly says “the host property code is your Adsense publisher ID”.

    https://developers.google.com/adsense/platforms/transparent/meta-tags

    <meta name="google-adsense-platform-account" content="{host-property-code}">

    The host property code is your AdSense publisher ID, with “ca-host-” appended to it. You can find your AdSense publisher ID by visiting AdSense: Account > Settings > Account information.

    Can you clarify this?

    • This reply was modified 2 years, 3 months ago by onlanka. Reason: text formatting
    Plugin Support James Osborne

    (@jamesosborne)

    Hi @onlanka,

    You are correct, the host property code is an AdSense publisher ID. In this case it’s the Site Kit project and it related to an AdSense for Platforms account and not a standard AdSense users publisher ID.

    The “google-adsense-platform-account” meta tag indicates to the AdSense platform that the snippet was inserted via a AdSense platform account. If a developer or user has an AdSense for Platforms account they may make use of their own meta tag. It doesn’t serve ads alone, users can place their own standard AdSense ad snippet independent of this AdSense for Platforms publisher Id.

    Let me know if you have any questions with the above, or if you’d like assistance on manually inserting your own AdSense publisher ID so that you don’t have any such AdSense for publishers meta tag added to your site.

    Plugin Support James Osborne

    (@jamesosborne)

    As we didn’t receive a response I’ll mark this as resolved. Feel free however to ask any further questions on the above and I’d be happy to assist.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Incorrect account ID found on meta tag’ is closed to new replies.