Search code examples
androidgoogle-analyticsgoogle-analytics-apigoogle-analytics-firebase

Android google analytics keep session alive


My app plays audio books and therefore there might be about an hour without users activity but I want to know in google analytics how long the app in use (session duration). I've tried to set timeout about 5000 secs, but it doesn't work and probably is not a good way...
Is there a way to send to google analytics messages like "I'm still alive" ?


Solution

  • I've found the solution: it's an option in google analytics webUI.
    www.google.com/analytics/web/#management/Settings/ID/%3Fm.page%3DTrackingSessionSettings/