Learn business growth with Google Analytics 4 Forums Google Analytics 4 Considerations for Tracking Asynchronous Data in GA's page_view Event Reply To: Considerations for Tracking Asynchronous Data in GA's page_view Event

  • Cameron

    Member
    5 May 2023 at 10:37 pm

    The problem this person is experiencing is that they are trying to track who visits their web pages (known as “page_view events”) while at the same time collecting certain information from those visitors. The difficulty emerges because the required information isn’t always immediately available and only comes later. This is due to the fact that web pages these days are often composed of many smaller parts (which we call “components”) that grab their own information. A possible solution is to use a tracking system that waits until all the data is ready before triggering a “page_view event”, but this becomes more complex when there are many components fetching data. They’ve suggested a workaround that involves setting up a system to check which data fields should be sent based on the page route, but they worry it would be hard to maintain. They’re also concerned that trying to include asynchronous data in these events might not be good practice and further complicate their analytics.