From dcedaed5b300439dd27ab0fb250db1fe9f370a6f Mon Sep 17 00:00:00 2001
From: Nick Johnson
Date: Tue, 20 Oct 2009 22:17:09 +0100
Subject: [PATCH] Added analytics support
---
config.py | 3 +++
themes/default/base.html | 11 +++++++++++
2 files changed, 14 insertions(+)
diff --git a/config.py b/config.py
index 08c1dde..4d27a0b 100644
--- a/config.py
+++ b/config.py
@@ -46,3 +46,6 @@
# Length (in words) of summaries, by default
summary_length = 200
+
+# If you want to use Google Analytics, enter your 'web property id' here
+analytics_id = None
diff --git a/themes/default/base.html b/themes/default/base.html
index 1ccb2c2..8cf87b9 100644
--- a/themes/default/base.html
+++ b/themes/default/base.html
@@ -60,5 +60,16 @@ {{sidebar.0}}
+{% if config.analytics_id %}
+
+
+{% endif %}