AFL UTM Tracker Documentation

  1. Home
  2. Docs
  3. AFL UTM Tracker Documentation
  4. Misc / Issues
  5. WP Rocket Setup

WP Rocket Setup

If your website uses the WP Rocket plugin, you may have certain settings which can prevent our JavaScript file from proper tracking.

Delay JavaScript Execution

If you’re using the “Delay JavaScript Execution” feature in WP Rocket, you would need to exclude our JavaScript file.

This is because WP Rocket will only load the JavaScript files when the user clicks/scrolls on the page. If the user navigates away to another page without scrolling the page, our JavaScript does not get loaded and you will get an inaccurate landing page and attribution.

Under the Delay JavaScript Execution > Excluded JavaScript Files text box, enter the following path:

wp-content/plugins/afl-wc-utm/public/js/afl-wc-utm-public.min.js