Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

Commit

Permalink
feat: add google analytics tag
Browse files Browse the repository at this point in the history
  • Loading branch information
mongj committed Dec 18, 2023
1 parent 5d3a25a commit e8724be
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { Inter } from 'next/font/google';
import Head from 'next/head';
import Link from 'next/link';
import { useRouter } from 'next/router';
import Script from 'next/script';

const inter = Inter({ subsets: ['latin'] });

Expand Down Expand Up @@ -48,6 +49,16 @@ export default function Home() {
content="Transcribe Youtube videos and download transcripts for free. Supports text, JSON, SRT, WebVTT."
/>
</Head>
<Script src="https://www.googletagmanager.com/gtag/js?id=G-MS9SB3DDGX" />
<Script id="google-analytics">
{`
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-MS9SB3DDGX');
`}
</Script>
<header className="flex-none bg-slate-50">
<Navbar showSearchBar={false} />
</header>
Expand Down

0 comments on commit e8724be

Please sign in to comment.