NameSilo

Affiliate JavaScript vs HTML code?

SpaceshipSpaceship
NamecheapNamecheap
Namecheap AuctionsNamecheap Auctions
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
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
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
Close
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
Close
use html they're more guaranteed to pass people's browser compared to javascript which can be turned off.
 
1
Close
Thanks so much guys! All of your input was taken to heart! :hearts:
 
0
Close
CatchedCatched

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

The forum home page in the new NamePros Dark style
NamePros Dark has a new look
The dark style of the forum is now darker. The page is close to black, with a slight blue tint. New style: NamePros Dim Do you...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back