|
|
@ -1,6 +1,7 @@
|
|
|
|
import posthog from 'posthog-js';
|
|
|
|
import posthog from 'posthog-js';
|
|
|
|
import { sharedEvent } from '@capital/common';
|
|
|
|
import { sharedEvent } from '@capital/common';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
posthog.init('phc_xRCv3qbbOBMQkz31kbYMngXxn7Ey5JMu0BZIFktO6km', {
|
|
|
|
posthog.init('phc_xRCv3qbbOBMQkz31kbYMngXxn7Ey5JMu0BZIFktO6km', {
|
|
|
|
api_host: 'https://app.posthog.com',
|
|
|
|
api_host: 'https://app.posthog.com',
|
|
|
|
autocapture: false, // 关闭autocapture以节约事件用量
|
|
|
|
autocapture: false, // 关闭autocapture以节约事件用量
|
|
|
@ -49,3 +50,6 @@ sharedEvent.on('loginSuccess', (userInfo) => {
|
|
|
|
temporary: userInfo.temporary,
|
|
|
|
temporary: userInfo.temporary,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
} catch (err) {
|
|
|
|
|
|
|
|
console.error(err);
|
|
|
|
|
|
|
|
}
|
|
|
|