You would use this if the target links are located on your site.
Go to Options - Advertisements (Left main menu) and add the Ad image name under Filename and the Ad script name under Clickstring.
Tip - If you just want to track requests for a specific image, use the image name as the Filename and the Clickstring.
After the reports are generated to screen, Select the Marketing - Ad Views and Clicks report to see it.
ClickOuts are clicks on external links that link to web pages which are not on the local website. These clicks are usually not advertisements and there are usually no costs involved. The hit information on an external link is not logged in the local site's log file but logged in the log file of the remote site. Each page with external links that you want to track would require a javascript snippet to generate the hit information in the local server's log file before the visitor is directed to the other site.
If you want to track clickouts from a number of pages you may want to consider using an include file in which case you only need to add the tracking script in the include file.
The tracking script makes a request to the externtracker.gif file with the necessary query parameters and then directs to the external link. The request for the externtracker.gif file is logged in the local website's log file and can then be picked up by SurfStats Website Traffic Analyzer when the log files are processed and reports are generated.
To set up tracking of external links with SurfStats Website Traffic Analyzer, you need to:
1. Place the externclick.js and externtracker.gif files on your website
2. Add the the following javascript code just before the </body> tag in every web page (or the include file) that you want to track the external links from.
<script type='text/javascript' src='externclick.js'></script>
Make sure that the links in the javascript code to the externclick.js and externtracker.gif files are correct. The externclick.js and externtracker.gif files and the web page are in the same directory in the above case.
3. As these external links are clicked hits to the file externtracker.gif will be logged in the site's log files.
4. Process the log files with the captured information with SurfStats Website Traffic Analyzer (to screen) and view the Data Mining - Visitor navigation report.
Please note that we do not provide support on the script and setup or on getting the hit information in your log files
Tracking Google AdSense Clicks
If you want to track the websites that visitors visited (when leaving your site) by clicking Google AdSense ads you can perform the same steps as for Tracking Clickouts, except that for step 2 you would add the line:
before the </BODY> tag. Please ensure that the files googleclick.js and externtracker.gif are copied to your site. You can track both Clickouts and Google AdSense clicks from the same page by including the lines after each other. Please view the contents of the included sample.html file for sample code.<script type='text/javascript' src='googleclick.js'></script>
Note: If you want to track incoming Google AdWords clicks (coming to your site) please refer to http://www.surfstats.com/eCommerce/campaignanalysis.asp