Closed rafmagana closed 11 years ago
Just realized that's because mixpanel.track
send the request directly to the API, and that I should have used mixpanel.append_track
to track the event via Javascript, I still think there should be a way to send distinct_id
and name_tag
, check this out https://mixpanel.com/docs/api-documentation/http-specification-insert-data. name_tag
can be set via mp_name_tag
, but well, in the meantime I'm going to use mixpanel.append_track
, thanks!
I am glad you figure it out. Closing this now.
Say I have an user which visited /my_page, and then clicked something which I track in a controller:
In WhateverController#my_action:
In the Mixpanel site I see:
Mixpanel instance has async and persiste = true, I'm using the Middleware which both options to true too.
If I manually track the event in the JS console it works, Mixpanel shows:
Any idea? thanks in advance.