I’m trying to add mixpanel through segment, but not sure how to track events and identify users.
Hi Reza - Segment’s API calls are relatively advanced, so I would definitely recommend reaching out to them directly, as they’ll have the most expertise when advising you how to format their code.
Hey Reza! Andy from Segment here.
If you are using Segment from the browser, make sure you add our JS snippet (instructions here):
Then, in order to ‘.identify()’ a user:
And to send a ‘.track()’ call:
These would map to Mixpanel’s ‘window.mixpanel.people.set’ and ‘window.mixpanel.track’.
More details here:
If you have more questions, please email email@example.com
Thanks a bunch for chiming in, Andy! Super helpful.
Hii I am still trying to figure out how I can identify users with segment on my Unbounce landing page!? Where do I add the segment code on my Unbounce landing page in order to identify a user?
This is my LP: http://sales.bastie.cc/webinar-signup/
Nothing seems to work thanks guys!
Hmm that should work! I’m on your site (http://sales.bastie.cc/webinar-signup/) and it looks like our analytics.js is being loaded. I didn’t see any ‘.identify()’ calls being made, however. Is the above setup (the code you have in your screenshot) live currently on the site?
Please send us a note at firstname.lastname@example.org and we can dig into it for you!