Why Some Cookies Don’t Show in Your Cookie Policy (and How to Fix It)

When you scan your website with Complianz, some cookies might not appear in your Cookie Policy. This is because certain cookies are automatically marked as ignored in your WordPress database.

This guide explains why cookies get ignored and how you can make them visible if you want.

Why Complianz Ignores Some Cookies

Complianz separates cookies into two groups:

  • Functional cookies: Cookies that improve the visitor’s experience.

  • System/Technical Cookies: These mainly help with backend or system functions.

To keep your Cookie Policy clear and easy to read, Complianz hides the System/Technical cookies.

In your WordPress database, this setting is stored in the cmplz_cookies table. Each cookie has an ignored value:

  • 1 = ignored (the cookie won’t show)

  • 0 = visible (the cookie will show)

How to Show Ignored Cookies

You can change this setting if you want ignored cookies to appear in your Cookie Policy. Instead of editing the database manually, we provide helper scripts. These scripts let you update cookies either by their slug (internal ID) or by their name (the label shown in the cookie list).

Scripts

How to Use the Script

  1. Copy the script you want to use.

  2. Add it to your WordPress installation (for example, in your theme’s functions.php file or use a code snippet plugin).

  3. Add your cookie name or slug inside the arrays

    • $slugs_to_update

    • $names_to_update

  1. Keep the script active to ensure that the cookie remains visible.

Example with slugs

				
					add_action('init', function() {
    // Set the slugs you want to update here (add as many as you need)
    $slugs_to_update = array(
        'phpsessid',

        // Add more slugs here
    );
    
    global $wpdb;
    $table_name = $wpdb->prefix . 'cmplz_cookies';
    
    foreach ($slugs_to_update as $slug) {
        $wpdb->update(
            $table_name,
            array('ignored' => 0),
            array('slug' => $slug),
            array('%d'),
            array('%s')
        );
    }
});
				
			

Once implemented, the cookies you choose will always appear in the Cookie Policy, and this setting will persist even after a new scan or synchronization.

👉 Complianz hides System/Technical cookies by default to avoid clutter in your Cookie Policy. But you can easily adjust this with a small script; this way you decide which cookies to show your visitors in your Privacy Policy.

This is especially helpful if you use a translation plugin because each cookie record is duplicated for every language. The script keeps your settings consistent across all translations, so you don’t have to edit multiple entries manually.

Join 1M+ users and install The Privacy Suite for WordPress locally, automated or fully customized, and access our awesome support if you need any help!

Complianz has received its Google CMP Certification to conform to requirements for publishers using Google advertising products.