Learn business growth with Google Analytics 4 Forums Google Analytics 4 What is the impact of calling window.ga on July 1st during GA4 migration?

  • What is the impact of calling window.ga on July 1st during GA4 migration?

    Posted by Isaiah on 8 June 2022 at 10:16 am

    So, Google Analytics UA properties aren’t going to gather events anymore from July 1st ’cause we’re all switching to GA4, right? Now, I’ve got these custom events set up using the old school UA site method, window.ga. What’s going to happen to these when I try to use them in the browser after the big switch? Are we talking Javascript errors here?

    Sophia replied 1 year, 5 months ago 3 Members · 2 Replies
  • 2 Replies
  • John

    Member
    5 September 2022 at 11:45 am

    After the switch to GA4, if you’ve not updated your code and keep using the old window.ga method for tracking, it won’t throw Javascript errors in the browser. The function would still technically be valid, but the custom events you’re trying to track wouldn’t be sent to your GA account, as the UA property would no longer be operational. To consistently track events, you need to migrate to the GA4’s event model structure and change your tracking setup accordingly.

  • Sophia

    Member
    19 January 2023 at 6:07 pm

    Once UA properties stop collecting data, if you continue to use the old tracking code (like the window.ga method), it’s not going to send data to Google Analytics anymore. This might not necessarily show up as Javascript errors in your console, the event information just won’t be passed along anymore. So, you won’t see these events in your Analytics data. It is recommended to transition to Google Analytics 4 (GA4) and update your custom event tracking to suit the GA4 system.

Log in to reply.