Skip to content

Commit f0e587e

Browse files
author
Svetlana Karslioglu
authored
Update GTAG in conf.py instead of layout.html (#2474)
1 parent 1e5ec44 commit f0e587e

File tree

2 files changed

+1
-16
lines changed

2 files changed

+1
-16
lines changed

_templates/layout.html

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,7 @@
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 %}
133

144
{%- 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-
205
{{ super() }}
216
<script>
227
if((window.location.href.indexOf("/prototype/")!= -1) && (window.location.href.indexOf("/prototype/prototype_index")< 1))

conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ def reset_seeds(gallery_conf, fname):
217217
'display_version': True,
218218
'navigation_with_keys': True,
219219
'logo_only': False,
220-
'analytics_id': 'UA-117752657-2',
220+
'analytics_id': 'GTM-T8XT4PS',
221221
}
222222

223223

0 commit comments

Comments
 (0)