NameSilo

Tracking affiliate links?

Spaceship Spaceship
Watch

.jd.

Established Member
Impact
11
I couldn't find the thread that I cam to earlier. So I figured I would just ask for help. I am looking for software or a technique to use to track my affiliate link. (number of people clicking it)

As well, anybody know a decent way to cloak affiliate links?
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable DomainsUnstoppable Domains
Very basic example:

PHP:
<?php 

/*  mylinks.php */

  $ids = array (
    1=> "your first affiliate link here",
    2=> "another affiliate link ...",
    3=> "a third affiliate link");

$i = $_GET['id'];

header('Location:$ids[$i]');

?>

On your page:

HTML:
 <a href="mylinks.php?id=1" rel="nofollow">Buy it now!</a>

That's a little oversimplified - you should do some error checking and data sanitization and might want to log stats into a file or database (though you'll have them in your logs anyway), but that's the general idea ...
 
Last edited:
0
•••
either use usercash.com or ucash.in to track your clickthrus plus you get paid by them separately but don't use both, for they are competitors.
 
0
•••
0
•••
Dynadot — .com Registration $8.99Dynadot — .com Registration $8.99
Appraise.net

We're social

Unstoppable Domains
Domain Recover
NameMaxi - Your Domain Has Buyers
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back