Learn business growth with Google Analytics 4 › Forums › Google Analytics 4 › Making the Switch to GA4: Handling Legacy Code › Reply To: Making the Switch to GA4: Handling Legacy Code
-
Hey there! Great job on setting up GA4 and connecting it with your original UA. Now, you don’t have to worry about the UA discontinuation, GA4 got you covered.
If you feel the need, you can start shifting to GA4 more seriously by tracking onto a different property, while slowly getting your data folks familiar with GA4, including understanding the different metrics and dimensions.
You may wonder about why we’re messing around with gtag if analytics.js serves the same purpose. Well, in theory, yes. But Google only permits analytics.js tracking format to transform it into GA4 data format and unfortunately, updates or maintenance for analytics.js are not expected after the discontinuation. It’ll keep working but limitations may arise over time.
Your next move could be to eliminate your direct inline analytics function calls and transfer this logic to Google Tag Manager, its rightful place. So basically, you’re on the right track, now it’s just about progressing step-by-step. Keep it up!