You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
393 B
JavaScript
18 lines
393 B
JavaScript
6 years ago
|
/* eslint-disable class-methods-use-this */
|
||
|
|
||
|
const EventEmitter = require('events');
|
||
|
const Mixpanel = require('mixpanel');
|
||
|
// require('setimmediate');
|
||
|
|
||
|
class LokiMixpanelAPI extends EventEmitter {
|
||
|
constructor() {
|
||
|
super();
|
||
|
this.mixpanel = Mixpanel.init('736cd9a854a157591153efacd1164e9a');
|
||
|
}
|
||
|
track(label) {
|
||
|
this.mixpanel.track(label);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
module.exports = LokiMixpanelAPI;
|