Skip to content

Commit

Permalink
Move GA code to include file
Browse files Browse the repository at this point in the history
  • Loading branch information
calcode committed Nov 11, 2024
1 parent 0933b9d commit 675e8cd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 19 deletions.
Binary file modified .DS_Store
Binary file not shown.
17 changes: 10 additions & 7 deletions _includes/google_analytics.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
<!-- 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-TLGW7K');</script>
<!-- End Google Tag Manager -->
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-M1VSMYZZYP"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-M1VSMYZZYP');
</script>

<meta name="google-site-verification" content="oyBgiHuSKD_-LI_5ipCtIOXaxoekfMtsShYNfP-RMsg" />
13 changes: 1 addition & 12 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,6 @@

{% include head.html %}
<body>

<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-M1VSMYZZYP"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-M1VSMYZZYP');
</script>

<meta name="google-site-verification" content="oyBgiHuSKD_-LI_5ipCtIOXaxoekfMtsShYNfP-RMsg" />

<div class="container content">
<div class="masthead">
<h3 class="masthead-title">
Expand All @@ -35,6 +23,7 @@ <h3 class="masthead-title">
<p>
You can also find me on...
<a href="https://twitter.com/calumshepherd">Twitter</a> |
<a href="https://bsky.app/profile/calumshepherd.bsky.social">Bluesky</a> |
<a href="https://www.linkedin.com/in/calumshepherd/">LinkedIn</a> |
<a href="https://github.com/calcode">Github</a>
</p>
Expand Down

0 comments on commit 675e8cd

Please sign in to comment.