Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
up vote 2 down vote accepted

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.

share|improve this answer
+1 part of the answer - thanks @Adam Crossland. provide country-level granularity of downloads of the .zip version of a project. Would be nice if google code did the same. – therobyouknow Nov 10 '11 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. – therobyouknow Nov 14 '11 at 10:06
downloads should have their own tracking on the downloads page?!topic/google-code-hosting/… – rogerdpack Sep 19 '12 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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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