Skip to content

Commit

Permalink
Add Google Analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
andrablaj committed Jun 28, 2024
1 parent 741bda6 commit 85783e5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { NextPage } from "next";
import type { AppProps } from "next/app";
import Head from "next/head";
import Script from "next/script";

import { Layout, type LayoutClass } from "@/components/Layout/Layout";
import { formatTitle } from "@/lib/format";
Expand All @@ -20,6 +21,11 @@ type CustomAppProps = AppProps & {
export default function App({ Component, pageProps, router }: CustomAppProps) {
return (
<>
<Script
strategy="lazyOnload"
src={`https://www.googletagmanager.com/gtag/js?id=G-98W4V2NTPJ`}
/>

<Head>
<title>{formatTitle()}</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
Expand Down

0 comments on commit 85783e5

Please sign in to comment.