Comdev - The Search For Scripts Is Over Reuse To Save Time and Cost
All Modules Under One Back-End
 
Home
Product
Support
Enquiry
Become Partner
Order Now

Browse Topics In
Knowledge Base


Back To Top

Installation

Troubleshooting

Tutorials

Upgrade To v3.1


Search for Answers
Intelligent FAQ Search. Type in your keywords to search for the answers you need.


Customer Helpdesk
Can't find the answers you need? Go to our Technical Support Helpdesk





Back Geo Traffic > Tutorials Showing 1 of 5 Next


What is the code I need to use for Geo Traffic to track my web pages? Can I put the code on my html pages?
Modified on 2004-12-21


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.




Is this FAQ helpful? Ratings :
Printer Friendly Version
Tell A Friend


Related FAQs In This Category
How do I translate the language file for my Geo Traffic?
How does the Geo Traffic works?



Copyright © 2002-2005 by Comdev Software Sdn Bhd. All Rights Reserved. License Agreement Privacy Policy Site Map