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

I am looking for an opensource API for my existing website. The functionality that I am looking for is:

  1. How many users visited the site in a particular interval of time?
  2. What is the IP address the machine from where the request has come?
  3. Which region/country/City the user belong to?
  4. Which operating system that he is using?
  5. Which browser has he used for sending the request?

What are my options?

share|improve this question
1  
Why don't u use google analytics? –  Cyprian Jul 25 '11 at 6:35
1  
why is this flagged WCF? –  Mitch Wheat Jul 25 '11 at 6:35
    
Well isn't opensource, so I won't put it as an answer, but you really should look at google.com/analytics –  mazzzzz Jul 25 '11 at 6:35
    
Any suggestions on using Piwik ? –  user9176 Jul 25 '11 at 7:23
add comment

migrated from stackoverflow.com Jul 25 '11 at 6:47

This question came from our site for professional and enthusiast programmers.

5 Answers

Does it have to be open source or just free? If it's the latter use Google Analytics.

share|improve this answer
add comment

All the things you ask for can be done by any tool that analyses server logs apart from the geographic location thing. (I haven't seen IP addresses coming out of Google Analytics, so I wouldn't recommend that for your requirements, though I'd recommend it generally.)

The awstats tool is widely used and has a plugin for geographic location so I'd recommend that.

share|improve this answer
add comment

As other people have said if you are concerned most about free software vs open source Google Analytics gives you everything except IP addresses. The best solution may be for you to use Google Analytics and something like awstats.

By combining the two you will get everything you need and have two sources. Which is usually a benefit because of the complexity of data collection. Sometimes one Analytics tool will misreport numbers or show something confusing and having two sources of data will allow you to compare and hash out slight differences that can give you an edge in the long run.

share|improve this answer
add comment

You might want to take a look at piwik. There is a plugin for geolocation.

You will have to install it in you server.

share|improve this answer
add comment

I didn't exactly understood what you mean by API, but Piwik is simple and reliable. Try also Open Web Analytics, much more sophisticated than Piwik, but a little buggier and not as easy to use.

share|improve this answer
add comment

Your Answer

 
discard

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