Skip to content

Commit

Permalink
Merge pull request #6 from BetaNYC/google-analytics
Browse files Browse the repository at this point in the history
added the scirpt
  • Loading branch information
CloudLun authored Dec 21, 2023
2 parents e15bcff + b1a13c4 commit 8872d72
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import './globals.css'

import Script from 'next/script'

import type { Metadata } from 'next'
import { Source_Sans_3 } from 'next/font/google'

Expand All @@ -18,6 +20,15 @@ export default function RootLayout({
return (
<html lang="en">
<head>
<Script async src="https://www.googletagmanager.com/gtag/js?id=G-TGS7CMBMHE" />
<Script>
{`
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-TGS7CMBMHE');
`}
</Script>
<link rel="icon" href="/app/BetaNYC-favicon.svg" type="image/svg" sizes="any" />
<link
href="https://api.mapbox.com/mapbox-gl-js/v2.15.0/mapbox-gl.css"
Expand Down

0 comments on commit 8872d72

Please sign in to comment.