tahowallet / dapp

Subscape dApp
https://app.taho.xyz/
MIT License
3 stars 4 forks source link

Create posthog dashboards and add more tracking #689

Open jagodarybacka opened 7 months ago

jagodarybacka commented 7 months ago
### Tasks
- [ ] https://github.com/tahowallet/dapp/issues/696
- [x] Create chart - average time spent on the dapp
- [x] Create chart - average number of users at any given time
- [x] Create chart - realms opened (by date, by realm id)
- [x] Create chart - visitors device (desktop or mobile)
Shadowfiend commented 7 months ago

Pageleave is going to be very hard/maybe impossible due to browser limitations, fwiw.

Thinking some more here, we might be able to do a little bit more in PostHog by measuring anything that has >15 minutes (or whatever) between actions as a new “session” for our purposes. We can fiddle with the constant a bit.

Note that realm opens already have a chart, but we don't have the realm id with them right now.

jagodarybacka commented 7 months ago

I was thinking we can use before unload event 🤔

realm opens already have a chart, but we don't have the realm id

I think it was fixed a couple days ago? Will check

ioay commented 6 months ago

I've just added the following charts to Posthog: https://app.posthog.com/insights?createdBy=61067. @Shadowfiend could you confirm if it is enough, do we need an additional dashboard for this analytics?

jagodarybacka commented 6 months ago