Search

AvantLink HTTPS Link-Chain Fixer

I’m working on a script to modify all AvantLink Affiliate tracking links on your site to fix some of the known issues in switching to HTTPS. The AvantLink HTTPS Link-Chain Fixer script changes two things:

AvantLink HTTPS Link-Chain Fixer Options

jQuery(this).attr('rel','nofollow'); adds ref=nofollow to the affiliate links,console.log("..."); lists the ads for you review in the javascript console. Both of these are optional. You can delete them or comment them out. If your site does not load affiliate ads via javascript you can remove setTimeout and just call AvantLinkHTTPSLinkChainFixer(); (or change 1000 to 0)

jQuery(this).attr('style','background-color:yellow;'); is in there so you see which ads are reviewed by the script. Use it to help you debug timing issues.

Here are the most common link-chain scenarios and what the script will repair.

2 comments on:“AvantLink HTTPS Link-Chain Fixer”

@Shakil,
Avantlink now supports HTTPS, so you should no longer need to fix their URLs. I recommend globally replacing non-secure AvantLink urls like href=”http://www.avantlink.com/click.php?…” to href=”https://www.avantlink.com/click.php?…”