Forum Moderators: DixonJones

Message Too Old, No Replies

SlimStats

Where do I install the tracking code?

         

Familyman501

12:25 am on Mar 6, 2006 (gmt 0)

10+ Year Member



I've installed SlimStats but not the last step.

Steven Wettone says ...
"To get started, you need to include the inc.stats.php file in your site's PHP code for each page where you would like stats to be counted."

My site has all .htm files. No .php files. The landing page is index.htm so where do I put the code?

I understand the code is one of the following:

@include_once( $_SERVER["DOCUMENT_ROOT"]."/slimstat/inc.stats.php" );

@include_once( "/home/astutech/public_html/slimstat/inc.stats.php" );

Please tell me where it should go?
Thank you.

jatar_k

5:53 pm on Mar 6, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



what you need is pages that will be parsed for php

you can make a change to apache, either to the httpd.conf or using .htaccess, to make .htm files be parsed for php. This means that you could put that php code directly into all your pages and it would be properly processed.