Learn business growth with Google Analytics 4 Forums Google Analytics 4 Transitioning from UA to GA4: Implications and Code Reuse

  • Transitioning from UA to GA4: Implications and Code Reuse

    Posted by Grayson on 6 July 2022 at 9:30 am

    “So I just switched from Universal Analytics (UA) to GA4 with the assistant. Now I’m kind of worried. Will GA4 stop collecting data if UA does? Also, can I keep using my old analytics.js code and the old keys? I’d rather not change the code if I don’t have to. What happens when data collection stops?”

    Aiden replied 11 months, 2 weeks ago 3 Members · 2 Replies
  • 2 Replies
  • Emily

    16 December 2022 at 6:19 pm

    No worries at all! When you switch to GA4, it operates independently and won’t stop collecting data if UA stops. You do need to replace your old analytics.js code and keys with the new GA4 ones because they’re different systems. If data collection stops, simply, you’ll just stop receiving updates on user interactions with your site.

  • Aiden

    6 July 2023 at 3:07 am

    With GA4, you’re effectively starting a new data collection stream independent of Universal Analytics. So, GA4 will continue to collect data even if UA stops. However, concerning your old analytics.js code – GA4 uses a different measurement model (gtag.js) and doesn’t support the old UA (‘analytics.js’) code. GA4 properties use a different type of tracking ID, so you’ll have to replace the old one. Despite the changes, don’t worry about your data – when UA stops collecting data, it isn’t deleted. It will still be accessible until the property is deleted.

Log in to reply.