Caching plugins and optimization configurations, while boosting your site’s speed, can sometimes interfere with other plugins if set too aggressively.
For My Agile Pixel®, this can stop the scripts from loading and cost you events. Here’s how to configure WP Rocket for optimal compatibility so you get both speed and complete tracking.
Since My Agile Pixel® 3.4.1 these exclusions are automatic: the plugin keeps its own scripts out of the WP Rocket optimizations by itself. The steps below are for earlier versions, or if you still notice problems.
Excluding My Agile Pixel® CSS from optimizations
To ensure My Agile Pixel® functions correctly, exclude its CSS from minification, combination, and other optimizations in WP Rocket.
Add the following lines to both the “CSS Excluded” and “CSS Safelist” fields in WP Rocket’s settings:
/wp-content/plugins/myagilepixel/frontend/css/(.*).cssExcluding My Agile Pixel® JavaScript
Also, exclude the following JavaScript paths from minification, combination, deferred loading, and deferred execution:
/wp-content/plugins/myagilepixel/frontend/(.*).js
/wp-content/plugins/myagilepixel/local-cache/my-agile-pixel/(.*).jsPaste these in the relevant JavaScript exclusion fields of WP Rocket.
Always remember to save your changes after setting these exclusions. These configurations should guarantee that My Agile Pixel® works as intended.
After making changes, always check your website to ensure everything works properly.
In some cases, you may need to disable “defer javascript execution” in the Optimization > JavaScript files section if you notice further issues.
For any questions or issues, you can consult our support or reach out to WP Rocket’s support team.
Frequently asked questions
Recover the conversions you are losing
Turn on server-side tracking on your WordPress: recover the events the browser blocks, after consent.
Buy now →
