From: Graham Percival Date: Fri, 6 Aug 2010 08:03:16 +0000 (+0100) Subject: Build: add download tracking goals for website. X-Git-Tag: release/2.13.30-1~32 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=f06f6edf436ff58cc3d1c29c05896da4ef290962;p=lilypond.git Build: add download tracking goals for website. --- diff --git a/scripts/build/website_post.py b/scripts/build/website_post.py index f2d7931a00..5267a85828 100644 --- a/scripts/build/website_post.py +++ b/scripts/build/website_post.py @@ -188,6 +188,13 @@ _uacct = "UA-68969-1"; urchinTracker(); """); + #### add google tracker goals + if (line.find("href=\"http://download.linuxaudio.org") >= 0): + # TODO: more ugly hardcoding to make releases hard. :( + if (line.find('2.12') >= 0): + line = line.replace('a href=', 'a onClick=\"javascript:urchinTracker(\'/download/v2.12\');\" href=') + elif (line.find('2.13') >= 0): + line = line.replace('a href=', 'a onClick=\"javascript:urchinTracker(\'/download/v2.13\');\" href=') ### add language selection footer if (line.find("
") >= 0): outfile.write("
\n")