https://github.com/patrickjs/angular-mixpanel.js
An Angular.js adapter for Mixpanel with a development mode
https://github.com/patrickjs/angular-mixpanel.js
Last synced: 19 days ago
JSON representation
An Angular.js adapter for Mixpanel with a development mode
- Host: GitHub
- URL: https://github.com/patrickjs/angular-mixpanel.js
- Owner: PatrickJS
- License: mit
- Created: 2014-12-17T01:23:22.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-12-18T19:50:56.000Z (over 11 years ago)
- Last Synced: 2024-10-24T10:11:22.451Z (over 1 year ago)
- Size: 133 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
angular-mixpanel.js
===================
An Angular.js adapter for Mixpanel with a development mode
```javascript
angular.module('app', [])
.config(function($mixpanelProvider) {
$mixpanelProvider.token = 'rtyrtfhjjk';
})
.controller('AppController', function($scope, $mixpanel, Auth) {
$scope.login = function(user) {
Auth.login(user).then(function() {
$mixpanel.track('LOGIN');
});
};
});
```