Skip to content

Commit 5417b56

Browse files
authored
google tag manager
1 parent 71a5e42 commit 5417b56

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/pages/index.astro

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@ const permalink = Astro.site.href;
2525
</div>
2626
</BaseLayout>
2727

28+
<!-- Google Tag Manager -->
29+
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
30+
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
31+
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
32+
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
33+
})(window,document,'script','dataLayer','GTM-M8TP7F33');</script>
34+
<!-- End Google Tag Manager -->
35+
2836
<style>
2937
a { text-decoration: underline; }
3038
.home-container {

0 commit comments

Comments
 (0)