Skip to content

Commit

Permalink
Adding analytics.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericbenwa committed Jan 15, 2025
1 parent 80d58a6 commit 9395399
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { Metadata } from "next";
import Head from 'next/head';
import './globals.css';
import { Source_Sans_3 } from 'next/font/google';
import Header from "./components/Header";
Expand All @@ -22,6 +23,18 @@ export default function RootLayout({
}>) {
return (
<html lang="en">
<Head>
{/* Google Analytics */}
<script async src="https://www.googletagmanager.com/gtag/js?id=G-DF2LWWYFZ3"></script>
<script>
{`
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-DF2LWWYFZ3');
`}
</script>
</Head>
<body
className={sourceSansPro.className}
>
Expand Down

0 comments on commit 9395399

Please sign in to comment.