|
Site tracker is a script that can collect different kinds of data about your visitors by capturing form elements and span tag values and send them to the Data Center. Generally the site tracker enables you to monitor your website. If you have no web software installed or the one you have is not on the 'Compatible software' list, you will need to manually insert the tracker code into each page of the site.
The tracker needs to be present on every page that you want to be monitored, so the best place to insert the piece of code that calls on the tracker script is the site header/footer area or a template present in each of the site pages.
When inserting the code into a web page, make sure you place it within the body of the page only once. Create the necessary code using the HTML Code Generator or manually by using the following template:
<!-- [Sales-n-Stats Site Tracker] -->
<script type="text/javascript">
<!--
var sns_location=(window.location.protocol == "https:")?
"{HTTPSCollectorRoot}" :
"{CollectorRoot}";
document.writeln('<script src="'+sns_location+'/tracker.js.php"><\/script>');
// -->
</script>
<noscript><p style="display: none"><img src="{CollectorRoot}/static.php" width="1"
height="1" alt="" /></p></noscript>
<!-- [/Sales-n-Stats Site Tracker] -->
where:
| • | {HTTPSCollectorRoot} is the full URL of the Data Collector HTTPS directory (such as https://example.com/my/collector/path). |
| • | {CollectorRoot} is the full URL of the Data Collector directory you entered in the process of Sales-n-Stats installation (such as http://example.com/my/collector/path). This URL must correlate with the cookie domain and cookie path in the Data Collector. If it does not, visitors might be identified incorrectly (for example two visitors can be identified as one). |
For example:
CollectorRoot: http://example.com/my/collector/path
cookie domain: example.com
cookie path: /my/collector/path
| • | {TemplateSetHint} is the template set, which will be used in the "Open Chat", "Route Call" и "Chat Window" dialogs. Default value is an empty string. If a non-existing template set is specified, the template set name is empty or the tsh parameter is omitted, the default template set will be used. |
| Note: | To ensure the correct operation of the site tracker specify the location of the script by entering the absolute path to the Data Collector. To check if you have the right path, enter the following in your browser window:
{CollectorRoot}/chat.php?passphrase={your_passphrase}&command=getStream
substituting {CollectorRoot} with the path to your collector and {your_passphrase} with the exact collector passphrase.
If the first symbol on the page is {, then your settings are correct. |
|