Anyone Are Open-minded And Kind Enough To Share How To Make “javascript” To Count Website Visit Number?


I bought 2 thick books and some other books describe about Javascript but none of them teach about counting website visit number
I spend a lot of money to buy those books and a lot of time yet can not get this thing. Note: This asker is going to donate all his copyrights which could worth billions dollars with a wish that human beings shall not be narrow-minded by selfishness anymore. Please refer to www.ourblissfulworld.com. Thank you.

, , , , , , , , ,

  1. #1 by Ben H at February 7th, 2010

    Javascript wouldn’t be the best way – what happens when the user has js disabled? They don’t get counted.
    Use php and a database (mysql) to count each page view and save it into a database.
    To make it even more accurate, on every page run a query searching the database to see if that users IP address matches any previous entry’s. If it doesn’t insert it. Then you can count how many individual users visit your site.
    To be honest its best just to use another service like google analytics. They collect all information possible and have an advanced admin area where you can view all the data. Much better than having to create your own.

  2. #2 by Anonymous at February 7th, 2010

    Wrong, JavaScript does NOT keep the count, and it would rather be wasteful to use JavaScript to trigger something else when that something else is triggered by itself already.
    That something else could be PHP, JSP, ASP or whatever equivalent, since Serverside JavaScript was a dead-end invention of the defunct Netscape about a decade ago.

  3. #3 by Lb at February 7th, 2010

    Go to the site i hope it helps (Video)

(will not be published)
  1. No trackbacks yet.
Powered by Yahoo! Answers