File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ import "@/styles/globals.css";
2
2
import { Toaster } from "react-hot-toast" ;
3
3
import { ThemeProvider } from "@/components/theme-provider" ;
4
4
import { GeistSans } from "geist/font/sans" ;
5
+ import Script from "next/script" ;
5
6
import { Metadata } from "next" ;
6
- import { Analytics } from "@vercel/analytics/next" ;
7
7
8
8
export const metadata : Metadata = {
9
9
metadataBase : new URL ( "https://papers.codechefvit.com/" ) ,
@@ -95,6 +95,18 @@ export default function RootLayout({
95
95
name = "google-site-verification"
96
96
content = "SjVFuH8GzIj3Ooh2JcWufBoSMWTzo77TACHomonCKVs"
97
97
/>
98
+ < head >
99
+ < Script
100
+ async
101
+ src = "https://www.googletagmanager.com/gtag/js?id=G-J5CD036GJP"
102
+ > </ Script >
103
+ < Script id = "google-analytics" >
104
+ { `window.dataLayer = window.dataLayer || [];
105
+ function gtag(){dataLayer.push(arguments);}
106
+ gtag('js', new Date());
107
+ gtag('config', 'G-J5CD036GJP');` }
108
+ </ Script >
109
+ </ head >
98
110
< body >
99
111
< ThemeProvider
100
112
attribute = "class"
@@ -104,7 +116,6 @@ export default function RootLayout({
104
116
>
105
117
< Toaster position = "top-right" reverseOrder = { false } />
106
118
{ children }
107
- < Analytics />
108
119
</ ThemeProvider >
109
120
</ body >
110
121
</ html >
You can’t perform that action at this time.
0 commit comments