mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2026-09-24 15:00:31 +08:00
Add gam
This commit is contained in:
@@ -1,9 +1,23 @@
|
||||
<script async src="https://securepubads.g.doubleclick.net/tag/js/gpt.js"></script>
|
||||
<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());
|
||||
window.googletag = window.googletag || { cmd: [] };
|
||||
googletag.cmd.push(function () {
|
||||
// Always use non-personalized ads
|
||||
googletag.pubads().setPrivacySettings({
|
||||
restrictDataProcessing: true,
|
||||
nonPersonalizedAds: true,
|
||||
});
|
||||
|
||||
// Define ad slot and enable services
|
||||
googletag
|
||||
.defineSlot(
|
||||
'/22873384501/roadmap',
|
||||
['fluid'],
|
||||
'div-gpt-ad-1742391132948-0',
|
||||
)
|
||||
.addService(googletag.pubads());
|
||||
googletag.enableServices();
|
||||
});
|
||||
</script>
|
||||
</script>
|
||||
|
||||
@@ -197,7 +197,9 @@ const gaPageIdentifier = Astro.url.pathname
|
||||
<script>
|
||||
// @ts-nocheck
|
||||
googletag.cmd.push(function () {
|
||||
// Set non-personalized ads
|
||||
googletag.pubads().setPrivacySettings({
|
||||
restrictDataProcessing: true,
|
||||
nonPersonalizedAds: true,
|
||||
});
|
||||
googletag.display('div-gpt-ad-1742391132948-0');
|
||||
|
||||
Reference in New Issue
Block a user