insomnia/app/analytics/index.js

20 lines
419 B
JavaScript
Raw Normal View History

2016-11-10 01:34:03 +00:00
import * as segment from './segment';
import * as google from './google';
export function initAnalytics(accountId) {
segment.init();
google.init(accountId);
}
export function trackEvent (...args) {
google.trackEvent(...args)
}
export function setAccountId (accountId) {
google.setAccountId(accountId);
}
export function trackLegacyEvent (event, properties) {
segment.trackLegacyEvent(event, properties)
}