Skip to content

Commit bea8173

Browse files
author
Svetlana Karslioglu
authored
Update GTAG (#2455)
* Update the GTAG to include the new LF managed Google Analytics account.
1 parent c56f472 commit bea8173

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

_templates/layout.html

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

3+
{%- block extrahead %}
4+
{{ super() }}
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+
{% endblock %}
13+
314
{%- block content %}
15+
<!-- Google Tag Manager (noscript) -->
16+
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-T8XT4PS"
17+
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
18+
<!-- End Google Tag Manager (noscript) -->
19+
420
{{ super() }}
521
<script>
622
if((window.location.href.indexOf("/prototype/")!= -1) && (window.location.href.indexOf("/prototype/prototype_index")< 1))
@@ -11,6 +27,7 @@
1127
</script>
1228
{%- endblock %}
1329

30+
1431
{% block footer %}
1532
{{ super() }}
1633
<script>

0 commit comments

Comments
 (0)