How to Exclude CaptainCompliance Cookie Script from the NitroPack WordPress Plugin

Table of Contents

NitroPack can be used with our Cookie Consent Software but you’ll need to make a few small tweaks as detailed below. NitroPack is an all-in-one WordPress plugin designed to optimize website speed and performance seamlessly. It combines advanced caching, image and video optimization, code refinement, font handling, and a built-in global Content Delivery Network (CDN) into a single solution, eliminating the need for multiple plugins. NitroPack automates the improvement of Core Web Vitals metrics, such as Largest Contentful Paint (LCP) and Cumulative Layout Shift (CLS), ensuring faster load times and enhanced user experiences. Its cloud-based infrastructure offloads resource-intensive tasks from the hosting server, making it suitable for websites of all sizes from small blogs to large eCommerce stores without requiring technical expertise.

How to exclude Captain Compliance Cookie Consent script from the NitroPack WordPress plugin

Step 1) Once logged into your CMS such as yourwebsite.com/wp-admin and go to the left hand side and navigate to NitroPack  and underneath of it is the option for access to the Dashboard. This will be on the left hand sidebar.
NitroPack Cookie Plugin Fix

Step 2) Click on the bottom right purple button labeled Go To App which will take you to this URL: https://app.nitropack.io/dashboard

Go to App for NitroPack

Step 3) You can go direct to this URL for Cache Settings: https://app.nitropack.io/cache-settings/cache or click on the left hand side Cache Settings and then the last option will be Cache.

Step 4) Once you are in the Cache section scroll down the page to the “excluded URLs section” add Captain Compliance URLs to the exclusion list.
To guarantee that the WordPress Plugin NitroPack does not optimize Captain Compliance scripts, add the following entries to the exclusion list:
Cptn.co 
Captaincompliance.com

Put this in exactly as shown above with the settings and then click the Save button. Once you click that you will see a confirmation that says “Settings will update with the new cache refresh. For immediate effect purge cache now.”

DO NOT put the URLS into the excluded URLs.

Exclusion List

It is essential to exclude the Captain Compliance script from NitroPack optimization to ensure the proper functionality and compliance requirements delivered courtsy of Captain Compliance’s cookie consent management system while still benefiting from NitroPack’s performance enhancements. By following this configuration, you can successfully set NitroPack to ignore Captain Compliance scripts, allowing both plugins to operate simultaneously without any conflicts on your WordPress site while blocking cookies via Google Tag Manager to avoid legal non-compliance issues.

While this setup optimizes compatibility between NitroPack and Captain Compliance, it is advisable to periodically review your website’s performance and functionality. Plugin updates may require revisiting these settings to maintain seamless integration and compliance with evolving privacy regulations.

If you have any questions or need assistance you can book a demo with a privacy superhero below.

Written by: 

Online Privacy Compliance Made Easy

Captain Compliance makes it easy to develop, oversee, and expand your privacy program. Book a demo or start a trial now.