Skip to main content

Is Monetag compatible with Cloudflare?

A
Written by Admin
Updated over a month ago

Cloudflare does have a feature called RocketLoader that may break our JavaScript code and affect your ad impressions and revenue.

To make our ad codes compatible with Cloudflare, you can have Rocket Loader ignore individual scripts by adding the data-cfasync="false" attribute to the relevant ad channel tag (before the 'src' attribute).
​
For example:

An on-click ad code created in your account looks like:

<script type="text/javascript"src="//dolohen.com/apu.php?zoneid=1519728"></script>

You should add the data-cfasync="false" before the 'src' attribute. So the code should be:

<script type="text/javascript"data-cfasync="false"src="//dolohen.com/apu.php?zoneid=1519728"></script>​

Did this answer your question?