pull/8353/head
Kamran Ahmed 4 weeks ago
parent d399ba2c61
commit b81c74984e
  1. 9
      src/components/Analytics/GoogleAd.astro
  2. 15
      src/layouts/BaseLayout.astro

@ -0,0 +1,9 @@
<script async src="https://securepubads.g.doubleclick.net/tag/js/gpt.js"></script>
<script async>
// @ts-nocheck
window.googletag = window.googletag || {cmd: []};
googletag.cmd.push(function() {
googletag.defineSlot('/22873384501/roadmap', ['fluid'], 'div-gpt-ad-1742391132948-0').addService(googletag.pubads());
googletag.enableServices();
});
</script>

@ -15,6 +15,7 @@ import { PageVisit } from '../components/PageVisit/PageVisit';
import type { ResourceType } from '../lib/resource-progress';
import Clarity from '../components/Analytics/Clarity.astro';
import RedditPixel from '../components/Analytics/RedditPixel.astro';
import GoogleAd from '../components/Analytics/GoogleAd.astro';
export interface Props {
title: string;
@ -160,6 +161,7 @@ const gaPageIdentifier = Astro.url.pathname
<Analytics />
<Clarity />
<RedditPixel />
<GoogleAd />
</head>
<body class='flex min-h-screen flex-col'>
<slot name='page-header'>
@ -190,6 +192,19 @@ const gaPageIdentifier = Astro.url.pathname
client:load
/>
<!-- /22873384501/roadmap -->
<div id='div-gpt-ad-1742391132948-0'>
<script>
// @ts-nocheck
googletag.cmd.push(function () {
googletag.pubads().setPrivacySettings({
nonPersonalizedAds: true,
});
googletag.display('div-gpt-ad-1742391132948-0');
});
</script>
</div>
<slot name='after-footer' />
<PageVisit

Loading…
Cancel
Save