NameSilo

Affiliate JavaScript vs HTML code?

NamecheapNamecheap
Watch

MJ

VIP Member
Impact
66
Hey guys,

On CJ and other places they sometimes give two codes for your affiliate link. HTML and Javascript. I was wondering if there is a difference/advantage to using one over the other?

Thanks a bunch!
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
Some people block javascript from ever reaching their browser. FF has some extensions that do this. Add that to the growing number of people using ad blockers and imo it's better to go with html.
 
1
•••
The benefit to javascript links is it makes it easier for the merchant to push rotating or updated offers without the affiliate having to change links. It also hides your affiliate links from search engines (which don't like them) and certain security software (which blocks them) and makes them less prone to cookie blocking.

Disadvantages: You can't use them in email, they bloat your page load times, and as Whitebark mentioned, some people block Javascript in their browsers (so does some software). If you use Javascript links you should ideally have a "noscript" tag for each one, which is a pain. They are difficult to impossible to integrate into click tracking software too.
 
1
•••
use html they're more guaranteed to pass people's browser compared to javascript which can be turned off.
 
1
•••
Thanks so much guys! All of your input was taken to heart! :hearts:
 
0
•••
CatchedCatched

We're social

Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomainEasy — Payment Flexibility
DomDB
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back