I want to track my website user engagement. Basically, i want to track user time spent on my website on a daily basis. And, I want to export those data on my system or my database.
Any help will be appreciated!
Best answer by Peishan
Let’s see if the following works for you.
We capture session duration by default. So if you change your session definition to 24 hours, you’d be able to calculate the average user time spent.
You can change the session definition if you’re a project owner or admin, under the project settings.
You can then run the following report in Insights to get the average duration: https://mixpanel.com/s/1dGIgd
Check out our API documentation to export the data into your data warehouse: https://developer.mixpanel.com/reference/data-export-api