News for hackers. Stuff that matters.
Re:An open-source alternative to Mixpanel by weejewel on Tuesday May 21, 2024 @04:52PM (#40433747)
Looks really good!

How do you create funnels without cookies? In other words, how do you track sessions?

Re:An open-source alternative to Mixpanel by lindesvard on Tuesday May 21, 2024 @04:58PM (#40433833)
Thanks! Similar to how Plausible is doing. Each user gets a unique identifier which is based on `hash(domain+useragent+ip+salt)` (the salt is generated each day).
Re:An open-source alternative to Mixpanel by klaussilveira on Tuesday May 21, 2024 @05:34PM (#40434278)
That does create clusters for users that work at the same company, with the same company-issued devices. Or iPhones in a New York City block.
Re:An open-source alternative to Mixpanel by lindesvard on Tuesday May 21, 2024 @05:52PM (#40434511)
A bit more factors tbh. User agents have browser, version etc.

iPhone in New York block still have different IP, versions etc

But I hear you, it’s better than cookies and that’s the entire point.

You can also provide a user id, more info here https://news.ycombinator.com/item?id=40434115

Re:An open-source alternative to Mixpanel by dylan604 on Tuesday May 21, 2024 @05:53PM (#40434525)
This is the same problem that I had with parsing logs. There's no way to know that mom+dad+kid all using the same model device were 3 different users.
Re:An open-source alternative to Mixpanel by metadat on Tuesday May 21, 2024 @05:15PM (#40434053)
If the salt changes daily, how is. It possible to know how many users returned after > 24 hrs?

Edit: @lindesvard- Got it, thanks for clarifying!

Re:An open-source alternative to Mixpanel by lindesvard on Tuesday May 21, 2024 @05:20PM (#40434115)
You'll never know any returning users after salt changes. This is the hole point with privacy first.

But you have options tho. Compared to other tools that is privacy first, you can actually pass your own user id. You can get this ID from where ever you want (db, cookie, localStorage. Its up to you whom implement it)

But I want to have a middle ground where privacy is important but you have the options to decide what path you take.

Re:An open-source alternative to Mixpanel by pc86 on Tuesday May 21, 2024 @09:55PM (#40436570)
So maybe an obvious question but just to be clear, if you pass your own user ID you can track that particular user's flow across multiple sessions/days/etc?
Re:An open-source alternative to Mixpanel by lindesvard on Wednesday May 22, 2024 @03:05AM (#40438133)
Yes! So its a matter of priorities. Is privacy or retention most important? Than you can decide how to track users.