[thelist] Looking for simple way to get JS statistics from my visitors.

Scott Wehrenberg swehren at gmail.com
Thu May 19 17:36:38 CDT 2005


On 5/19/05, barophobia <barophobia at gmail.com> wrote:
 > For all visitors with browsers that have JS enabled the counter would
> be incremented each time they hit that page. Conversely, for visitors
> with JS disabled (or not available at all) the counter would not be
> incremented.

I think the simplest thing you could do (completely untested) is to
have the javascript just add an image to the page:

<script type="text/javascript">
document.write("<img src=\"webbug.gif\" alt=\"\" />");
</script>

Then you could just check the hits on webbug.gif and compare to the
hits for the page. You'll definitely get skew on caching, images off,
etc. But it'll give you a decent estimate.


More information about the thelist mailing list