Skip to content

Commit

Permalink
feat: google analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
Icaruk committed Jun 17, 2024
1 parent 1d3e7ba commit 7ffa70f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,16 @@ export default function App() {
</BrowserRouter>

<Helmet>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-NZ50J7EJH3" />
{/* biome-ignore lint/style/useSelfClosingElements: <explanation> */}
<script
async
src="https://www.googletagmanager.com/gtag/js?id=G-NZ50J7EJH3"
></script>

<script>
{`
window.dataLayer = window.dataLayer || [];
function gtag(){
dataLayer.push(arguments);
}
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-NZ50J7EJH3');
Expand Down

0 comments on commit 7ffa70f

Please sign in to comment.