Support Center

Home > Knowledgebase > Getting Started > How do I track an exit link, a download or a PDF?

How do I track an exit link, a download or a PDF?
WebSTAT does not directly track these downloads. However, there is a form of redirects using iframes that will allow you to track when an outside link or download was clicked. You cannot place a counter on this page, so only paid customers can use this feature. You must know HTML in order to use this method. It will not track whether the download was completed or not, just whether it was started.

The visitors to your web site must be able to load iframes. IE 6 (windows), Firefox 1.0, Netscape 6.2 and Mozilla 1.75 and higher versions all support iframes. Other browsers have not been tested and may or may not work.

In order to approximate exit links, downloads and PDFs, you will create a completely new page. This is not a modified version of an existing page, but a whole new page. Here are the contents of your new page, with three changes:

<html>
<head>
<title>YOUR TITLE</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body marginleft="0" margintop="0" topmargin="0" bottommargin="0" rightmargin="0" leftmargin="0" scroll="no">
<iframe src=”http://destination.com” id="icframe" name="icframe" width="100%" height="100%" frameborder="0" scolling="0" style="display:inline" align="left"></iframe>

<div style="z-index: 1; display:block;height=0px;width:0px;">
<!-- BEGIN WebSTAT Activation Code -->
<script type="text/javascript" language="JavaScript" src="http://hv3.webstat.com/cgi-bin/wsv2.cgi?#####"> </script>
<noscript>
<a href="http://www.webstat.com">
<img src="http://hv3.webstat.com/scripts/wsb.php?ac=#####" border="0" alt="Web Statistics and Website Counter by WebSTAT" />
</noscript>
<!-- END WebSTAT Activation Code -->
</div>
</body>
</html>

You should change:

  • The title

  • The destination url. This is the exit link or the download you wish to track.

  • The ##### should be replaced by your site id.


You may also make changes to all the code besides the WebSTAT activation code.

This is a new method we are trying, so there are no guarantees that it will work. This has worked in all of our testing, except some earlier versions of browsers. Please let us know if you run into any problems.


Rating: (8582 Votes)
Was this answer helpful?: Yes   No
Related Topics
Exit Pages Report

Making Statistics Publicly Available

What is the WebSTAT Viewer?

Click Thrus

Print Article
Add to Favorites
Rate this Article