Skip to content

Commit eaede9d

Browse files
author
Svetlana Karslioglu
authored
Update GTAG
- Update to the new GTAG
1 parent 2960601 commit eaede9d

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

_templates/layout.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
{% extends "!layout.html" %}
22

3+
{%- block extrahead %} {% endblock %}
4+
5+
<!-- Google Tag Manager -->
6+
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
7+
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
8+
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
9+
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
10+
})(window,document,'script','dataLayer','GTM-T8XT4PS');</script>
11+
<!-- End Google Tag Manager -->
12+
313
{%- block content %}
414
{{ super() }}
515
<script>
@@ -11,6 +21,16 @@
1121
</script>
1222
{%- endblock %}
1323

24+
{%- block body -%}
25+
26+
<!-- Google Tag Manager (noscript) -->
27+
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-T8XT4PS"
28+
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
29+
<!-- End Google Tag Manager (noscript) -->
30+
31+
{{ super() }}
32+
{% endblock %}
33+
1434
{% block footer %}
1535
{{ super() }}
1636
<script>

0 commit comments

Comments
 (0)