segmentio / analytics-ios

The hassle-free way to integrate analytics into any iOS application.
https://segment.com/libraries/ios
MIT License
398 stars 333 forks source link

mixpanel.time_event possible in Segment? #461

Closed benwoodward closed 8 years ago

benwoodward commented 8 years ago

Is it possible to log the data needed to measure the time of a user's session in Mixpanel, using Segment?

https://mixpanel.com/help/reference/javascript-full-api-reference#mixpanel.time_event

https://mixpanel.com/blog/2015/06/22/community-tip-session-length-tracking

f2prateek commented 8 years ago

Yes, you'll have to manually call the timeEvent method in the Mixpanel SDK, and the actual event tracking will be through Segment.

https://mixpanel.com/help/reference/ios#event-timing

[mixpanel timeEvent:@"Image Upload"];
// do some stuff.
[[SEGAnalytics sharedInstance] track:@"Image Upload"];
alejandro-vori commented 3 years ago

Hello, is this still necessary in 2021? I'm wondering how to track some sort of time event through Segment without requiring Mixpanel's timeEvent nor it's SDK installed

luiscarlin commented 3 years ago

^ wondering the same @alejandro-vori. Did you ever find the answer? I think I will have to add the mixpanel sdk to my react-native project