# How to Exclude CookieYes Script from the NitroPack WordPress Plugin

Learn how to exclude CookieYes scripts from the NitroPack WordPress plugin to ensure proper functionality and maintain website performance.

---

**Categories:** , 
**Published:** June 25, 2026
**URL:** https://www.cookieyes.com/documentation/exclude-cookieyes-script-from-nitropack-plugin/

---

## Overview

NitroPack is a WordPress plugin that optimises website performance using techniques like caching and script optimisation. However, NitroPack’s optimisation can sometimes interfere with CookieYes’s functionality. This guide provides step-by-step instructions on how to exclude the CookieYes script from optimisation by the NitroPack in WordPress, ensuring that CookieYes functions correctly without interference.

## Steps to exclude CookieYes script from the NitroPack WordPress plugin

### Step 1

Access NitroPack Dashboard

Log in to your WordPress admin Dashboard and navigate to **NitroPack > Dashboard** in the left sidebar.

![](https://assets.cookieyes.com/Nitropack_Dashboard_9652f9aa16.jpg)

### Step 2

Open the NitroPack App

On the **NitroPack Dashboard**, scroll down and click the **Go to app** button.

![](https://assets.cookieyes.com/go_to_app_52b412d2e5.jpg)

### Step 3

Access Exclusion Settings in NitroPack App

In the NitroPack App, go to the **Cache Settings > Cache** and scroll down to the **Exclusions** section.

![](https://assets.cookieyes.com/NP_Dashboard_efa0118bdf.jpg)

### Step 4

Add CookieYes Scripts to the Exclusion List

To ensure that NitroPack does not optimize CookieYes scripts, add the following entries to the exclusion list:

- Exclude scripts from cookieyes.com

```
[object Object]
```

```
[object Object],[object Object]
```

- Exclude scripts related to _ckyGcm

```
[object Object]
```

![](https://assets.cookieyes.com/NP_Dashboard_010e73d3d3.jpg)

Make sure to enter these exactly as shown, following the correct syntax.

### Step 5

Save the Changes

After adding these scripts to the exclusion list, click the **Save** button. This ensures that NitroPack will exclude these specific scripts from optimisation.

## Conclusion

It is critical that you exclude the CookieYes script from NitroPack optimization to ensure the proper function of cookie consent management on your website while still benefiting from NitroPack’s performance enhancements. By following this guide, you’ve successfully configured NitroPack to ignore CookieYes scripts, allowing both plugins to work simultaneously without any conflicts on your WordPress site.
Remember that while this configuration optimizes the compatibility between NitroPack and CookieYes, it’s important to regularly check your website’s performance and functionality. As plugin updates occur, you may need to revisit these settings to ensure continued compatibility.
For further assistance, our dedicated support team are here to assist you.


---

## Structured Data

```json
{
  "@context": "https://schema.org",
  "@graph": [
    {
      "@type": "Article",
      "headline": "How to Exclude CookieYes Script from the NitroPack WordPress Plugin",
      "mainEntityOfPage": {
        "@type": "WebPage",
        "@id": "https://www.cookieyes.com/documentation/exclude-cookieyes-script-from-nitropack-plugin/"
      },
      "url": "https://www.cookieyes.com/documentation/exclude-cookieyes-script-from-nitropack-plugin/",
      "publisher": {
        "@type": "Organization",
        "name": "CookieYes",
        "url": "https://www.cookieyes.com",
        "logo": {
          "@type": "ImageObject",
          "url": "https://assets.cookieyes.com/cookieyes.png",
          "width": 250,
          "height": 60
        }
      },
      "description": "Learn how to exclude CookieYes scripts from the NitroPack WordPress plugin to ensure proper functionality and maintain website performance.",
      "datePublished": "2024-08-27T06:22:22+00:00",
      "dateModified": "2025-06-02T00:00:00+00:00",
      "author": {
        "@type": "Person",
        "name": "CookieYes Doc Team"
      },
      "image": [
        "https://assets.cookieyes.com/icon_621c305c39.jpg"
      ]
    },
    {
      "@type": "BreadcrumbList",
      "@id": "https://www.cookieyes.com/documentation/exclude-cookieyes-script-from-nitropack-plugin/#breadcrumb",
      "itemListElement": [
        {
          "@type": "ListItem",
          "position": 1,
          "name": "Home",
          "item": "https://www.cookieyes.com/"
        },
        {
          "@type": "ListItem",
          "position": 2,
          "name": "Documentation",
          "item": "https://www.cookieyes.com/documentation/"
        },
        {
          "@type": "ListItem",
          "position": 3,
          "name": "Features Documentation",
          "item": "https://www.cookieyes.com/category/documentation/features/"
        },
        {
          "@type": "ListItem",
          "position": 4,
          "name": "Integrations Documentation",
          "item": "https://www.cookieyes.com/category/documentation/features/integrations/"
        },
        {
          "@type": "ListItem",
          "position": 5,
          "name": "How to Exclude CookieYes Script from the NitroPack WordPress Plugin"
        }
      ]
    },
    {
      "@type": "WebSite",
      "@id": "https://www.cookieyes.com/#website",
      "url": "https://www.cookieyes.com/",
      "name": "CookieYes",
      "description": "CookieYes is a Google-certified consent management platform that helps businesses comply with GDPR, CCPA, and other global privacy laws.",
      "inLanguage": "en-US",
      "publisher": {
        "@id": "https://www.cookieyes.com/#organization"
      },
      "potentialAction": {
        "@type": "SearchAction",
        "target": {
          "@type": "EntryPoint",
          "urlTemplate": "https://www.cookieyes.com/?s={search_term_string}"
        },
        "query-input": {
          "@type": "PropertyValueSpecification",
          "valueRequired": true,
          "valueName": "search_term_string"
        }
      }
    },
    {
      "@type": "Organization",
      "@id": "https://www.cookieyes.com/#organization",
      "name": "CookieYes",
      "url": "https://www.cookieyes.com/",
      "logo": {
        "@type": "ImageObject",
        "@id": "https://www.cookieyes.com/#/schema/logo/image/",
        "inLanguage": "en-US",
        "url": "https://assets.cookieyes.com/cookieyes.png",
        "contentUrl": "https://assets.cookieyes.com/cookieyes.png",
        "width": 19701,
        "height": 3176,
        "caption": "CookieYes"
      },
      "image": {
        "@id": "https://www.cookieyes.com/#/schema/logo/image/"
      }
    }
  ]
}
```
