Keith's Software and Tutorials Home Page
Knowledge Is Power

Bestdam Website Visitor Logger
+ Hit Counter

Getting  Fancy






Home

How Do I CGI ?

BDL Features

BDL Download

BDL Setup

Quick Setup

BDL Windows

BDL Help

BDL How To

BDL Log Tips

Hit History

BDL Duo

BDL Upgrade

Dual Setup


On a couple of my Websites I have two copies of Bestdam Logger running. One monitors just the site's "home" page. The second copy monitors all of the sub-pages. Why ?

I can:

  • have a hit counter displayed on the site's home page and maintain a cumulative count for the site (as well as log data for just that page)

  • not have hit counters displayed on all the sub-pages but still collect "period" hit count totals and log information for those pages and get a second e-mail report for them

This allows me to more easily monitor the popularity of the various sub-pages, as well as determine whether the hits came from the home page or possibly from a search engine. Note that the Lite Edition of Bestdam Logger doesn't include the ability to use the   $reset_counts   option so you'll need to have the Deluxe Edition in order to do this.

Here's how to set it up:

  1. Create two folders under CGI-BIN. You can give them names like bdlhome and bdlsubs if you wish to keep them straight but any names will do. Just make sure the names in the SSI tags match the folder names.

  2. Set the options for the copy going into the bdlhome folder as follows:

    • $display_count = 1     (this is the default)

    • $reset_counts = 0     (this is the default)

    • add the following tag to your home page:

      <!-- #exec cgi="/cgi-bin/bdlhome/bdlogger.pl" -->


  3. Set the options for the copy going into the bdlsubs folder as follows:

    • $display_count = 0

    • $reset_counts = 1

    • if you have the Web page options enabled be sure to specify different file names in the Web page path variables, using file names like
      • subhits.htm
      • subpreport.htm

    • add the following tag to all of your sub-pages:

      <!-- #exec cgi="/cgi-bin/bdlsubs/bdlogger.pl" -->


    Be sure not to enable IP tracking in this subs copy of the script or counts for your sub-pages won't be accurate.

This way you'll get two reports e-mailed to you. One for the home page with the on-going site hit count, and a second one with the hit counts on all of the sub-pages for the period (day or week) you have selected.


Top of page



Powered by Apache On Debian Linux


Contents, diagrams, and images    Copyright © 2004-2017    Keith Parkansky    All rights reserved.
"Bestdam Logger" and the BDL graphic logo are trademarks of Keith Parkansky.
Certain graphics, symbols, and terms used on this site and in its documents are registered trademarks
of their respective owners and are contained herein for identification purposes only.
No endorsement of this site, its contents, or its documents by these owners is expressed or implied.

LIABILITY
IN NO EVENT WILL KEITH PARKANSKY BE LIABLE TO ANY PARTY (i) FOR ANY DIRECT, INDIRECT, SPECIAL, PUNITIVE OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION, LOSS OF PROGRAMS OR INFORMATION, AND THE LIKE), OR ANY OTHER DAMAGES ARISING IN ANY WAY OUT OF THE AVAILABILITY, USE, RELIANCE ON, OR INABILITY TO USE THE INFORMATION, METHODS, HTML OR COMPUTER CODE, OR "KNOWLEDGE" PROVIDED ON OR THROUGH THIS WEBSITE OR ANY OF ITS' ASSOCIATED DOCUMENTS, DIAGRAMS, IMAGES, REPRODUCTIONS, COMPUTER EXECUTED CODE, OR ELECTRONICALLY STORED OR TRANSMITTED FILES OR GENERATED COMMUNICATIONS OR DATA EVEN IF KEITH PARKANSKY SHALL HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES, AND REGARDLESS OF THE FORM OF ACTION, WHETHER IN CONTRACT, TORT, OR OTHERWISE; OR (ii) FOR ANY CLAIM ATTRIBUTABLE TO ERRORS, OMISSIONS, OR OTHER INACCURACIES IN, OR DESTRUCTIVE PROPERTIES OF ANY INFORMATION, METHODS, HTML OR COMPUTER CODE, OR "KNOWLEDGE" PROVIDED ON OR THROUGH THIS WEBSITE OR ANY OF ITS' ASSOCIATED DOCUMENTS, DIAGRAMS, IMAGES, REPRODUCTIONS, COMPUTER EXECUTED CODE, OR ELECTRONICALLY STORED, TRANSMITTED, OR GENERATED FILES, COMMUNICATIONS, OR DATA. USE OF THIS SITE CONSTITUTES ACCEPTANCE OF ALL STATED TERMS AND CONDITIONS.