Skip to content

Commit

Permalink
chore: add google analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
aj3sh committed Sep 1, 2024
1 parent bad2a0f commit 1359df1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,19 @@
</head>
<body>
<div id="root"></div>
<script
async
src="https://www.googletagmanager.com/gtag/js?id=G-BV7J16KCZ0"
></script>
<script>
window.dataLayer = window.dataLayer || []
function gtag() {
dataLayer.push(arguments)
}
gtag('js', new Date())

gtag('config', 'G-BV7J16KCZ0')
</script>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
"react-dom": "^18.3.1"
},
"devDependencies": {
"firebase": "^10.13.1",
"@eslint/js": "^9.9.0",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react": "^4.3.1",
"eslint": "^9.9.0",
"eslint-plugin-react-hooks": "^5.1.0-rc.0",
"eslint-plugin-react-refresh": "^0.4.9",
"firebase": "^10.13.1",
"globals": "^15.9.0",
"typescript": "^5.5.3",
"typescript-eslint": "^8.0.1",
Expand Down

0 comments on commit 1359df1

Please sign in to comment.