Dynadot Aftermarket: discover domain gems worth investing in. Visit our aftermarket.

Affiliate JavaScript vs HTML code?

SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
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
DomainEasy: white label portfolios are live. Enable yours.

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Each character of a domain name in its own box, with how to type one of them
Bookmarks: see bookmarks without a label
You can now show only the bookmarks you have not labeled. Open the label filter in the Bookmarks tab of your account menu, or on your...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back