views:

122

answers:

3

hi!

what should i learn in order to develop a (good and realtime) analytics tool?

i think i should learn a lot of javascript, but i need some guidance... and i think i should also learn php... could you help me?

which languages are better to capture, process and display analytics data (such as ip adress, country, date, time, os, browser, clicks, page views, twitter data, unique visitor and so on) ?

best wishes,

A: 

PHP and javascript would do the job. Check out www.tracking201.com for an tool that you can download that will have some good code examples related to analytics.

codingguy3000
+2  A: 

I'm very surpirsed at what you are asking. The first question made perfect sense and I would have said:

  1. learn a LOT about HTTP and how it actually works
  2. marketing
  3. psychology
  4. statistics

But then you started trying to answer your own question by talking about javascript, maybe PHP.

Do you want to learn to program? Do you want to write a good analytics (presumably web-snalytics - you didn't say)? Do you want to write something to solve a specific problem you are having?

Any good programmer presented with a task like providing a web-analytics solution would go out and have a very long, hard look at the many products available (indeed, many of these are free - e.g. Google analytics, AWStats) and then go back to the client to ask why these do meet her requirements.

C.

symcbean
A: 

Are you trying to make a web Analytics program that only you are going to use or that is going to be a service for a lot of people?

If it will be for a service people sign up to use than javascript,php and MySql.

If it is just for you,, learn PHP and at the beginning of each page (They have to end in .PHP) put:

<?php 
include('analyticspage.php');
?>

and in that file just put something like:

<?php 
$file = fopen("analytics.txt","w");
fputs($file,"
Client Opened:" . $PHP_SELF . "
At: " . date("l dS \of F Y h:i:s A") . "
With IP:" . $_SERVER['REMOTE_ADDR']);
fclose($file);
?>
Eric
thank you! i think i hear from you good tips ;)
Paulo Cassiano
SQLite3 would be a little better, allowing for easy queries to see the data you want however you want to see it .. with approximately the same I/O overhead. Also, GeoIP free would give him the country data he wants.
Tim Post