Make CloudFlare's Rocket Loader Ignore Your Tracking Scripts

If you are using Cloudflare, especially their Rocket Loader JavaScript loader, you may encounter issues with your Post Affiliate Pro click or sale tracking JavaScript codes.

Fortunately, there is a way to ensure that your tracking scripts are not processed by Rocket Loader. According to Cloudflare's support documentation, it is sufficient to add the data-cfasync="false" attribute to any JavaScript files that should be ignored.

Here is an example of a click tracking code with this parameter added in all necessary places:

<script data-cfasync="false" type="text/javascript">
document.write(decodeURI("%3Cscript data-cfasync='false' id='pap_x2s6df8d' src='" + (("https:" == document.location.protocol) ? "https://" : "https://") +
"SOMETHING.postaffiliatepro.com/scripts/wwj1wof2z' type='text/javascript'%3E%3C/script%3E"));
</script>
<script data-cfasync="false" type="text/javascript">
PostAffTracker.setAccountId('default1');
try {
PostAffTracker.track();
} catch (err) { }
</script>

Ensure you add the attribute in all three highlighted positions.

×