Page rules and script priority

We are working on cookie policy implementation project.

As part of this implementation, we need to add a single line of script(Tag control script) which should block all the cookies until the consent is provided.

The issue we are facing is that, the rocket launcher is firing some Tags before Tag control script, causing cookies to fire without consent

We want Cloudflare/ rocket launcher to fire Tag control script first thing on the page, Do you or any contact/support can help us with this?

You can exclude a script from Rocket Loader by adding the data-cfasync="false" attribute to the script tag:

<script data-cfasync="false" src="/javascript.js"></script>

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.