Announcement

Collapse
No announcement yet.

Statistics - Webcounter

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Statistics - Webcounter

    I have seen this covered but no one saying much about counters.

    I have put a statistics\counter on the website works fine on front page Index.shtml & main.shtml & left_navigation.shtml

    I have a javascript that i place in my root directory This is then referenced from each page.

    <!-- PowerPhlogger Code START -->
    <script language="JavaScript" type="text/javascript" src="pphlogger.js"></script>
    <noscript><img alt="" src="http://www.kungfu.dyndns.org/pphlogger/pphlogger.php?id=queenswood&st=img"></noscript>
    <!-- PowerPhlogger Code END -->

    This updates a mysql database on my home server to keep stats.

    Problem when I put the counter on every page using Act_CatalogBody.html the pages take about 10 seconds to load.
    If i place this the code at the top of the templates i get an error. I on every single page but the counter works.

    Anyone have any ideas.
    Is this the correct template to be using for every page.?

    Many thanks

    Dave
    David Shorthouse,
    Website Manager,
    http://www.Queenswood.co.uk

    #2
    1. Your src definition doesn't specify the path so when it's in the /acatalog directory (where all your products are) then it can't find the javascript in the root directory.

    2. A better template is the Act_Primary templates that are used as the top level temaplte for all your pages except the brochure ones.

    Mike
    -----------------------------------------

    First Tackle - Fly Fishing and Game Angling

    -----------------------------------------

    Comment


      #3
      I tried Act_Primary.html this made the webpages load extreamly slow.

      I put the code in Act_CatalogBody.html as far to the bottom as I can now the pages load fine & i dont get an error. I have been testing proformance for loading the pages depending on were the code for the counter is makes alot of difference.

      Many thanks for your help when I added the code to Act_Primary.html anywere in the template the webpages loaded slow.

      Thanks again

      Dave
      David Shorthouse,
      Website Manager,
      http://www.Queenswood.co.uk

      Comment

      Working...
      X