Basic product analytics in a budibase app #6757
Replies: 3 comments 2 replies
-
This is fantastic - thanks for sharing! I'm curious what the use-case for your app was? For example in the past I've worked on a project that had analytics between form steps to compare how long it took users in a call centre to enter information in the new system compared the old one. |
Beta Was this translation helpful? Give feedback.
-
This is brilliant @raziele |
Beta Was this translation helpful? Give feedback.
-
With the help of @ConorWebb96 in another of my questions, it is now possible to make semi-permanent tracking for each user. This will make it possible to distinguish between PageViews and UserViews in PostHog. |
Beta Was this translation helpful? Give feedback.
-
One of my apps is basically a fancy form built with several steps.
I wanted to be able to:
For this purpose, I used PostHog which is a great product analytics platform.
Here's how I did it:
one can basically send an event wherever it is possible to execute a query.
A tricky part in this design was how to identifying users.
Since the app has public access I'm not able to fetch the user details from BB, and there is no capability to generate a unique ID for every user who visits the app.
To overcome this, I used UUID Generator. It's a great little product that allows you to generate a unique ID whenever you call their API. I used a REST API source again to create a UUID-generating query:
To use it within the app, I needed a way to execute the query every time a user enters the app and save the result so I can pass it to all the PostHog event queries. I did it by placing a data provider directly under the form (according to the guidelines of a data provider, this query will be executed only once when the app is opened).
BTW, another interesting usage I found for UUID is to allow my users to identify themselves if they want to.
I do it by logging the UUID with the results of the form upon submission AND presenting the UUID to the user as a submission ID - telling them they can use it for future inquires.
Drawbacks:
On both points I decided this is good enough so I didn't make any additional efforts in this direction.
Beta Was this translation helpful? Give feedback.
All reactions