aboutsummaryrefslogtreecommitdiff
path: root/app/dashboard/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/dashboard/__init__.py')
-rw-r--r--app/dashboard/__init__.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/dashboard/__init__.py b/app/dashboard/__init__.py
index 3ed6056..4319308 100644
--- a/app/dashboard/__init__.py
+++ b/app/dashboard/__init__.py
@@ -147,6 +147,11 @@ app.add_url_rule(
)
+@app.context_processor
+def inject_analytics():
+ return dict(analytics=app.config.get('GOOGLE_ANALYTICS_ID'))
+
+
@app.errorhandler(404)
def page_not_found(e):
path = os.path.join(app.root_path, 'static', 'html', '404-content.html')