When Real Time Stats are enabled, you can access the Traffic Facts Control Panel 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
- Place this script on all pages that are not invoice or lead pages. It allows us to track page hits.
- Invoice
- Place this script on invoice pages. It tracks invoice conversions for a particular Ad ID.
- Lead
- Place this script on pages that are not invoice pages, but have leads, such as a “more info” or customer feedback page.