Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

add tracking to jar downloads

  • Loading branch information...
commit 7317fea2cab2e96473cb6b039f91831bfd3709e9 1 parent 652b68a
Phil Goodwin & Tyler Schultz authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  update-downloads.rb
2  update-downloads.rb
@@ -21,7 +21,7 @@ def fill_index_downloads
21 21 version = "SNAPSHOT" unless version
22 22 prerelease = /\.rc/.match(f)
23 23 download_html += prerelease ? "<tr class=\"rc\">\n" : "<tr>\n"
24   - download_html += " <td class=\"link\"><a href=\"#{fn}\">#{fn.sub(/downloads\//, '')}</a></td>\n"
  24 + download_html += " <td class=\"link\"><a href=\"#{fn}\" onClick=\"javascript:pageTracker._trackPageView('#{fn}'); \">#{fn.sub(/downloads\//, '')}</a></td>\n"
25 25 download_html += " <td class=\"version\">#{version}</td>\n"
26 26 download_html += " <td class=\"size\">#{File.size(f) / 1024}k</td>\n"
27 27 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.
Something went wrong with that request. Please try again.