Can you use Google Analytics to track visitors/downloaders for a Google Code project?

I've searched google for an answer but I get results about Google Analytics as a Google Code project itself and not for applying it to a Google Code project for visitor/download data.

2 Answers 2


You can use Analytics to track visits and views of Code projects but not downloads as far as I know.

If you look under your project's Administer tab, you'll see towards the bottom that there is a box into which you an enter an Analytics tracking code. That's all there is to it.

  • +1 part of the answer - thanks @Adam Crossland. sourceforge.net provide country-level granularity of downloads of the .zip version of a project. Would be nice if google code did the same. Nov 10, 2011 at 17:06
  • I'll accept this answer. If I can work out how to track downloads as well I will add that here. I know in theory downloads can be tracked because, for example, I ran a Drupal site with Google Analytics module, I could see which files people were downloading. I think that in that example, .htaccess config file had some intercept hooks that enabled the tracking. Nov 14, 2011 at 10:06
  • downloads should have their own tracking on the downloads page? groups.google.com/forum/?fromgroups=#!topic/google-code-hosting/…
    – rogerdpack
    Sep 19, 2012 at 12:43

Trick to using GA to track downloads is to use javascript to fire off an event (or a pageview) when someone clicks the download link.

No idea how much javascript one can push into a google code page.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.