Browse files

add tracking to jar downloads

  • Loading branch information...
1 parent 652b68a commit 7317fea2cab2e96473cb6b039f91831bfd3709e9 Phil Goodwin & Tyler Schultz committed Dec 14, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 update-downloads.rb
View
2 update-downloads.rb
@@ -21,7 +21,7 @@ def fill_index_downloads
version = "SNAPSHOT" unless version
prerelease = /\.rc/.match(f)
download_html += prerelease ? "<tr class=\"rc\">\n" : "<tr>\n"
- download_html += " <td class=\"link\"><a href=\"#{fn}\">#{fn.sub(/downloads\//, '')}</a></td>\n"
+ download_html += " <td class=\"link\"><a href=\"#{fn}\" onClick=\"javascript:pageTracker._trackPageView('#{fn}'); \">#{fn.sub(/downloads\//, '')}</a></td>\n"
download_html += " <td class=\"version\">#{version}</td>\n"
download_html += " <td class=\"size\">#{File.size(f) / 1024}k</td>\n"
download_html += " <td class=\"date\">#{File.mtime(f).strftime("%Y/%m/%d %H:%M:%S %Z")}</td>\n"

0 comments on commit 7317fea

Please sign in to comment.