CF_HitCount
A "hit counter" for ColdFusion pages. Supports custom digit styles.
SYNTAX:
This page has been viewed <CF_HitCount> times.
ATTRIBUTES:
FontPath
Optional. Location of digit font files. If value is undefined, standard HTML characters are displayed.
FontName
Optional. Ideally, digit collections are distributed with 10 gif files, named 0.gif, 1.gif, 2.gif, etc. Some collections append a fontname to each digit (1fontname.gif, 2fontname.gif, etc.). Rather than rename all of your digit GIFs, simply include the fontname here and let CF_HitCount do the work.
Value
Optional. Reset page counter to the specified value.
Display
Optional. Value of 'No' suppresses output, though page is still counted and output appears in page's source code as "<!-- Hit Count: 23150 -->". Default value is 'Yes'.
Report
Optional. Produces a multi-line hit count report for all URLs that contain the supplied string. String must be six characters in length, or more. Use of the REPORT attribute precludes all other actions. No page counters are incremented or displayed.
Example
<CF_HitCount report="www.mysite.com">
In this example, all counted pages for site 'www.mysite.com' will be reported. Sample output might look like this:
www.mysite.com/index.cfm: 27316
www.mysite.com/secure/login.cfm: 271
www.mysite.com/secure/loginfailed.cfm: 3
|