angulartics / angulartics-mixpanel

Mixpanel plugin for Angulartics
MIT License
34 stars 27 forks source link

Tracking time is not working. #33

Open Kosmonaft opened 6 years ago

Kosmonaft commented 6 years ago

I'm trying to track time (duration between events). Based on mixpanel documentation there is a method 'mixpanel.time_event' which in angulartics-mixpanel is 'registerUserTimings'. I would like to use it as '$angulartics.registerUserTimings' however I'm getting an error that registerUserTimings is unkown. If I used in in config I'm not getting any error but is not tracking anything. `app.config(['$analyticsProvider', function ($analyticsProvider) { $analyticsProvider.registerUserTimings('page viewed'); $analyticsProvider.registerUserTimings('Some event');

}]);`

I put some debuggers in angulartics-mixpanel.min.js and angulartics-mixpanel.js in for 'registerUserTimings' put is not coming at all there.

Any idea what could be wrong?