1

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?

4
  • 1
    Why don't u use google analytics?
    – Cyprian
    Commented Jul 25, 2011 at 6:35
  • 1
    why is this flagged WCF? Commented Jul 25, 2011 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
    Commented Jul 25, 2011 at 6:35
  • Any suggestions on using Piwik ?
    – user9176
    Commented Jul 25, 2011 at 7:23

5 Answers 5

3

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.

1

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

1

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.

0

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

You will have to install it in you server.

0

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.

Your Answer

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