Skip to content

Commit

Permalink
feat: Add Goolge Analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
JerryFan626 committed Jul 23, 2023
1 parent b66d03a commit ccbf7c2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions chat2db-client/.umirc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,14 @@ export default defineConfig({
localStorage.clear();
localStorage.setItem('app-local-storage-versions', 'v2');
}`,
`if (window.myAPI) { window.myAPI.startServerForSpawn() }`
`if (window.myAPI) { window.myAPI.startServerForSpawn() }`,
{ src: 'https://www.googletagmanager.com/gtag/js?id=G-V8M4E5SF61', async: true },
],
favicons: ['logo.ico'],
define: {
__ENV__: process.env.UMI_ENV,
__BUILD_TIME__: transitionTimezoneTimestamp(new Date().getTime()),
__APP_VERSION__: yarn_config.app_version || '0.0.0',
__APP_PORT__: yarn_config.app_port
__APP_PORT__: yarn_config.app_port,
},
});

0 comments on commit ccbf7c2

Please sign in to comment.