Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Is it possible to track Google Analytics on my site, when JavaScript is not available?

share|improve this question
    
Is it a blog? Some free versions include statistics. –  Renan Jun 13 '11 at 11:40
    
As an aside, would love to know why you'd like to do this. –  anthonyg Jun 17 '11 at 5:28
add comment

2 Answers

up vote 4 down vote accepted

It can be done. All Google Analytics seems to do is ultimately request an image file with analytic data appended to the URL. You can call that URL directly from your PHP or other server side code to achieve the same effect.

share|improve this answer
3  
Here's the actual documentation for this. (That post is from 2007 so you never know when there might be some breaking change.) –  Su' Jun 13 '11 at 15:21
add comment

Yes, it is possible.

The parameters of Google Analytics .gif request are, surprisingly, documented at Google:

https://developers.google.com/analytics/resources/articles/gaTrackingTroubleshooting#gifParameters

A similar, but more popular question, that discusses these issues is also available on StackOverflow: http://stackoverflow.com/questions/1027660/generate-google-analytics-events-utm-gif-requests-serverside

share|improve this answer
add comment

Your Answer

 
discard

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.