From 891f7d92134c66ea753af85d0bc82ed351923bf7 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Wed, 6 Apr 2016 16:15:26 -0400 Subject: [PATCH] Add Google Tag Manager support to Quay --- endpoints/common.py | 2 +- templates/base.html | 24 +++++++++++------------- 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/endpoints/common.py b/endpoints/common.py index 28c5f50cb..287d7cc49 100644 --- a/endpoints/common.py +++ b/endpoints/common.py @@ -206,7 +206,7 @@ def render_page_template(name, route_data=None, **kwargs): scope_set=json.dumps(scopes.app_scopes(app.config)), vuln_priority_set=json.dumps(PRIORITY_LEVELS), mixpanel_key=app.config.get('MIXPANEL_KEY', ''), - google_analytics_key=app.config.get('GOOGLE_ANALYTICS_KEY', ''), + google_tagmanager_key=app.config.get('GOOGLE_TAGMANAGER_KEY', ''), sentry_public_dsn=app.config.get('SENTRY_PUBLIC_DSN', ''), is_debug=str(app.config.get('DEBUGGING', False)).lower(), show_chat=features.OLARK_CHAT, diff --git a/templates/base.html b/templates/base.html index 5472afcb4..c7c4eee27 100644 --- a/templates/base.html +++ b/templates/base.html @@ -72,19 +72,6 @@ b._i.push([a,e,d])};b.__SV=1.2}})(document,window.mixpanel||[]); mixpanel.init("{{ mixpanel_key }}", { track_pageview : false, debug: {{ is_debug }} }); {% endif %} -{% if google_analytics_key %} - -{% endif %} -