How to display category wise cookie list in the privacy overview popup

With the GDPR Cookie consent plugin, you can list out all your cookies of a specific category within the privacy overview pop up window in the following manner as shown in the below image:

Privacy Overview-Cookie List Categorically
Privacy Overview-Cookie List Categorically

You can achieve the above layout for your privacy overview pop up window by using a simple shortcode [cookie_audit]

Prior to proceeding to the steps detailed below, ensure that your site is scanned for cookies and all the cookies are identified and categorized.

Follow the steps below to obtain the desired pop up layout.

  1. Navigate to the Cookie Category section to insert the shortcode.
  2. Edit the category for which the cookie list has to be displayed as shown below:
    GDPR Cookie Consent-Edit Cookie Category
    GDPR Cookie Consent-Edit Cookie Category
  3. Into the description box of the edit panel, key in with the shortcode [cookie_audit category="category-slug"]
  4. For instance, if you want to list out all the cookies of the category Analytics, then specify the shortcode as [cookie_audit category=" analytics"]  as shown below:
    GDPR Cookie Consent-Edit Cookie Category-Display cookie list
    GDPR Cookie Consent-Edit Cookie Category-Display cookie list
  5. The privacy policy pop window on expanding the category analytics will be as shown below:
    Privacy Overview-With Analytics Cookie List
    Privacy Overview-With Analytics Cookie-List
  6. In addition, you can even insert styling in your shortcode. To show only 2 columns in a table with winter style, specify the shortcode as [cookie_audit columns="cookie,description" category="category-slug" style="winter"]
  7. For analytics category, you can specify the shortcode  [cookie_audit columns="cookie,description" category="analytics" style="winter"] as shown below:
    GDPR Cookie Consent-Edit Cookie Category-Display cookie list in two columns
    GDPR Cookie Consent-Edit Cookie Category-Display cookie list in two columns
  8. The privacy policy pop up window on expanding the category analytics (with two columns only) will be as shown below:
Privacy Overview-With Analytics Cookie List in two columns
Privacy Overview-With Analytics Cookie-List in two columns

Likewise, you can insert the shortcode for all other categories also to get the cookies to be listed in it. To know more about other shortcodes available in the plugin and its usage, refer to the article Shortcodes used in the GDPR Cookie consent plugin.

2 thoughts on “How to display category wise cookie list in the privacy overview popup

    • Sebastian Bung
      Sebastian Bung says:

      Here’s the code:

      jQuery(‘#cliSettingsPopup > div > div > div > div > div > div.cli-col-12.cli-align-items-stretch.cli-px-0.cli-tab-section-container > div > div.cli-tab-content > div > table > thead > tr > th.cookielawinfo-column-3’)
      .html(‘Your text’);

      I’m not so sure about the #1 customer support thing anymore

Leave a Reply

Your email address will not be published. Required fields are marked *