Skip to content

Commit

Permalink
fix google analytics script tag
Browse files Browse the repository at this point in the history
  • Loading branch information
ErnestTeluk committed Apr 2, 2024
1 parent 8c678be commit 8ef0591
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 20 deletions.
9 changes: 9 additions & 0 deletions playground/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@
<link rel="icon" href="/sparrowqlLogo.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Sparrowql - Playground</title>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-ZDM0DBJJVX"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-ZDM0DBJJVX');
</script>
</head>
<body>
<div id="root"></div>
Expand Down
12 changes: 1 addition & 11 deletions playground/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
"lz-string": "1.5.0",
"prettier": "2.8.8",
"typescript": "5.1.3",
"vite": "4.4.5",
"vite-plugin-radar": "0.9.3"
"vite": "4.4.5"
}
}
8 changes: 1 addition & 7 deletions playground/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react-swc'
import { vitePluginRadar } from 'vite-plugin-radar'

// https://vitejs.dev/config/
export default defineConfig({
base: '/sparrowql/',
plugins: [react(), vitePluginRadar({
enableDev: false,
gtm: {
id: 'G-ZDM0DBJJVX'
}
})],
plugins: [react()],
})

0 comments on commit 8ef0591

Please sign in to comment.