mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 10:01:40 -05:00
14 lines
No EOL
547 B
JavaScript
14 lines
No EOL
547 B
JavaScript
trackEvent = function(event, properties){
|
|
console.log('trackevent: ', event, properties);
|
|
var properties= (typeof properties === 'undefined') ? {} : properties;
|
|
//TODO
|
|
// add event to an Events collection for logging and buffering purposes
|
|
if(Meteor.isClient){
|
|
if(typeof mixpanel.track !== 'undefined'){
|
|
mixpanel.track(event, properties);
|
|
}
|
|
if(typeof GoSquared !== 'undefined' && typeof GoSquared.DefaultTracker !== 'undefined'){
|
|
GoSquared.DefaultTracker.TrackEvent(event, JSON.stringify(properties));
|
|
}
|
|
}
|
|
} |