Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Porter <slug@qwebirc.org>2012-02-13 02:18:08 (GMT)
committer Chris Porter <slug@qwebirc.org>2012-02-13 02:18:08 (GMT)
commit310067aa49dd2854cfdc70ba36114d0f14e60c9a (patch)
treea61340a0ffc1985a305d7fe6d2a44c5d77d5a62c
parentf59d0047805b4ae11343b842b7b73e71bd007c62 (diff)
Add ANALYTICS_HTML option.
-rwxr-xr-xbin/pagegen.py3
-rw-r--r--config.py.example6
2 files changed, 9 insertions, 0 deletions
diff --git a/bin/pagegen.py b/bin/pagegen.py
index c89102c..6dc2060 100755
--- a/bin/pagegen.py
+++ b/bin/pagegen.py
@@ -56,6 +56,9 @@ def producehtml(name, debug):
csshtml = "\n".join(" <link rel=\"stylesheet\" href=\"%s%s\" type=\"text/css\"/>" % (config.STATIC_BASE_URL, x) for x in css)
jshtml = "\n".join(" <script type=\"text/javascript\" src=\"%s%s\"></script>" % (config.STATIC_BASE_URL, x) for x in js)
+ if hasattr(config, "ANALYTICS_HTML"):
+ jshtml+="\n" + config.ANALYTICS_HTML
+
div = ui.get("div", "")
customjs = ui.get("customjs", "")
diff --git a/config.py.example b/config.py.example
index ed210d3..50ae058 100644
--- a/config.py.example
+++ b/config.py.example
@@ -97,6 +97,12 @@ BASE_URL = "http://foo.foo.org/"
# application.
NETWORK_NAME = "FooNet"
+# OPTION: ANALYTICS_HTML
+# If you have an analytics service, you can paste the HTML
+# between the triple quotes.
+#ANALYTICS_HTML = """
+#"""
+
# OPTION: APP_TITLE
# The title of the application in the web browser.
APP_TITLE = NETWORK_NAME + " Web IRC"