Skip to content

Commit 675e8cd

Browse files
committed
Move GA code to include file
1 parent 0933b9d commit 675e8cd

3 files changed

Lines changed: 11 additions & 19 deletions

File tree

.DS_Store

0 Bytes
Binary file not shown.

_includes/google_analytics.html

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
<!-- Google Tag Manager -->
2-
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
3-
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
4-
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
5-
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
6-
})(window,document,'script','dataLayer','GTM-TLGW7K');</script>
7-
<!-- End Google Tag Manager -->
1+
<!-- Google tag (gtag.js) -->
2+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-M1VSMYZZYP"></script>
3+
<script>
4+
window.dataLayer = window.dataLayer || [];
5+
function gtag(){dataLayer.push(arguments);}
6+
gtag('js', new Date());
7+
gtag('config', 'G-M1VSMYZZYP');
8+
</script>
9+
10+
<meta name="google-site-verification" content="oyBgiHuSKD_-LI_5ipCtIOXaxoekfMtsShYNfP-RMsg" />

_layouts/default.html

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,6 @@
33

44
{% include head.html %}
55
<body>
6-
7-
<!-- Google tag (gtag.js) -->
8-
<script async src="https://www.googletagmanager.com/gtag/js?id=G-M1VSMYZZYP"></script>
9-
<script>
10-
window.dataLayer = window.dataLayer || [];
11-
function gtag(){dataLayer.push(arguments);}
12-
gtag('js', new Date());
13-
gtag('config', 'G-M1VSMYZZYP');
14-
</script>
15-
16-
<meta name="google-site-verification" content="oyBgiHuSKD_-LI_5ipCtIOXaxoekfMtsShYNfP-RMsg" />
17-
186
<div class="container content">
197
<div class="masthead">
208
<h3 class="masthead-title">
@@ -35,6 +23,7 @@ <h3 class="masthead-title">
3523
<p>
3624
You can also find me on...
3725
<a href="https://twitter.com/calumshepherd">Twitter</a> |
26+
<a href="https://bsky.app/profile/calumshepherd.bsky.social">Bluesky</a> |
3827
<a href="https://www.linkedin.com/in/calumshepherd/">LinkedIn</a> |
3928
<a href="https://github.com/calcode">Github</a>
4029
</p>

0 commit comments

Comments
 (0)