How to Configure W3 Total Cache with My Agile Pixel®
Updated Nov 20261 min read
W3 Total Cache is a powerful tool for comprehensive cache management on WordPress. It offers features such as CSS/JS minification to reduce page size and speed up loading.
However, aggressive caching and optimization may stop the scripts of My Agile Pixel® from loading, and cost you events.
To optimize speed while ensuring My Agile Pixel® works correctly, follow these simple steps:
First, from your site’s admin panel, go to: Performance > Minify.
On this page, focus on these fields: – Never minify the following JS files – Never minify the following CSS files
For proper operation, exclude the following JavaScript files (one per line):
Until the local copy is ready (for example right after installation), the scripts come from localcdn.myagilepixel.com: exclude this domain too. And the following CSS files:
Always test your site after any caching or optimization changes.
If you encounter any issues, you may need to further adjust settings or contact our support team or W3 Total Cache’s support.
Frequently asked questions
Why does W3 Total Cache break My Agile Pixel®?
W3 Total Cache's aggressive caching and CSS/JS minification can stop My Agile Pixel®'s scripts from loading, and that can cost you events. That's why you need to exclude our files from minification.
Where do I go in W3 Total Cache to fix this?
Go to Performance > Minify in your site's admin panel. Then focus on the 'Never minify the following JS files' and 'Never minify the following CSS files' fields.
Which JavaScript files do I need to exclude for My Agile Pixel® to work?
Exclude these, one 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, and /wp-content/plugins/myagilepixel/local-cache/my-agile-pixel/cookie-shield.js.
And what about the CSS files for My Agile Pixel®?
You need to exclude: /wp-content/plugins/myagilepixel/frontend/css/mapx.css and /wp-content/plugins/myagilepixel/frontend/css/mapx.min.css.
Do I need to do anything after adding all these exclusions?
Yes, remember to save changes after setting these exclusions. That's what ensures My Agile Pixel® keeps working properly.
How do I know if the fix actually worked?
Always test your site after any caching or optimization changes. Don't just save and walk away — check that everything is firing correctly.
What if it's still not working after I exclude all the files?
If you run into issues, you may need to further adjust settings, or you can contact our support team or W3 Total Cache's support.
// 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.
You can accept, reject, or customize the cookies by clicking the desired buttons.
By closing this notice, you will continue without accepting.
By accepting, you acknowledge that your personal data may be collected for the purpose of personalizing and measuring the effectiveness of advertising.
Google Analytics is a statistical analysis service provided by Google Ireland Limited (“Google”), a company of the Google LLC group (USA). This site uses it through My Agile Pixel®, which sends browsing events to Google via the site's server instead of directly from your browser; the events do not pass through the servers of the provider of My Agile Pixel®. To work, the service loads into your browser the Google Analytics script, which may install its own cookies.
The site owner chooses, through the My Agile Pixel® settings, which data to transmit: for example, they can choose not to send your IP address and the information about your browser, or remove certain tracking parameters from the page addresses.
Events are transmitted only after your consent, which you can withdraw at any time from the cookie preferences. If the site uses Google's consent mode (Consent Mode), before you make your choice a cookieless communication may be sent to Google indicating that consent has not been given; its content depends on the site's configuration.
CloudFlare is a traffic optimization and distribution service provided by CloudFlare Inc. Integration with CloudFlare allows it to intercept communications between this website and the User's browser, collecting statistical data about it.
Google Ads conversion tracking is an analytics service provided by Google Ireland Limited that is used to connect data from the Google Ads advertising network with actions performed on this Site.
Google reCAPTCHA is a SPAM protection service provided by Google Ireland Limited. The use of reCAPTCHA is subject to the Googleprivacy policyandterms of use.
Facebook Remarketing is a remarketing and behavioral targeting service provided by Meta Platforms Ireland Limited (“Meta”), used to link the activity of this site with the Meta advertising network. This site uses it through My Agile Pixel®, which sends browsing events to Meta via the site's server, through the Conversions API, instead of directly from your browser; the events do not pass through the servers of the provider of My Agile Pixel®. To work, the service does not load the Meta pixel in your browser, but installs the My Agile Pixel® cookies.
The site owner chooses, through the My Agile Pixel® settings, which data to transmit: for example, they can choose not to send your IP address and the information about your browser, or remove certain tracking parameters from the page addresses.
The data sent is used to measure the effectiveness of ads and to show you personalized advertising. You can find more information in the Meta Privacy Policy.
Events are transmitted only after your consent, which you can withdraw at any time from the cookie preferences.
TikTok Remarketing is a remarketing and behavioral targeting service provided by TikTok Technology Limited (“TikTok”), used to link the activity of this site with the TikTok advertising network. This site uses it through My Agile Pixel®, which sends browsing events to TikTok via the site's server, through the Events API, instead of directly from your browser; the events do not pass through the servers of the provider of My Agile Pixel®. To work, the service does not load the TikTok pixel in your browser, but installs the My Agile Pixel® cookies.
The site owner chooses, through the My Agile Pixel® settings, which data to transmit: for example, they can replace your IP address with the server's, choose not to send the information about your browser, or remove certain tracking parameters from the page addresses.
The data sent is used to measure the effectiveness of ads and to show you personalized advertising. You can find more information in the TikTok Privacy Policy.
Events are transmitted only after your consent, which you can withdraw at any time from the cookie preferences.
OpenAI Ads Pixel is a conversion-tracking service provided by OpenAI Ireland Limited. It links data relating to advertisements displayed on ChatGPT with actions taken by users on this website, helping to evaluate and optimize the effectiveness of advertising campaigns.
A browser extension or setting seems to be hiding the banner this site uses to ask for your consent. While it stays hidden, you cannot give or change your consent.
To do so, allow this site in your ad blocker or in your browser's privacy settings, then reload the page.
Hey, my name is Proxy and I'm here to help!If you need assistance, just click on me.
Support
How can you get support on this content?
🤖 Ask your trusted AIQuick answer → Send it this page in one clickGet an immediate analysis of this page with the tools you use daily.
👥 Contact a human operatorExact answer → Talk to real peopleOur compliance professionals team provides technical and regulatory support.
Ask your trusted AI
Choose your preferred assistant
🤖 Quick answer → Use your trusted AI Get an immediate analysis of this page with the tools you use daily.