How do I know if hiding my affiliate link is working?

3 replies
I have to admit this is my first time trying this code to hide my affiliate link:

<a onclick="parent.location.href='http://w w w . Affiliate-link';
return event.returnValue=false"
href=http://w w w .Display-Link>Anchor Text </a>

All seems to be working correctly in that all that gets displayed is the trimmed URL.
Besides getting zero credit for sales how else can I tell it works?
#affiliate #hiding #link #working
  • Profile picture of the author Melissa82
    If anyone knows another proven method that works in all browsers I'd love to know.

    Thanks
    {{ DiscussionBoard.errors[4776097].message }}
    • Profile picture of the author sitehero
      Create a .php file that directs to your affiliate link inside. Name the file whatever you want your link to be then just create a link to that php file. When someone hovers the link it will look like a normal directory link in the status bar so they won't know its an affiliate link.

      For example,
      if your .php file is called hidden-affiliate-link.php you create your link as:

      Code:
      <a href="http://www.YourWebsite/hidden-affiliate-link.php">Anchor Text</a>
      inside your .php will look like this to direct to your affiliate link:
      Code:
      <?php header("location: http://www.AFFILIATE-LINK-HERE.com"); ?>
      EASY!

      ---------------------------
      or you can just edit your htaccess file to direct any paticular link to your affiliate link:

      Create a link with a fake directory:
      Code:
      <a href="http://www.YourWebsite/FAKE-DIRECTORY-NAME">Anchor Text</a>
      Inside you htaccess file add this:
      Code:
      redirect 301 /FAKE-DIRECTORY-NAME http://www.AFFILIATE-LINK.com
      Then when anyone clicks that link, it will get directed to your affiliate link.

      Also VERY EASY.
      {{ DiscussionBoard.errors[4776186].message }}
      • Profile picture of the author asidewalk
        I've never seen someone try to hide the affiliate link the way you describe in the OP. Listen to Sitehero. The examples given in their post work 100% of the time, and only take a minute or two to setup
        {{ DiscussionBoard.errors[4777374].message }}

Trending Topics