Hacker News new | ask | show | jobs
by le_isms 5072 days ago
Really neat! I might be a newbie to this, but how do you get those client-side javascript function calls over to the serverside? I am assuming the client's browser is running the Mixpanel Javascript and that your events are serverside.
2 comments

Yep, like rprime said, we're sending tracking events from the server (let me plug http://libsaas.net here).

So instead of using mixpanel.track from Javascript, you do an AJAX call to your own server and schedule a Celery job there.

There's an issue with passing Mixpanel's super properties to your server-side handler, but that's the general idea.

Gotcha, I'm going to have to try this, thanks for the insight!
I think he is not talking about the javascript events. Probably they fire the events in the backend. [1]

[1] https://mixpanel.com/docs/integration-libraries/