I like to have all external affiliate links point back to my domain. I don’t want to advertise lots of external links to search bots so I do some basic link cloaking back to my domain and redirect. I wanted the same effect with my PopShop products. Luckily, PopShops provides this as a feature for Enterprise users.
A little background, PopShops is a great tool to quickly add products across various affiliate networks (CJ, ShareASale, GAN, etc). There is NOT easier way to add products to your site than PopShops, and I’m a huge fan!
To add link redirection you will need to do two things.
#1 Add a piece of code on all pages that have PopShop products.
ob_start();
if (isset($_REQUEST[‘psps_product’]))
header(‘Location:http://r.popshops.com/’.$_REQUEST[‘psps_product’]);
ob_end_flush();
?>
#2 Adjust your PopShop shop (via PopShop’s interface) to allow Link Redirection
- Open your shop
- Click Preferences
- Click the Link Redirection tab
- Check ‘Have all product redirects point to your own domain.’
What this will do is convert links to look like this:
http://www.yourdomain.com/?psps_product=sp/130854/2970123463/my-product-item
When a user clicks the link, they will be redirected to the same page where it was created, but the hunk of code will detect ‘psps_product’ and redirect the user to the r.popshops.com domain and on to the designated affiliate.
Related posts:
0 Responses
Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.