use cgi; $count=43274112; print $count . "\n"; $count = $count = $count + 103; print "ohmigod, I can hardly keep up. " . $count . "\n";

Joke, of course.

More seriously, scripted counters tend NOT to count visitors very well. For two simple cases, even if one assumes that every visitor enters at the default page, that vistor will be counted twice if s/he leaves and comes back and may (depending on the sophistication of the design of the counter program) be counted if s/he browses from the default page to a sub-page and back again.

You could deal with some of this with cookies (but some users will reject them), and if you have "no clue how to do it" then even with the wealth of nodes here on cookies, you have a serious learning curve to climb. One can hope you will do so, and the Monks will undoubtedly be pleased to help. On asking for help and Perl Monks Approved HTML tags provide many hints on how to ask for that.

And (but NOT as an alternative; rather, as a supplement) You may wish to look at some previous advice on a similar question, at Visitors Counter.

On the other hand, most hosts will provide some sort of stats, often in a directory so named. Some of those will offer (pretty) graphic data: visitors, "unique" (not really) IPs, etc. If the object is merely to get a general idea (and give the boss something to look at), those should suffice.


In reply to Re: web statistics by ww
in thread web statistics by advait

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.