If you have many web pages on your site it can be quite tedious
to open up each page and paste in the WebSTAT code tags. You might
consider using Server Side Includes (SSI). With a simple SSI include
directive in your web pages you can include the contents of an external file.
Many websites use this method to include a common "footer" (or "header").
This file is an ideal place to insert the WebSTAT code tags, since you only
need to edit it once and it will automatically be included into all your pages.
There are many different ways of implementing includes. You should consult
with your hosting provider or webmaster to find out the best way to implement
them in your situation. Below find a few examples:
Apache Web Server Server Side Includes (SSI)
Unless Server Side Includes have been turned on site-wide
by your webhost, you may need to create a file named .htaccess in the folder
you put your HTML files in. The file .htaccess should have the following three
lines in it:
Options Indexes FollowSymLinks Includes AddType application/x-httpd-cgi .cgi AddType text/x-server-parsed-html .html .htm |
Then in your web pages, commonly near the bottom
(directly before the </body> tag), put in the SSI include directive as follows:
<!--#include virtual="webstat_codetags.inc" --> |
You can find more information about using Apache
Server Side Includes HERE.
PHP Includes
PHP is a scripting language that has become very popular
for designing dynamic websites in recent years because of its ease of use and
powerful capabilities. If your website was coded in php (typically has a .php
extension), you can use the php include directive as follows:
<?php include ("webstat_codetags.inc"); ?> |
Put the php include directive near the bottom your html,
directly before the </body> tag.
ASP Includes
If your website was coded in asp (typically has an .asp
extension), you can use the asp include directive as follows:
<!--#include file="webstat_codetags.inc"--> |
Put the asp include directive near the bottom your html,
directly before the </body> tag.