Hey, I will constantly link to different CJ merchants, but it takes a lot of time to add the affiliate tag at the end of each URL. Is there a way to automatically add my affiliate ID to the end of an url if it leads to a CJ affiliate?
The best way would probably be to use javascript. something like this will append your aff id to the end of every url but you would have to modify it to make it work on only CJ links: var links = document.getElementsByTagName('a'); for (var i = 0; i < links.length(); i++) { links[i].href = links[i].href + "&aid=9999999999"; } Code (markup): Like I said that is a very basic script that would get the job done but definitely needs to be fine tuned in order to provide the correct results you're looking for. Hope this helps!
If you're using WP then you can install the cross-linker plugin to turn specific words or phrases anywhere within your articles into links