Replace affiliate link with a VigLink link

While Datafeedr does not officially support VigLink, if you want to replace your affiliate links with a link to VigLink, here's the code to do so.


There are limitations to this method. Not all products contain the necessary data to redirect to VigLink. If the necessary data is not available, the affiliate network affiliate link will be returned instead. Therefore it's a good idea to enter your affiliate ID for all networks just in case.

This works best with most ( but not all) products from the following affiliate networks:

AdRecord, Adtraction, Affiliate4You, AffiliateWindow, APD, Belboon, BettyMills, ClixGalore, Commission Junction,, Impact Radius, LinkConnector, Rakuten, Optimise, Partner-ads, PepperJam, TradeDoubler, TradeTracker, Webgains & Zanox.

Pro Tip

If you are using the Datafeedr Product Sets plugin and you only want to import products into your site which work with VigLink, then you should use the "Has Direct URL" filter and set the filter value to "yes".

Use "Has Direct URL" filter to only return VigLink-compatible products.

Let's begin!


Create a custom plugin

If you haven't done so already, create a custom plugin .


Add custom code

Add the following custom code to your custom plugin:


Add your VigLink API key

Replace 88ac2a40e081e283ac504d1789d398ac with your VigLink API key. Your VigLink API key can be found on your account page.



Save your custom plugin file.

Now any product which has the required data for being converted into a VigLink link will be converted.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us