Skip to content

Commit

Permalink
moved google tag manager code
Browse files Browse the repository at this point in the history
  • Loading branch information
ColinEberhardt committed Jan 3, 2024
1 parent 1bb70b7 commit a286206
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,6 @@
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-MMXGQRL');</script>
<!-- End Google Tag Manager -->

Paste this code immediately after the opening <body> tag:

<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MMXGQRL"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
{% endif %}
<script>
(function(d) {
Expand All @@ -74,6 +67,12 @@
</script>
</head>
<body>
{% if site.github.owner_name == 'ScottLogic' %}
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MMXGQRL"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
{% endif %}
<div id="off-canvas-wrapper" style="">
{% include site-header.html %}
{{ content }}
Expand Down

0 comments on commit a286206

Please sign in to comment.