Closed MoeNick closed 3 months ago
I'll update this issue by Tuesday this week!
You can find the guides to install PostHog on the project here -> Link to PostHog Doc
NOTE: You will need an API key, I'm not sure if I can just paste it here, whoever wants to install it can reach out to me for the API Key!
We need to set up the PostHog Auto capture feature to ensure the session recording is working. Find the Docs here -> Link to PostHog doc
We have to send some custom events to set up more precise Funnels! For sending custom events -> Link to PostHog Doc
For each of these steps, we need to send a custom event.
Event name: Just landed
Event name: Opened Login Page
Event name: User Logged In
Custom properties: Login by:
Login Method
Event name: User goes to the Categories page
Custom properties: Category:
Name of the category they have selected
!!!
Event name: Filtered
Custom properties:
categories:
List of the categories they've Filtered
Attempts:
ex: First time
Event name: Ranked
categories:
List of the categories they've Ranked
Event name: Attested
Custom properties:
categories:
List of the categories they've Attested
Event name: Comparing categories
Custom properties:
categories:
Categories they are comparing
Event name: Attested between categories
Custom properties:
categories:
Categories they are attesting to
hey @jainkrati @mmahdigh @mosaeedi, Can we start with steps 1 and 2? Those are just a few lines of code and shouldn't require much work for us to at least get basic analytics (if we need step 3 later on we can worry about it later).
Spending an hour on this for thses 2 first issues.
@MoeNick Are there any blockers on this?
For Pairwise, we are using the EU servers from PostHog,
So to be able to connect to the PostHog account we need to use ...eu.i.posthog...
domain,
Right now, Pairwise is trying to connect to ...us.i.posthog...
and return an error.
Tagging @mmahdigh @lovelgeorge99 to fix
@mmahdigh you just need to change the environment variable for POST_HOG_HOST to https://eu.i.posthog.com
Done. Ready for retesting. @mosaeedi @MoeNick
It's working! You can close this issue if you need.
@mosaeedi created the account.
https://posthog.com/docs/libraries/js
Funnel rough: