ClickBank Sale Tracker
Download, Configuration and Installation Instructions
Downloading ClickBank Sale Tracker to your computer
- CBSaleTracker is downloaded as a zip file. (See Video)
- Unzip (extract) to an empty, temporary directory. (See Video)
It will look something like this:
What's included in ClickBank Sale Tracker
ClickBank Sale Tracker is just 4 files:
- installation instructions.txt - This is a basic text file with copyright information and web address to get you here so you have the latest instructions and videos at your disposal. No need to copy this to your web site.
- index-cbst.php - This is the main file for your website and will go in the root directory of your site. With just a few lines of code it will redirect visitors to your ClickBank vendor and supply tracking information. It needs to be renamed index.php for a top level domain redirect. We named it this so you would NOT accidentally overwrite your home page if you already have a website on that domain.
- includes/hoplink.php - This file needs to be edited by you (we show you how) with just a text editor (not MS Word) to include your ClickBank hoplink information. Can be either the encrypted or non-encrypted version. This file is actually only used on Top Level Domain Redirects.
- includes/createtid.php - This is the program file, the meat & potatoes of CBSaleTracker. You need not do anything but copy this file to the web site.
Configuration of files while still on your computer
For Top Level Redirect Only - This is where you do not intend to build your own website, but simply want the visitor to be automatically forwarded to the product vendor's sales page.- Rename index-cbst.php to index.php. Do NOT perform this step if you already have a website in place or it may overwrite your current home page!
- Critical Step To Make Sure You Get Paid! - Edit hoplink.php (in the includes subdirectory) using a text editor like Notepad. IMPORTANT! Do NOT use MS Word unless you know how to save the file as text only!
Insert the affiliate link from ClickBank in the appropriate location.

Domain Registration and Web Site Hosting Account
- If you need to register a domain, register one at GoDaddy.com (See Video)
- If you need a hosting account, we recommend a "Baby Plan" at HostGator.com (See Video)
- If you just registered a new domain and have a hosting account at HostGator you will need to point your nameservers to HostGator (See Video)
- If you do not have software on your computer to copy files to your web host (FTP software), then download, install & setup the free FileZilla software (See Video)
Copy CBSaleTracker files to your web site
- Copy (or upload) contents of temporary directory to your website root directory (See Video)
It will look something like this:
Top Level Domain Redirect (If you do not and will not have your own web site)
Nothing to do! You are already done. As long as you renamed index-cbst.php to index.php in the Configuration step above, you are all set. When someone clicks on a link to your domain name, they will automatically be redirected (forwarded) to the vendor's sales page with sale tracking!Skip down to Testing.
Web Page Integration (If you already have a web site in place)
- Copy (upload via FTP) CBSaleTracker file(s) to your web site. You do NOT need the file index-cbst.php that is included in the download package or even hoplink.php. Don't bother copying to your website if you do not want to. Createtid.php in the includes directory is what you absolutely have to have.
- Insert the php code shown below as the first line of the <body> section of the web page:
</head>
<body>
<?php require_once('includes/createtid.php'); ?> - Now you can utilize the tracking code in any link of your choosing by doing something like this:
<a href="http://yourclickbanklink/<?php echo $tid; ?>”>Product Name</a>
You simply append the php code in bold above (starting with ‘<’ and ending with ‘>’) directly to the end of the ClickBank link (still inside the quotes) and that will fill in the Tracking ID ('&tid=' + actual TID info) for ClickBank. - Test!, Test!, Test!
Test!, Test!, Test!
When we test we are checking for 2 things: (See Video)- Test to make sure that when you enter your domain name in a web browser's address bar, you are taken to the product vendor's sales page.
- Test to make sure you will get credit for the sale by clicking through to the checkout page, scrolling to the bottom and making sure that you see [affiliate = your_clickbank_id].