Skip to content

Commit

Permalink
Tries again adding GTM with Google html code.
Browse files Browse the repository at this point in the history
  • Loading branch information
rdahis committed Oct 11, 2020
1 parent 2705400 commit 1327bf0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
9 changes: 9 additions & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
<head>

<!-- 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-KJ4Q3WT');</script>
<!-- End Google Tag Manager -->

<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
Expand Down
14 changes: 3 additions & 11 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,15 @@

{% include head.html %}

<!-- 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-KJ4Q3WT');</script>
<!-- End Google Tag Manager -->

<body>

{% include header.html %}

<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-KJ4Q3WT"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->


{% include header.html %}

<main class="page-content" aria-label="Content">
<div class="wrapper">
{{ content }}
Expand Down

0 comments on commit 1327bf0

Please sign in to comment.