BlueWallet/analytics.js
2019-07-20 14:27:36 +01:00

19 lines
408 B
JavaScript

import amplitude from 'amplitude-js';
amplitude.getInstance().init('8b7cf19e8eea3cdcf16340f5fbf16330', null, {
useNativeDeviceInfo: true,
});
let A = function(event) {
amplitude.getInstance().logEvent(event);
};
A.ENUM = {
INIT: 'INIT',
GOT_NONZERO_BALANCE: 'GOT_NONZERO_BALANCE',
CREATED_WALLET: 'CREATED_WALLET',
CREATED_LIGHTNING_WALLET: 'CREATED_LIGHTNING_WALLET',
};
module.exports = A;