mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 06:39:48 +00:00
20 lines
419 B
JavaScript
20 lines
419 B
JavaScript
|
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)
|
||
|
}
|