feat: adsense

This commit is contained in:
TrèsAbhi committed 2024-04-08 21:43:47 -05:00
1 parent 797f5a90d2
commit abbbf11b3d
3 files changed
+13 -3

No files matched your search

+1
View File
@@ -3,6 +3,7 @@
"AABBOX", "AABBOX",
"Abhi", "Abhi",
"accountinfo", "accountinfo",
"adsense",
"aeson", "aeson",
"alphatest", "alphatest",
"APAC", "APAC",
+3 -2
View File
@@ -6,7 +6,7 @@ import { config } from 'dotenv';
import { Roboto_Flex } from 'next/font/google'; import { Roboto_Flex } from 'next/font/google';
import { usePathname } from 'next/navigation'; import { usePathname } from 'next/navigation';
import { ReactNode, useEffect, useState } from 'react'; import { ReactNode, useEffect, useState } from 'react';
import { Analytics } from '../components/Analytics'; import { Google } from '../components/Google';
import { Footer } from '../components/Footer'; import { Footer } from '../components/Footer';
import Navbar from '../components/Navbar'; import Navbar from '../components/Navbar';
import isDev from '../core/blitzkrieg/isDev'; import isDev from '../core/blitzkrieg/isDev';
@@ -50,7 +50,8 @@ export default function RootLayout({ children }: RootLayoutProps) {
name="description" name="description"
content="🎉 Tools for everything World of Tanks Blitz" content="🎉 Tools for everything World of Tanks Blitz"
/> />
<Analytics />
<Google />
</head> </head>
<body <body
@@ -1,6 +1,7 @@
export function Analytics() { export function Google() {
return ( return (
<> <>
{/* analytics */}
<script <script
async async
src="https://www.googletagmanager.com/gtag/js?id=G-98NTMRHRP9" src="https://www.googletagmanager.com/gtag/js?id=G-98NTMRHRP9"
@@ -16,6 +17,13 @@ export function Analytics() {
`, `,
}} }}
/> />
{/* adsense */}
<script
async
src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-1289406790225052"
crossOrigin="anonymous"
></script>
</> </>
); );
} }