Skip to content

Commit

Permalink
remove search kings google tag and re add our google tag (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
evanharmon1 authored Dec 8, 2024
1 parent 3b4004e commit 48b6d00
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions src/layouts/base.astro
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@ const { frontmatter, schema = 'WebPage' } = Astro.props
<!doctype html>
<html lang='en' itemscope itemtype={`https://schema.org/${schema}`}>
<head>
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-P2M9XXSF');
<!-- Google tag manager (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-FLZ7TYS7JP"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-FLZ7TYS7JP');
</script>
<!-- End Google Tag Manager -->

Expand Down Expand Up @@ -79,11 +81,6 @@ const { frontmatter, schema = 'WebPage' } = Astro.props
<slot name='in-head' />
</head>
<body class='dark:bg-gray-900'>
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-P2M9XXSF"
height="0" width="0" style="display:none;visibility:hidden"></iframe>
</noscript>
<!-- End Google Tag Manager (noscript) -->
<Header />
<slot />
{frontmatter.gallery && <Gallery folder={frontmatter.gallery} />}
Expand Down

0 comments on commit 48b6d00

Please sign in to comment.