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

Providing analytics function for cookie.clear method in mix panel #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

GMoHughes
Copy link
Contributor

takes no arguments as input

@@ -43,6 +43,9 @@ angular.module('angulartics.mixpanel', ['angulartics'])
$analyticsProvider.registerUserTimings(function (properties, action) {
mixpanel.time_event(action);
});
$analyticsProvider.registerCookiesClear(function () {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One problem is this requires a logout handler in the core which doesn't currently exist. These register* functions are defined in an array in the core.

timelf123 added a commit to angulartics/angulartics that referenced this pull request Sep 21, 2016
Adds handler needed to clear cookies a la angulartics/angulartics-mixpanel#17
@timelf123
Copy link
Contributor

I added this handler as clearCookies in angulartics/angulartics#513

If you rename the handler to registerClearCookies I can merge

timelf123 added a commit to angulartics/angulartics that referenced this pull request Sep 23, 2016
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

Successfully merging this pull request may close these issues.

2 participants