• Resolved lukascech

    (@lukascech)


    Hi,

    I have used Google Site Kit with the old UA tracking code. Then, when I switched to GA4 in analytics.google.com, I used the Site Kit UI to switch to GA4 too.

    But I just realised, that Site Kit is still loading the old script, twice, which is penalising me in Pagespeed insights and Core Web Vitals. On one hand, you tell me not to load unnecessary scripts, on the other, you load them – twice…

    View post on imgur.com

    There isn’t anywhere in Site Kit settings where I could disconnect the old and no longer needed UA v3.

    How do I make Site Kit load only the new GA4 code?

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

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

    (@jamesosborne)

    Thanks for reaching out @lukascech. Firstly with regards the “Unused JavaScript” opportunity you see within PageSpeed Insights, this is normal if you’re using JavaScript libraries such as Google Analytics or any third party JavaScript Resource. It can appear due to not all the JavaScript from these libraries being executed at once, resulting in some unused JavaScript. You’ll find out more on this If you run PageSpeed Insights test on other websites that load third party scripts, you’ll likely find the same.

    For further information on this you can also review this Lighthouse GitHub issue, with Lighthouse being the technology used to run PageSpeed Insights scores.

    While you can disregard this notice as being normal, you may wish to consider AMP on your site if you’re looking to improve performance score.

    In relation to Universal Analytics (UA) firing on your site, I can see that you’re using the latest version of Site Kit, and that Site Kit has only placed a UA snippet on your site. Can you disconnect the Analytics module within Site Kit and connect once more? We’ve recently made changed to Site Kit to only support Google Analytics 4 (GA4), so this will hopefully ensure that only a GA4 snippet is placed.

    If you still see a UA snippet placed on your site after disconnecting and connecting Analytics once more, please share your Site Health information and we can check this further.

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

    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.

    Thread Starter lukascech

    (@lukascech)

    Hi James,

    sorry, I missed your earlier response. Your suggestion to disconnect Analytics and reconnect again helped – the old UA- analytics code is no longer loaded.

    thanks

    Lukas

    Plugin Support James Osborne

    (@jamesosborne)

    Glad to hear it @lukascech. Thanks for the update.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Site Kit loading two tracking scripts – UA and GA4’ is closed to new replies.