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

+3 -2
View File
@@ -6,7 +6,7 @@ import { config } from 'dotenv';
import { Roboto_Flex } from 'next/font/google';
import { usePathname } from 'next/navigation';
import { ReactNode, useEffect, useState } from 'react';
import { Analytics } from '../components/Analytics';
import { Google } from '../components/Google';
import { Footer } from '../components/Footer';
import Navbar from '../components/Navbar';
import isDev from '../core/blitzkrieg/isDev';
@@ -50,7 +50,8 @@ export default function RootLayout({ children }: RootLayoutProps) {
name="description"
content="🎉 Tools for everything World of Tanks Blitz"
/>
<Analytics />
<Google />
</head>
<body
@@ -1,6 +1,7 @@
export function Analytics() {
export function Google() {
return (
<>
{/* analytics */}
<script
async
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>
</>
);
}