Sorry
I missed mentioning one thing
I want to make any affiliate external link from my website going to amazon {no follow sponsored}
will this be useful and let me know where I can place it o automate my external links going to amazon?
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js">
</script><script type="text/javascript"> $(document).ready(function() {
$("a").each(function(){ if($(this).attr("href").indexOf("amazon") != -1 ||
$(this).attr("href").indexOf("amzn") != -1) { $(this).attr("rel","sponsored noopener");
$(this).attr("href", $(this).attr("href") + "?tag=amazon-ID"); } }); }); </script>
IN this code I will replace my amazon ID
Is there any way of adding this to my site without using plugin
-
This reply was modified 3 years, 7 months ago by Basit.
-
This reply was modified 3 years, 7 months ago by Basit.