Tag installation



The steps are the following : extract the tag package, insert a tag in your webpages, install w3perl locally and build a configuration file to customize your stats.
W3Perl installation directory

1.1 - Extract on the server

Download the W3Perl package. Extract it on your web server root, it will create a /w3perl/ directory.

1.2 - Permission

Once uncompressed in your server root, the following files are available.

/w3perl/resources/Readme-tag.txt the tag to be inserted in your web pages
/w3perl/resources/tag_log.php the php script which will create logfiles
/w3perl/resources/js/w3perl_tag.js the javascript script to be inserted in your webpages
/w3perl/logs/htaccess.dist htpassword example to password protect your log directory (Apache)

The /w3perl/logs/ directory should be writeable by the server so chmod 777 if not or change owner. Password protect this directory.

1.3 - Insert javascript tag

Edit each file you want to monitor and add the following tag just before </body> :
<script type="text/javascript" src="/<w3perl_install_dir>/resources/js/w3perl_tag.js"></script>
where <w3perl_install_dir> is the directory where w3perl have been installed. Default value is /w3perl/

PHP should be enabled

1.4 - Compute stats

Customize the config-tag.pl configuration file and use it to run the stats.