The basic code (tracker) for your Geo Traffic is:
<? include_once("config.php"); include("geotraffic/home.track.php"); ?>
However, to ensure the Geo Traffic works on all pages on your website, we recommend you to add the full Document Path (path from top level to /oneadmin folder on web server) to the tracker.
To find your full Document Path, open the /oneadmin/config.php file with your text editor and note down the value. Let's assume the path is '/home/sitename/public_html/oneadmin/'.
Now, the complete tracker should look like this:
<?
include_once("/home/sitename/public_html/oneadmin/config.php");
include("/home/sitename/public_html/oneadmin/geotraffic/home.track.php");
?>
Paste the above code to any .php web pages that you want the tracker to appear on. Please note that the tracker must be insert to the first line of the php files, making sure there is nothing (no blanks, no spaces, no characters) neither before the <? tag at the beginning, otherwise you will prompted the error message, 'session..header already sent'.
The PHP Geo Traffic is not able to report counters of html pages, it only works on php files. However, if you have PHP installed on your online server, you can save the .html page to .php, your html web pages will still working.
|