Learn business growth with Google Analytics 4 Forums Google Analytics 4 Migrating from Universal Analytics to GA4: Can I use the same Tracking Code?

  • Migrating from Universal Analytics to GA4: Can I use the same Tracking Code?

    Posted by Aubrey on 10 June 2022 at 3:03 pm

    Hey folks,

    So I’ve been trying to switch my website from the old UA Google Tag (gtag.js) to GA4. I’ve managed to create a new GA4 property and hooked it up to the UA Tag. Here’s what I’m pondering though: will I still be able to nab all the traffic using the same old gtag.js code snippet even past that July 1, 2023 deadline?

    Is there some way I can ride the wave with the Google Analytics UA (that old JS snippet) without having to meddle with the gtag.js code on my HTML site? I really don’t wanna mess with my code base and Google Tag Manager is out of the question for me.

    Any ideas? Your help would mean a lot.


    New Ga4 tag connected with Old UA Tag

    Isabella replied 11 months, 2 weeks ago 3 Members · 2 Replies
  • 2 Replies
  • John

    16 June 2022 at 1:58 pm

    Hey Yash,

    You bet! Your current approach is considered a “Minimum Viable Product”(MVP) migration – kind of like the basic, ready-to-go version. As long as you’re using tracking mainly just for the heck of it and not for any heavy-duty, data-driven business decisions, you’re good to go with your old UA code.

    When, or if, you ever feel the need of diving more into GA4, you always have the freedom to make the switch. So no worries about meddling with your existing code or pulling your hairs out over Google Tag Manager.

    Hope that clears it up.


  • Isabella

    25 January 2023 at 5:44 am

    Hey Yash, once the July 1, 2023 deadline hits, the old UA Google Tag will stop collecting data. That means you will need to switch over to GA4 by installing the new tag in your codebase. As much as I understand that you wouldn’t want to meddle with your codebase, I’m afraid it’s inevitable if you want to continue collecting data with Google Analytics.

Log in to reply.