Results 1 to 9 of 9

Thread: Hit counter?

  1. #1
    Join Date
    Jul 2007
    Location
    California
    Posts
    177
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Hit counter?

    Can anyone recommend a good hit counter? Should I go with one of the free services that links to a page? I assume they do this for the backlink...

    Are there stand alone hit counters?

    My domain host has "stats" but it doesn't really break down true hits for my home page.

    Thank you!

  2. #2
    Join Date
    Jun 2007
    Posts
    19
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    I have no idea, I'm looking for one too. I've checked out a couple of those "free" ones, but they sometimes want to put ads on your site. I don't like that, since the site I'm doing is for a non-profit group, and I'm trying to keep it nice and professional looking.

    Hope you get a good reply soon!!! (I'll keep my eye on this thread too, and let you know if I find anything).

    Francine

  3. #3
    Join Date
    Jun 2007
    Posts
    19
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Just found this by searching through old posts here.... I'm going to try this out and see what happens. I don't mind a little TEXT advertisement, but a big graphic is out of the question for me.

    http://www.dynamicdrive.com/forums/s...hlight=counter(the first response)

    Hope that helps. I'll try it out, and let you know if you like

  4. #4
    Join Date
    Jul 2007
    Location
    California
    Posts
    177
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Hrm I found an odd one... it's a personal hit counter cookie. It tells the user how many times they've visited a page. Not quite what I want, and I'll keep looking...but just in case someone has wanted this... http://www.comptechdoc.org/independe.../javaihit.html

    So far though this is the best one i've seen. No ads, at least not to our webpage. The hit us with ads when we check out stats, but big whoop. I'm going to look some more, but I think this will be the one: http://www.statcounter.com/

  5. #5
    Join Date
    Mar 2006
    Location
    Cleveland, Ohio
    Posts
    574
    Thanks
    6
    Thanked 5 Times in 5 Posts

    Default

    I wrote a simple one in PHP. It uses a PHP file and a text file, both in a directory called "counter":

    PHP Code:
    $file fopen("counter.txt""r");
    $num fgets($file,4096);
    $num += 1;
    fclose($file);
      
    $file2 fopen("counter.txt""w");
    fputs($file2$num);
    fclose($file2);
        
    $visits "<i>$num</i> visits.<br />"
    That would be counter.php.

    For counter.txt, just make it and put an html comment in there or something. Make sure it's CHMOD to 777.

    Then, to show it on a page:

    PHP Code:
    include('counter/counter.php'); 
    Thou com'st in such a questionable shape
    Hamlet, Act 1, Scene 4

  6. #6
    Join Date
    Jul 2007
    Location
    California
    Posts
    177
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    I ended up using statcounter.com after a review of what they offer.

    I placed a counter (just black text, nothing else) on the bottom right of my home page. 95&#37; of people won't even notice it. All the rest of my pages I placed invisible counters on. The only negative is that they do use cookies, but there are many positives regarding the stats available.

    They show me where the person linked to my page from, if any. Location they are at... most popular pages. Lots of stuff the stats pages from my hosting server don't show.

    Kinda neat...

  7. #7
    Join Date
    Mar 2006
    Location
    Cleveland, Ohio
    Posts
    574
    Thanks
    6
    Thanked 5 Times in 5 Posts

    Default

    I'd use sessions - server-side, so they don't rely on the client side, which is unpredictable.
    Thou com'st in such a questionable shape
    Hamlet, Act 1, Scene 4

  8. #8
    Join Date
    Jul 2007
    Location
    California
    Posts
    177
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Not sure exactly how I'd...er wait... no clue how I'd do that

    I personally wanted a counter to be able to see when I start getting traffic. The statcounter one is kinda cool cause it shows the pages any given IP address has accessed. Granted that's intrusive to anyone that notices it, but no normal person would.

  9. #9
    Join Date
    Mar 2006
    Location
    Cleveland, Ohio
    Posts
    574
    Thanks
    6
    Thanked 5 Times in 5 Posts

    Default

    Well, sessions would just replace the cookies. Sessions are just like cookies, except they're stored on the server and not on the viewer's computer...which is much more reliable.

    However, since you have a pre-made script for the counter, I wouldn't mess with it. Good luck
    Thou com'st in such a questionable shape
    Hamlet, Act 1, Scene 4

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
  •