Skip to content

Commit

Permalink
feat: add ga script
Browse files Browse the repository at this point in the history
  • Loading branch information
ooooorobo committed Aug 12, 2023
1 parent 9805397 commit 7af84b7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/client/renderer.tsx
Expand Up @@ -21,6 +21,14 @@ const defaultHtml = (assetPath: string, content: string) => `
<link rel="icon" type="image/png" sizes="32x32" href="${assetPath}/favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="${assetPath}/favicon/favicon-16x16.png">
</head>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-GNDJL4812E"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-GNDJL4812E');
</script>
<body>
<div id="root">${content}</div>
</body>
Expand Down

0 comments on commit 7af84b7

Please sign in to comment.