Skip to content
My Agile Pixel® server-side, made easy
Cache

How to configure LiteSpeed Cache with My Agile Pixel®

Updated Oct 2026 2 min read

LiteSpeed Cache is a popular and powerful WordPress caching plugin, especially when used with LiteSpeed web servers. It offers a wide range of features to enhance site performance, including page caching, minification and combination of CSS and JavaScript files, deferred script loading, image optimization, database cleaning, and more.

With proper configuration, LiteSpeed Cache can work seamlessly with My Agile Pixel®, ensuring both optimal speed and complete tracking. Here’s how to adjust LiteSpeed Cache to avoid conflicts with the plugin:

Since My Agile Pixel® 3.4.1 these exclusions are automatic: the plugin keeps its own scripts out of the LiteSpeed Cache optimizations by itself. The steps below are for earlier versions, or if you still notice problems.

Excluding JavaScript Files

To make sure My Agile Pixel® runs smoothly, you must exclude certain JavaScript files from LiteSpeed Cache’s optimizations (both minification and deferred/lazy loading).
From your WordPress admin, go to LiteSpeed Cache > Page Optimization.
In the JS Excludes section, paste the following (one path per line):

/wp-content/plugins/myagilepixel/frontend/js/myagilepixel.js
/wp-content/plugins/myagilepixel/frontend/js/myagilepixel.min.js
/wp-content/plugins/myagilepixel/local-cache/my-agile-pixel/myagilepixel.core.js
/wp-content/plugins/myagilepixel/local-cache/my-agile-pixel/myagilepixel.ga4.js
/wp-content/plugins/myagilepixel/local-cache/my-agile-pixel/myagilepixel.meta.js
/wp-content/plugins/myagilepixel/local-cache/my-agile-pixel/cookie-shield.js

On the same page, find the JS Deferred/Delayed Excludes option and repeat the same list above.
Be sure to save your changes before continuing.

Excluding CSS Files

To avoid issues with how the plugin’s assets load, you’ll need to exclude My Agile Pixel®’s CSS files from optimization.

In LiteSpeed Cache > Page Optimization, open the [9] CSS Optimization tab.
Under CSS Excludes, add the following (one per line):

/wp-content/plugins/myagilepixel/frontend/css/mapx.css
/wp-content/plugins/myagilepixel/frontend/css/mapx.min.css

Again, don’t forget to save.

Depending on your LiteSpeed Cache version and settings, you may also need to disable these options for full compatibility:

  • CSS minification
  • Combine CSS
  • Asynchronous CSS loading

If you need assistance or encounter problems, feel free to contact our support team or reach out to LiteSpeed Cache’s support.

Frequently asked questions

// ready to go

Recover the conversions you are losing

Turn on server-side tracking on your WordPress: recover the events the browser blocks, after consent.

Buy now →