How to exclude Clickio ad unit tags from caching and minification in wp-rocket WP plugin?
To exclude both Clickio header and inline code from caching, minification, and defer in the WP Rocket WordPress plugin, follow these steps:
Exclude Clickio header and inline codes from Caching and Minification
-
Log in to your WordPress Dashboard.
-
Navigate to WP Rocket Settings:
- In the left-hand menu, find and click on Settings.
- Then, click on WP Rocket.
-
Go to the 'File Optimization' Tab:
- In the WP Rocket settings, click on the File Optimization tab.
-
Exclude the JavaScript File:
- Scroll down to the JavaScript Files section.
- Find the "Exclude JavaScript Files" option.
- In the provided field, enter the path of the Clickio header js and the part of Clickio inline code separated by a new line. Example:
//s.clickiocdn.com/t/226966/360_light.js
__lxGc__ - Make sure to add any other JavaScript files you want to exclude in the same manner.
-
Save Changes:
- Scroll to the bottom of the page and click the "Save Changes" button.
Additional Considerations
- Test Your Site: After making these changes, clear the cache in WP Rocket and test your website to ensure that the functionality of the pages is working as expected.
- Check for Updates: WP Rocket is regularly updated, and features may change. Always refer to the official documentation or support for the latest options.