Skip to content

Commit a93ee9e

Browse files
added google tag manager for analytics tracking (#53)
1 parent ae4a61e commit a93ee9e

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{# page partial for GTM analytics code, extends "!page.html"
2+
#}
3+
4+
{% block extrahead %}
5+
6+
<!-- Google Tag Manager -->
7+
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
8+
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
9+
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
10+
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
11+
})(window,document,'script','dataLayer','GTM-NK4K647');</script>
12+
<!-- End Google Tag Manager -->
13+
14+
<!-- Google Tag Manager (noscript) -->
15+
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-NK4K647"
16+
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
17+
<!-- End Google Tag Manager (noscript) -->
18+
19+
<meta name="google-site-verification" content="L6w2tbHp4xFTm04T0CdrrzqX_T9PH-bpQnGGYuwuAE4" />
20+
21+
{% endblock %}

mkdocs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ extra:
9797
- icon: fontawesome/brands/slack
9898
link: https://gatesfoundation.enterprise.slack.com/
9999
analytics:
100-
provider: google
101-
property: # no tracking until we can implement OneTrust cookie consent
100+
provider: custom
101+
tracking_id: GTM-NK4K647
102102
feedback:
103103
title: Was this page helpful?
104104
ratings:

0 commit comments

Comments
 (0)