From 686af3771c796883db6f216c02c3ba1fc80e6fae Mon Sep 17 00:00:00 2001 From: Graham Percival Date: Fri, 25 Jun 2010 23:32:21 +0100 Subject: [PATCH] Web build: add google tracking. --- scripts/build/website_post.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/scripts/build/website_post.py b/scripts/build/website_post.py index f27b5786f6..f2d7931a00 100644 --- a/scripts/build/website_post.py +++ b/scripts/build/website_post.py @@ -177,6 +177,17 @@ for file in html_files: if (link.endswith(".pdf")): langlink = addLangExt(link[:-4], lang, "pdf") line = line.replace(link, langlink) + ### add google tracker header + if (line.find("") >= 0): + outfile.write(""" + + +"""); ### add language selection footer if (line.find("
") >= 0): outfile.write("
\n") -- 2.39.2