LinkTrack |
|
Outbound Link Tracker. |
This is a simple script to track your outbound links. There are two parts,
linktrack.js and linktrack.php.
The javascript part captures clicks an oinks and invokes the php part when
a surfer clicks a link. The link is recorded in a flat file name linktrack.txt.
You can import the file into MS Access or your favorite spreadsheet program
and get stats on where your surfers are heading.
Add the following code to each page that you want to track.
<script language="JavaScript" src="http://www.yoursite.com/linktrack/linktrack.js"></script>
Change the url of the linktrack.js to the correct location of your Javascript.
Change the URL at the top of the linktrack.js file to match the location of
the linktrack.php script.
Change the access permissions using chmod on the directory where the php script
lives to writeable, so that the program can create and append to the linktrack.txt
file. This file will contain an entry for every outbound link from your page.
The thing is too simple to mess up.
Download the zip file containing linktrack.js and linktrack.php
Download Now |