Skip to content

Commit

Permalink
Temp add hardcoded GA, pending dynamic load fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rob-mosher committed Sep 7, 2024
1 parent e7b4b72 commit 919bb40
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
11 changes: 11 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Who is the Cutest?</title>

<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-4M81HGM6BL"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-4M81HGM6BL');
</script>

</head>
<body>
<div id="root"></div>
Expand Down
4 changes: 2 additions & 2 deletions src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import React from 'react'
import ReactDOM from 'react-dom/client'
import App from './App.tsx'
import loadGoogleAnalytics from './utils/analytics.ts'
// import loadGoogleAnalytics from './utils/analytics.ts'
import './index.css'

loadGoogleAnalytics()
// loadGoogleAnalytics()

ReactDOM.createRoot(document.getElementById('root')!).render(
<React.StrictMode>
Expand Down

0 comments on commit 919bb40

Please sign in to comment.