Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support to timeEvent for measure time duration the events #60

Closed
nicobytes opened this issue Apr 21, 2017 · 2 comments
Closed

Add support to timeEvent for measure time duration the events #60

nicobytes opened this issue Apr 21, 2017 · 2 comments

Comments

@nicobytes
Copy link

nicobytes commented Apr 21, 2017

For example:
In SingInPage:
mixpanel.time_event("Log Out");
In LogoutPage:
mixpanel.track("Log Out");

Result: Session length tracking

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

@nicobytes nicobytes changed the title Add timeEvent for measure time duration the events Add support to timeEvent for measure time duration the events Apr 21, 2017
@samzilverberg
Copy link
Owner

it actually already exists since version 2.2.0 2016-07-31.
but i forgot to document it in the readme.
will quickly add to readme.
window.mixpanel.timeEvent(eventName, onSuccess, onFail)

@nicobytes
Copy link
Author

Hey! Now in Ionic-native there is support for timeEvent danielsogl/awesome-cordova-plugins#1536

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants