mixpanel / mixpanel-node

A node.js API for mixpanel
http://www.mixpanel.com
MIT License
476 stars 161 forks source link

Adding explicit support for timed events #124

Open tobiasc opened 6 years ago

tobiasc commented 6 years ago

In the javascript API I can call time_event (https://mixpanel.com/help/reference/javascript-full-api-reference#mixpanel.time_event), but the node API does not have this. Could this be added?

As a work-around I'm calculating the duration manually + added the $duration property to the track event. Based on the logic found here: https://github.com/mixpanel/mixpanel-js/blob/master/src/mixpanel-core.js#L1068

alekplay commented 5 years ago

Bumping this since there has been no activity