How to capture data for custom events which are session based?

We need to track data only for a certain part of our app like session based.
For example, after login I select a particular page and until I exit the app or app goes in background or app is force shut, until then I need to capture the data. Basically starting point to capture data for this custom event is after few app experiences and end point is when app is exited. How can we achieve this session based data capturing using Unity Analytics?

You can send the start point and end point events in the same session, and then analyze these events based on the same session. To analyze the session data, you need to export the raw data, which requires a pro license.

1 Like

Thanks @SamOYUnity3D , I have pro license however I am finding it too hard to analyze data using raw data .tsv. There are just too many sessions and i am not able to view the details inside session like a graph or a chart we have for others. Can you please suggest an easier way to analyse?

I hope this helps: Advanced Queries With Unity Analytics And Raw Data Export

In addition, a Unity Analytics user has created and released a tool that will use our Raw Data Export feature to put that data into a PostgreSQL table.
https://github.com/shinyshoe/ua2sql
They gave a presentation about this tool at Unite LA 2016:

https://www.youtube.com/watch?v=hNkVwlOJvT4

1 Like

@SamOYUnity3D , how can we end a session manually?
I see AnalyticsSessionInfo, is read only

A session is ended when the user backgrounds the game for 20 minutes, or exits the game. There is no API call, a user would still be playing the game if so.