AllMyStats
Accueil Admin

How to insert php code in your pages

AllMystats login to your site and click on "Admin"
The 1st code is automatically calculated based on your installation and should in most cases. You just have to copy / paste the code below on your Web pages.

Don't forget to put a name different page for each of your webpages
Exemple: $nom_page='Accueil - Index'; - $nom_page='Formulaire de contact'; - etc ..

Do not copy the code shown below, this is one example.

Insertion code in the pages

For the visits are counted you in every page your site put a code.

If the pages on your site are in PHP

Note:
The code with the path (path) calculated is available in the "Admin" once AllMyStats installed.

$nom_page is the name of the page, you can put the name you want for each page.
Example:
$nom_page = 'home page';

path is the path to access the directory allmystats
Example:
If the directory allmystats is the root of the site:
require $Racine_abs. 'allmystats/visiteur.php';
If the directory allmystats is in the directory stats site:
require $Racine_abs. 'stats/allmystats/visiteur.php';

To be sure that pages have been recorded views fully, it is preferable to put the code at the bottom of page

The HTML pages and htm will be treated as if they were PHP.
Then put the PHP code in each page of your site with tags <?php at the beginning and ?> at the end.

----------------------------------------------------------------2nd solution:
Note: referring and keywords will not be counted.
Code simple:
<img src="path/allmystats/visiteur.php?nom_page=nom_de_la_page" width=0 height=0>
Note: path is the path on to access the directory allmystats