What are the different types of page scripts in Real Time Traffic Facts?
Last Updated:
August 3, 2007 8:37 AM
When real time stats are enabled, you can access the Settings tab in the Traffic Facts application to automatically generate script snippets to insert on each page. The scripts are typically one line javascripts, and are identical for each tracked page.
An example of the Standard page script is:
<script type="text/JavaScript"
src="http://rt.trafficfacts.com/tf.php?k=
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&c=s"></script>
src="http://rt.trafficfacts.com/tf.php?k=
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&c=s"></script>
Note: This script does not reference an actual account. The string of "X"s represents a Real Time account number the system generates for you. To obtain your Real Time codes, see How do I find my real time codes?
On lead and invoice pages, there is additional code to track the invoice number and amount, if desired. An example of that code is:
<script type="text/JavaScript"><!--
var TFN = 'xxx'; // Change xxx to the invoice number
var TFA = '$$$'; // Change $$$ to the invoice amount (numeric
only!)--></script>
var TFN = 'xxx'; // Change xxx to the invoice number
var TFA = '$$$'; // Change $$$ to the invoice amount (numeric
only!)--></script>
The page types are as follows:
- Standard
- The script you want on all pages that are not invoice or lead pages. It allows us to track page hits.
- Invoice
- The script you want on invoice pages. It tracks invoice conversions for a particular Ad ID.
- Lead
- The you use to track the conversion success of pages that are not actual invoice pages, but are pages you want track the conversion success of a particular AD ID for. It sends a conversion, but sends an arbitrary amount.
