Skip to content

Commit b9497ba

Browse files
Merge pull request #7 from HarryEMartland/changeToGTM
Change to gtm (release branch)
2 parents 172961a + 4397f61 commit b9497ba

File tree

4 files changed

+13
-14
lines changed

4 files changed

+13
-14
lines changed

_includes/google-analytics-tag-script.html

Lines changed: 0 additions & 12 deletions
This file was deleted.

_includes/head.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@
88

99
<title>CodeWith - {{ page.title }}</title>
1010

11+
<!-- Google Tag Manager -->
12+
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
13+
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
14+
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
15+
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
16+
})(window,document,'script','dataLayer','GTM-WPSF3G7');</script>
17+
<!-- End Google Tag Manager -->
18+
1119
<!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
1220
<!--[if lt IE 9]><script src="/js/ie8-responsive-file-warning.js"></script><![endif]-->
1321
<script src="./js/ie-emulation-modes-warning.js"></script>

_includes/scripts.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,3 @@
1515
<script src="./js/check-width.js"></script>
1616
<script src="./js/sidebar.js"></script>
1717
<script src="./js/typed-suffix.js"></script>
18-
19-
{% include google-analytics-tag-script.html %}

_layouts/default.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
{% include head.html %}
44

55
<body>
6+
<!-- Google Tag Manager (noscript) -->
7+
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WPSF3G7"
8+
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
9+
<!-- End Google Tag Manager (noscript) -->
10+
611
<div id="main-container" class="page-wrapper toggled">
712
{% include sidebar.html %}
813
<main role="main" class="page-content">

0 commit comments

Comments
 (0)