Handling affiliate links

by smoh
1 replies
  • SEO
  • |
Hi all,

Just wanted to see what your thoughts were on creating affiliate links. I've seen multiple ways from 301 redirects to PHP header or javascript. However, affiliate links that I currently have are using either the <A> tag or a <input type="button"> with javascript inside the button.

I was wondering if I should worry about these. With all of the <a> tags, I nofollow them and with the buttons, I'm not sure what to think on this part. Would it still be SEO friendly to have <input type="button onClick>. The URL still appears in the HTML source code, but I'm not sure if you can nofollow buttons or not. Any thoughts? I do not want to get rid of the buttons or the <a> tags.
#affiliate #handling #links
  • Profile picture of the author Shout Out Digital
    Originally Posted by smoh View Post

    Hi all,

    Just wanted to see what your thoughts were on creating affiliate links. I've seen multiple ways from 301 redirects to PHP header or javascript. However, affiliate links that I currently have are using either the <A> tag or a <input type="button"> with javascript inside the button.

    I was wondering if I should worry about these. With all of the <a> tags, I nofollow them and with the buttons, I'm not sure what to think on this part. Would it still be SEO friendly to have <input type="button onClick>. The URL still appears in the HTML source code, but I'm not sure if you can nofollow buttons or not. Any thoughts? I do not want to get rid of the buttons or the <a> tags.
    Hi Smoh, It is my understanding that you cannot create a no follow with javascript which means you will not have control over this. However I can suggest that you change the Input button to a <A> tag with the image of the button inside. That case you can add the nofollow and still have your image of a button. Not sure if I am allowed to add a link to another website on here so you can go to W3 Schools and go to Text Links section under HTML Basic and scroll to the bottom of the page and it is in More Examples.

    Hope this helps and please thank me if it does :p
    {{ DiscussionBoard.errors[7367783].message }}

Trending Topics