Learn business growth with Google Analytics 4 Forums Google Analytics 4 . How to restart GA4 as a new session after a certain event Reply To: . How to restart GA4 as a new session after a certain event

  • Oliver

    Member
    24 February 2023 at 7:09 pm

    Unfortunately, the ‘sessionControl’ function is not available in Google Analytics 4. In GA4, the session automatically times out after 30 minutes of no activity, or at midnight local time, and you cannot override or manipulate this. As for the ‘ga()’ command you tried, it belongs to the older Universal Analytics codebase and is not compatible with GA4. You might want to consider a workaround like changing some user-scoped custom dimension on each ‘special’ event. It would start a new user, and as a result, a new session in GA4. However, keep in mind that this workaround might have other implications on your data and should be tested carefully.