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

Clear up confusion in readme.md about initializing mixpanel #13

Open
fotoflo opened this issue Jul 23, 2015 · 0 comments
Open

Clear up confusion in readme.md about initializing mixpanel #13

fotoflo opened this issue Jul 23, 2015 · 0 comments

Comments

@fotoflo
Copy link

fotoflo commented Jul 23, 2015

The docs say:

angular.module('myApp', ['analytics.mixpanel']);

Minimally you'll need to configure your API key like so:

 angular.module('analytics.mixpanel')
        .config(['$mixpanelProvider', function($mixpanelProvider) {
            $mixpanelProvider.apiKey('<your project token>'); // your token is different than your API key
        }]);

However I think the second module should also be 'myApp'

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

1 participant