I’m making a web application that’s focused around watching embedded content. I would like the application client to send a “heartbeat” type of signal to GA (Google Analytics) to keep the session going. It seems now that if the visitor watches a video for 5-10 minutes GA assumes that he has left the page and registers an action from the user as a new session.
I’m making this assumption after I got a few hundred people to test the application and the GA Real-time beta registered ~100 people on the page. After a few minutes the numbers started to drop drastically, even though almost all the visitors were still using the application to watch live streams.
Thanks
I would fire an event every 10 minutes with opt_noninteraction set as true.
You could even set the timeout to be longer. Maybe 25 minutes. It just needs to be shorter than 30min and longer than 10 seconds, otherwise it would be impacted by hit throttling.
Update
Note that GA also has a restriction of 500 hits you can send per session/visit. Using something like this can lead you to reaching this limitation more often. After the 500 hits/session limit is reached any extra info sent by the user is just ignored by Google Analytics for that specific session.