ads
This commit is contained in:
parent
cb521f2aee
commit
9c5f7beb91
|
|
@ -0,0 +1 @@
|
||||||
|
google.com, pub-2782770414424875, DIRECT, f08c47fec0942fa0
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
import type { Metadata } from 'next';
|
import type { Metadata } from 'next';
|
||||||
|
import Script from 'next/script';
|
||||||
import '@/styles/globals.css';
|
import '@/styles/globals.css';
|
||||||
import { Providers } from '@/components/Providers';
|
import { Providers } from '@/components/Providers';
|
||||||
import MarketingLayout from './MarketingLayout';
|
import MarketingLayout from './MarketingLayout';
|
||||||
|
|
@ -62,6 +63,12 @@ export default function MarketingGroupLayout({
|
||||||
type="application/ld+json"
|
type="application/ld+json"
|
||||||
dangerouslySetInnerHTML={{ __html: JSON.stringify(websiteSchema()) }}
|
dangerouslySetInnerHTML={{ __html: JSON.stringify(websiteSchema()) }}
|
||||||
/>
|
/>
|
||||||
|
<Script
|
||||||
|
async
|
||||||
|
src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-2782770414424875"
|
||||||
|
crossOrigin="anonymous"
|
||||||
|
strategy="lazyOnload"
|
||||||
|
/>
|
||||||
<MarketingLayout>
|
<MarketingLayout>
|
||||||
{children}
|
{children}
|
||||||
</MarketingLayout>
|
</MarketingLayout>
|
||||||
|
|
|
||||||
|
|
@ -12,12 +12,7 @@ export default function ToolsLayout({
|
||||||
return (
|
return (
|
||||||
<div className="flex flex-col min-h-screen">
|
<div className="flex flex-col min-h-screen">
|
||||||
{/* AdSense script - only loads on tool pages */}
|
{/* AdSense script - only loads on tool pages */}
|
||||||
<Script
|
{/* AdSense script - now global in (marketing) layout */}
|
||||||
async
|
|
||||||
src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-2782770414424875"
|
|
||||||
crossOrigin="anonymous"
|
|
||||||
strategy="lazyOnload"
|
|
||||||
/>
|
|
||||||
<div className="flex-grow relative">
|
<div className="flex-grow relative">
|
||||||
{children}
|
{children}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue