0
For those who don’t know, to calculate the "average session time" of a user, Google Analytics proceeds as follows: https://support.google.com/analytics/answer/1006253?hl=pt-BR
To clarify what an "engagement hit is": http://cutroni.com/blog/2012/02/29/understanding-google-analytics-time-calculations/
I have an Android app that has 2 screens: the first is initial (where the user chooses which content to see), the second has the content chosen. On the home screen, the user spends about 5 seconds to select the content that will see, on the second screen, because it is the content itself, the user spends about 30 seconds. So, the total user session time should be 35 seconds, but unfortunately, since the second screen doesn’t have an "engagement hit", the 30 seconds spent on it are "lost". This is very bad for the statistics of my application.
I was wondering if I could create an event on the second screen that automatically fires every 5 seconds to "force" an engagement hit and get the actual duration of the user’s session. Maybe an automatic shooting of some data or hit to the Analytics through the Event tracker, do not know.
Could someone help me? Any ideas to get around this flaw?
I contacted Google support, but they could not give me satisfactory answers.
Thank you.
My suggestion to give continuity in calculating engagement would be to trigger events of Pageview during the life cycle of
Activity
. I believe you already do this during theonCreate
, but if you do inonPause
andonResume
for example (instead ofonCreate
)?. If the user leaves your application, it will generate a record of that output. Now the only problem is whether Pageview’s "duplicates" will not cause problems, because it will always have at least 2 for eachActivity
.– Wakim
@Wakim Good idea, looked now, the documentation asks to add events in onCreate and onStop (https://developers.google.com/analytics/devguides/collection/android/v3/#tracking-methods). When onStop occurs, the hit fired should be engagement. My GA session time should be correct then. The definition they give to this "engagement hit" that complicates the understanding of everything. Thank you very much.
– Felipe