From 8cbff62f4f61f7e6ab98fd320af334c6f881a636 Mon Sep 17 00:00:00 2001 From: Devin Matte Date: Fri, 14 Jun 2019 11:36:57 -0400 Subject: [PATCH] Google Analytics through config --- .gitignore | 4 ++++ config.env.py | 1 + packet/templates/include/head.html | 4 ++-- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 5652971e..55484af2 100644 --- a/.gitignore +++ b/.gitignore @@ -106,6 +106,9 @@ ENV/ # Configurations config.py +# Setup +node_modules + # Generated Assets packet/static/css/packet.css *.min.css @@ -124,3 +127,4 @@ packet/static/mstile-70x70.png packet/static/safari-pinned-tab.svg packet/static/site.webmanifest faviconData.json + diff --git a/config.env.py b/config.env.py index a6ccc480..0d53dfd4 100644 --- a/config.env.py +++ b/config.env.py @@ -14,6 +14,7 @@ # Logging config LOG_LEVEL = environ.get("PACKET_LOG_LEVEL", "INFO") +ANALYTICS_ID = environ.get("ANALYTICS_ID", "UA-134137724-9") # OpenID Connect SSO config REALM = environ.get("PACKET_REALM", "csh") diff --git a/packet/templates/include/head.html b/packet/templates/include/head.html index 2d01e392..a0bdd80e 100644 --- a/packet/templates/include/head.html +++ b/packet/templates/include/head.html @@ -37,12 +37,12 @@ - +