PrivacyQuick

All documentation pages ↓

Cookie categories

PrivacyQuick sorts cookies and trackers into four categories. Visitors choose by category, and your tagged scripts follow their choice.

Categories connect three things: the toggles a visitor sees in the banner's preferences panel, the data-category you put on scripts, and the cookie table in your cookie policy. This page explains what each category means and how the banner decides which ones to offer.

The four categories

Name in the bannerValue in codeWhat belongs hereCan visitors switch it off?
NecessarynecessaryWhat the site needs to do what the visitor asked: logins, shopping carts, security, load balancing, and the cookie that stores the consent choice.No. It's always on.
AnalyticsanalyticsMeasuring visits and behaviour: Google Analytics, Matomo, Hotjar, Microsoft Clarity.Yes
FunctionalfunctionalExtras that aren't essential: live chat, embedded videos and maps, remembered preferences.Yes
AdvertisingmarketingAds, retargeting and conversion tracking: Meta Pixel, Google Ads, LinkedIn Insight, TikTok Pixel.Yes

The banner and dashboard call the last category "Advertising". In code it's always marketing: in data-category, in PrivacyQuick.has('marketing') and in consent records.

The categories are fixed. You can rename them and rewrite their descriptions in the banner texts (see Customizing the banner), but you can't add a fifth one.

Be strict about "necessary". A cookie isn't necessary because your business wants it. Under EU rules the test is whether the service the visitor asked for can't work without it. Analytics usually fails that test. The guide to strictly necessary cookies walks through the edge cases, and cookie categories explained has more examples.

Which categories your banner offers

A banner shouldn't ask about advertising if your site has none. So by default the banner offers only the categories your site uses. On the dashboard's Banner tab, under Categories, the option Use the categories the scanner finds is ticked for new sites. With it on:

  • Before the first scan finishes, the banner offers all three optional categories.
  • After a scan, it offers a category only if your cookie list has at least one visible item in it.
  • When a later scan changes the set of categories, the banner updates by itself, unless you have a saved draft with unpublished changes. In that case it waits for you to publish.

To decide for yourself, untick the option and tick the categories you want. The line "Now live" under the checkboxes shows what visitors currently get.

A tagged script only runs if the banner offers its category. If you tag a script with data-category="marketing" but the banner has no Advertising category, visitors can't allow it and the script never runs. The same goes for Consent Mode signals: the ad signals stay denied. If you add a new tag between scans, run a scan or tick the category by hand.

Changing categories asks visitors again

Each published banner has a version number. The version goes up when the set of categories or the banner texts change, because visitors agreed to something different. Visitors who chose under an older version see the banner again on their next visit. Until they answer, their earlier choice stays in effect. Changes to colours and layout don't raise the version.

Reviewing what the scanner found

The Cookies tab lists every cookie, storage key and third-party service the scanner has seen. Items it recognizes get a category, provider and purpose from our database. Items it doesn't recognize are marked Unclassified.

  1. Open the Cookies tab. Unclassified items show "Unclassified" in the Category column, and the site list shows how many are waiting.
  2. Work out what the item is. The name and domain are usually enough; the script that sets it is another clue. Our guide to auditing your cookies shows how to trace one.
  3. Pick a category, fill in the provider, purpose and duration, and click Save.

Unclassified items don't appear in your cookie declaration until you give them a category. Your choices are kept on later scans, so you only do this once per item. If the scanner got a category wrong, change it the same way.

Two more controls on that tab:

  • Hide removes an item from your cookie declaration and from the banner's category calculation. Use it for something that was only present during a test.
  • Add manually adds an item the scanner can't see, for example a cookie set only after login or during checkout.

Using categories in your code

<!-- held back until the visitor allows Analytics -->
<script type="text/plain" data-category="analytics" src="https://example-analytics.com/tag.js"></script>

<!-- needs both categories -->
<script type="text/plain" data-category="analytics marketing" src="https://example.com/combined.js"></script>

<script>
  if (window.PrivacyQuick && PrivacyQuick.has('functional')) {
    // load the chat widget
  }
</script>

More in Blocking scripts and the JavaScript API.