How to Make Shoplinks Work with Cloudflare

How to Make Shoplinks Work with Cloudflare

Shoplinks is a simple tool by Involve Asia that automatically converts all relevant links and keywords into affiliate links. This allows you to monetize your content easily without generating affiliate links manually.

What is Cloudflare?

Cloudflare is a service that provides:

  • Content Delivery Network (CDN)

  • DDoS protection

  • Internet security services

  • Distributed Domain Name Server (DNS) services

It works as a reverse proxy between your visitors and your hosting provider, helping websites load faster and stay secure.


Yes — Shoplinks works well with Cloudflare. However, due to how Cloudflare processes scripts, some adjustments may be required to ensure smooth functionality.


Because Cloudflare acts as a proxy, our system cannot automatically detect if Shoplinks is installed correctly.

To test if Shoplinks works:

  1. Insert an advertiser link or keyword into your content.

  2. Check if the link/keyword converts into an Involve Asia affiliate link.

If it does, Shoplinks is working fine.


Cloudflare’s Rocket Loader automatically combines and optimizes all scripts on your site (e.g., Facebook Pixel, Google Analytics, Involve Asia scripts).

Issue: Rocket Loader is not compatible with Shoplinks by default.
Solution: Exclude Shoplinks from Rocket Loader by adding a parameter to the script.

Example Fix

Original Script

<script type="text/javascript" src="//app.involve.asia/magic/6500/auto.js"></script>

Modified Script (with Rocket Loader fix)

<script type="text/javascript" data-cfasync="true" src="//app.involve.asia/magic/6500/auto.js"></script>

Adding data-cfasync="true" tells Cloudflare to exclude Shoplinks from Rocket Loader optimization, ensuring it works properly.


Final Notes

  • Always verify your affiliate links are converting correctly after installation.

  • If you encounter persistent issues, disable Rocket Loader for the script entirely.

  • Shoplinks should work seamlessly once the adjustment is applied.