snowplow / snowplow-unity-tracker

Snowplow event tracker for Unity. Add analytics to your Unity games and apps
http://snowplowanalytics.com
Apache License 2.0
16 stars 11 forks source link

Support for page ping #73

Open bawahakim opened 1 year ago

bawahakim commented 1 year ago

Is your feature request related to a problem? Please describe. Seeing how user engagement is a vital analytics for many, it would be nice if we could have page pings as the javascript tracker has.

Describe the solution you'd like Add a page ping feature to the sdk. It could be a method that loops every X seconds (heart beat delay), and takes in an Action as a parameter. If the action is invoked (from the consumer) within the heart beat delay, a page ping event is sent to snow plow. This way the consumer can decide what they consider as an action that keeps the page ping alive.

It would probably also require a method to set the current active page/view, or alternatively we could use the screen view event and use the id from the last event.