SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Hybrid View

  1. #1
    AdSpeed.com Son Nguyen's Avatar
    Join Date
    Aug 2000
    Location
    Silicon Valley
    Posts
    2,241
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    You probably see stats for your sites which have the following:

    - Total number of visitors
    - Total number of unique visitors
    - # of new visitors
    - # of return visitors

    My questions is how they know/store this information? Consider storing all IPs is very inefficient. Do you agree?
    Any suggestion/reply is great! Thanks
    - Son Nguyen
    AdSpeed.com - Ad Serving and Ad Management Made Easy

  2. #2
    Dumb PHP codin' cat
    Join Date
    Aug 2000
    Location
    San Diego, CA
    Posts
    5,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Please don't PM me with questions.
    Use the forums, that is what they are here for.

  3. #3
    SitePoint Author Kevin Yank's Avatar
    Join Date
    Apr 2000
    Location
    Melbourne, Australia
    Posts
    2,571
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    It depends on the stats program they use, but what it comes down to is something processes your Web server's raw log files to produce those results. Whether they preprocess them and store the results in a database (saving disk space), or keep copies of the Web server logs (with every single request) and process them whenever you view the stats depends on the program being used.
    Kevin Yank
    CTO, sitepoint.com
    I wrote: Simply JavaScript | BYO PHP/MySQL | Tech Times | Editize
    Baby’s got back—a hard back, that is: The Ultimate CSS Reference

  4. #4
    AdSpeed.com Son Nguyen's Avatar
    Join Date
    Aug 2000
    Location
    Silicon Valley
    Posts
    2,241
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for lightning responses of Freddy and Kevin.
    I read the article Freddy pointed and did learn some interesting stuff.

    Process the data when being requested in this situation won't be possible for huge amount of data. So the solution will be: preprocessing them at some certain time during the day.

    However, basically there is no way we could process these information without storing IPs from the past?

    But what if the period is a week or even a month? In that case, I believe that adding up one day's data is not correct (correct if I'm wrong). And storing data for such a period takes tons of space!

    Thanks all
    - Son Nguyen
    AdSpeed.com - Ad Serving and Ad Management Made Easy

  5. #5
    Dumb PHP codin' cat
    Join Date
    Aug 2000
    Location
    San Diego, CA
    Posts
    5,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well I stepped into this one quite late gentlemen, not to mention after several large asahi beers, so I will bow out now and return to see what has transpired in the morning, you never know though my cat Freddy might be on later cheers!
    Please don't PM me with questions.
    Use the forums, that is what they are here for.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •