• Resolved andrbarbieri

    (@andrbarbieri)


    Hi guys, ho bisogno di cambiare il codice Analytics, ma non riesco a rimuovere quello vecchio.

    In fact, when I tried Google Kit tells me: “An existing Universal Analytics tag was found on your site with the ID…”

    I see that the AMP version of my website has the code, while the non-AMP version does not.

    Here you see:
    https://www.beautydiary.it/profumo-donna/ -> has no UA- Code
    https://www.beautydiary.it/profumo-donna/?amp -> DO HAVE the UA code

    Is there a way to massively remove the Google Analytics code on AMP pages?

    It was inserted via Google Site Kit, and it remained also after deactivation of the plugin!

    Thank for your help

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

    (@jamesosborne)

    Thanks for reaching out. In order to remove the AMP Analytics code on your site and allow Site Kit to insert your preferred Analytics property code can you check your AMP plugin configurations and share whether you have any AMP Analytics setup?

    If you do have an AMP plugin inserted Analytics snippet you can remove this before attempting to setup the Analytics module within Site Kit once more.

    Let me know of the above. If you don’t have any such AMP plugin inserted snippet please share your Site Health information by using this form and I can check your environment.

    Thread Starter andrbarbieri

    (@andrbarbieri)

    James,
    first of all thank you for your reply and most of all for your time.

    1) I use the “AMP – By AMP Project Contributors” plugin and have not entered any amp-analytics code through that pugin.

    2) I filled out the form as you requested, using the Site Health plugin. Hope you can check it.

    3) Note that during the health check I deactivated the Site Kit to show how the AMP pages still have the UA- code, which it shouldn’t be.

    I just have one question: is there any way to delete this damn UA Analytics code manually in the AMP pages? That way I could use Google Site Kit to reinstate the new one, both on AMP and non-AMP pages.

    Thanks so much for the help,
    Andrea

    • This reply was modified 3 years, 2 months ago by andrbarbieri.
    Plugin Support James Osborne

    (@jamesosborne)

    Many thanks for sharing the additional information @andrbarbieri, very useful. I can see you’re using a theme that features it’s own AMP templates, with it’s own AMP Analytics options (Theme Panel > Mobile Theme > AMP Analytics)

    Can you check if you have any AMP Analytics applied within that configuration?

    Thread Starter andrbarbieri

    (@andrbarbieri)

    Hi James! You were right, so thank you, I removed it.

    But still I see traffic in real time dashboard… (I already flushed the cache and waited some time).

    View post on imgur.com

    Nevertheless I do not see ANY UA-XXX code in any Amp page.

    How is this even possible? Where is the real time data taken from?

    Any suggestion is welcome.

    Thank you

    • This reply was modified 3 years, 2 months ago by andrbarbieri.
    Plugin Support James Osborne

    (@jamesosborne)

    Great to hear it! You can now use Site Kit to insert your preferred Analytics property on both your AMP and non AMP URLs.

    But still I see traffic in real time dashboard… (I already flushed the cache and waited some time).

    I wonder is it possible that visitors are already on your site and didn’t refresh. Alternatively browser caching from your visitors could be playing a part. Once way to check this is to create a new page or post, then visit it’s AMP version as an end user. Ensure that your visit to this AMP URLs isn’t being recorded.

    If you want to share a newly created URL I’m also happy to visit it’s AMP version so you can ensure there are not Analytics hits being fired.

    Thread Starter andrbarbieri

    (@andrbarbieri)

    As always thank for your time.
    So here the situation:

    I have NO code installed: Google Site Kit temporarly disabled.

    I created a New article from scratch and I watched it as end user in incognito mode.
    I also connected to an old article from incognito mode (and also from tor browser, with another IP, just to be sure)

    https://www.beautydiary.it/new-test-for-amp-created-14-12-2021/?amp
    https://www.beautydiary.it/drenante/?amp

    Here the result:

    View post on imgur.com

    Analytics does not see me: neither my new AMP post, nor my old AMP post.
    BUT in the meantime I see traffic in many other articles!

    What are those visitors pulled from???
    I know I have a traffic avarage of 2k visitors per day, but without UA code I do not really understand where Analytics is taking this data from.

    Quite desperate

    • This reply was modified 3 years, 2 months ago by andrbarbieri.
    • This reply was modified 3 years, 2 months ago by andrbarbieri.
    Plugin Support James Osborne

    (@jamesosborne)

    @andrbarbieri Many thanks for the update. Good to know that your new content is working as expected, without any Analytics tracking code inserted.

    I know I have a traffic avarage of 2k visitors per day, but without UA code I do not really understand where Analytics is taking this data from.

    What could be occurring is that your site is being served from AMP Cache. You can check this by performing a search on your site and checking the AMP cache version. If this is the case then it’s just a matter of your site being refreshed from AMP cache, something which is done automatically.

    While we’re limited to Site Kit plugin support any questions specific to AMP Analytics may also be addressed using the Google Analytics Help Center, where the product experts would be able to assist more than we can here in plugin support.

    Plugin Support James Osborne

    (@jamesosborne)

    As we didn’t receive a response I’ll mark this as resolved. Feel free to open a new support topic if you continue to encounter issues, or reopen this topic and we’d be happy to assist.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Analytics for AMP pages’ is closed to new replies.