Skip to content

Commit 96ad9e5

Browse files
committed
1 parent ea16ddb commit 96ad9e5

File tree

7 files changed

+23
-0
lines changed

7 files changed

+23
-0
lines changed

404.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@
1717
</div>
1818

1919
<script>
20+
21+
// Add Google Analytics event.
22+
window.dataLayer = window.dataLayer || [];
23+
window.dataLayer.push({
24+
'event' : 'page not found'
25+
});
26+
2027
// on 2016-02-01 GitHub Pages upgraded to Jekyll3, which broke all blog posts with trailing slashes.
2128
// Try redirecting to no-slash version.
2229
var url = location.href;

_includes/gtm.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<!-- Google Tag Manager (noscript) -->
2+
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MRR93LLS"
3+
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
4+
<!-- End Google Tag Manager (noscript) -->

_includes/head.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
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-MRR93LLS');</script>
7+
<!-- End Google Tag Manager -->
8+
19
{% capture thumbnail %}{{ site.url }}/images/logo-square.png{% endcapture %}
210
{% if page.imagefeature %}
311
{% capture thumbnail %}{{ site.url }}/images/{{ page.imagefeature }}{% endcapture %}

_layouts/home.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
{% include head.html %}
55
</head>
66
<body class="home-template" itemscope itemtype="http://schema.org/WebPage">
7+
{% include gtm.html %}
78
{% include skip-link.html %}
89
{% include browser-upgrade.html %}
910
<header class="notepad-site-head">

_layouts/page.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
{% include head.html %}
55
</head>
66
<body class="post-template page" itemscope itemtype="http://schema.org/WebPage">
7+
{% include gtm.html %}
78
{% include skip-link.html %}
89
{% include browser-upgrade.html %}
910
<main id="notepad-page-container" class="notepad-page-container {{ page.pageclasses }}" role="main">

_layouts/post.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
{% include head.html %}
99
</head>
1010
<body class="post-template {% if page.imagefeature %}post-with-image{% endif %}">
11+
{% include gtm.html %}
1112
{% include skip-link.html %}
1213
{% include browser-upgrade.html %}
1314
<main id="notepad-post-container-simple" class="notepad-post-container-simple" role="main" itemprop="blogPost" itemscope="itemscope" itemtype="http://schema.org/BlogPosting">

_layouts/presentation.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
{% include head.html %}
99
</head>
1010
<body class="post-template {% if page.imagefeature %}post-with-image{% endif %}">
11+
{% include gtm.html %}
1112
{% include skip-link.html %}
1213
{% include browser-upgrade.html %}
1314
<main id="notepad-post-container-simple" class="notepad-post-container-simple notepad-presentation-container" role="main" itemprop="blogPost" itemscope="itemscope" itemtype="http://schema.org/BlogPosting">

0 commit comments

Comments
 (0)