Moving Average Hit Counter(a tipjar net toy)dev log
October 12, 2012:
February 2009:
4 Aug 2008:
18 July 2008:
29 June 2008:
3 September 2007:
15 February 2007:
31 January 2007:
2 January 2007:
18 December 2006: |
The TJMAHC is a hit counter suitable for placement in an iframe that
does moving average calculations instead of simply counting raw hits eternally
towards infinity, which is what most hit counters do, and which
this one does too. The moving
averages are updated daily. Columns in the table include T for today's hits so far, Y for yesterdays hits, and 7, 30, 90 and 360 day moving averages. "days" is how many days hits are included in the averages, sort of like "uptime" for a web page, and "total" is the sum of the raw hits, not counting today's. Please feel free to install the TJMAHC in your web page by following the example available from viewing the source code of this page.
in short, paste this into your web page:
Alternately, a vertical version is available:
the counter program identifies your page by using the HTTP_REFERER
CGI variable, or add ?page=(URL of your page) to the source of the
iframe to link together counters on several pages or on a page
that has multiple ways to view it. (for instance if the same page
appears in multiple places on your site, with different URLs, you can
choose one.)
a cookie is set to the current time, to eliminate multiple recordings of hits from one web browser: Continuously reloading a TJMAHC-displaying web page with a cookie-enabled web browser will only log an additional hit every five minutes. |
![]() |
|
![]() |
copyright 2006,2007 tipjar LLC all rights reserved