mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
fix(core): add env info to tracks (#6313)
This commit is contained in:
@@ -14,6 +14,10 @@ function RootRouter() {
|
||||
useEffect(() => {
|
||||
mixpanel.track_pageview({
|
||||
page: location.pathname,
|
||||
appVersion: runtimeConfig.appVersion,
|
||||
environment: runtimeConfig.appBuildType,
|
||||
editorVersion: runtimeConfig.editorVersion,
|
||||
isSelfHosted: Boolean(runtimeConfig.isSelfHosted),
|
||||
});
|
||||
}, [location]);
|
||||
return <Outlet />;
|
||||
|
||||
Reference in New Issue
Block a user