Publications / Law and cookies
How to assign cookie categories to services – GA4, pixel, YouTube, maps, GTM
Necessary, functional, analytics or marketing? The category depends on what the service does. A table of typical services, borderline cases (GTM, YouTube, maps, chat) and mistakes that stop the banner from doing its job.

Latest posts
- Google merged the Google tag with Tag Manager – what it changes for cookie consent
- Advertising on Google or measuring traffic? Check whether you need a cookie banner
- How should a proper cookie banner work?
- How to prepare your website for consetgo – pre-installation checklist
- Cookies in an online shop – a practical checklist
The category in a cookie banner tells visitors what they are consenting to – and decides which scripts start after their choice. The category depends on what the service actually does, not on how useful it is to the business. Without consent, only what is strictly necessary for the service the visitor requests may run (Article 5(3) of the ePrivacy Directive, implemented in national laws). Everything else – including “functional” services – waits for consent.
Four categories
| Category | What belongs to it | Consent |
|---|---|---|
| Necessary | session, login, cart, payment, security, remembering the choice in the banner | not needed, always active |
| Functional | extras: chat, maps, embedded players, remembered language | required |
| Analytics | statistics on traffic and visitor behaviour | required |
| Marketing | ad measurement, remarketing, profiling, ads on other sites | required |
A simple test for “necessary”: will the site or the order stop working without this service? If they still work, only less well (no chat, no map), the service is not necessary.
Typical services and their categories
This is how the consetgo module assigns services by default. The “Can be changed to” column shows the categories the module allows; tracking tools cannot be moved to categories that do not require consent.
| Service | Default | Can be changed to |
|---|---|---|
| Google Analytics 4, Hotjar | analytics | marketing |
| Google Ads, Meta Pixel, TikTok Pixel, LinkedIn Insight | marketing | – |
| Google Tag Manager | container (analytics or marketing) | marketing |
| YouTube, Vimeo | marketing | functional |
| Google Maps, Google Fonts from Google servers | functional | any |
| Google reCAPTCHA, Stripe, PayPal, Przelewy24 | necessary | any |
| Manually added service | you choose | any |
Borderline cases
Google Tag Manager
GTM does not measure anything itself – it loads other tags. In consetgo it is a container by default, and the tags inside it (GA4, Google Ads, Meta Pixel) are blocked separately, according to their own category. In advanced Consent Mode (default) the container loads straight away and the Google tags inside set no cookies until consent; in basic mode the container loads after consent to analytics or marketing. A visitor who consents only to analytics gets GA4 with cookies, but not the pixel. Set GTM as “marketing” if the container sends data in a way you cannot see in the browser: server-side GTM, tags that send data in the background, or pixels from unknown addresses. Then the whole container waits for marketing consent.
YouTube and Vimeo
The embedded YouTube player sets advertising-related cookies, so it is in marketing by default. If the videos are content of the site (tutorials, product presentations), you can assign them to functional. In both cases the video loads after consent – until then, its place is taken by a placeholder with an “Allow and show” button.
Maps, chats, fonts
A map with the company location or a chat is a convenience, not a condition for the site to work – hence “functional”. Fonts loaded from Google servers pass the visitor's IP address to Google; the simplest solution is to host them on your own server, and then they disappear from the banner. If an element is really needed for the service the visitor requests (e.g. a map for choosing a pickup point during checkout), you can assign it to necessary – but only if it serves no other purpose.
Services the tool does not know
The consetgo scanner shows addresses for which there is no description in the service database. Until they are assigned, scripts and frames from them are blocked as marketing. In the Scanner tab you choose a category for each such address – the address becomes a service visible in the banner. Give the “Necessary” category only to something that tracks nothing, e.g. your own script library on an external server.
Most common mistakes
- Analytics as “necessary”. Statistics are useful, but the site works without them.
- Everything in one category. A single “Marketing and analytics” category takes away the choice – the visitor cannot consent to statistics without ads.
- Banner categories do not match the blocking. The banner shows GA4 as analytics, but the script sets cookies before the decision – check this with a test in the browser.
- Tags in GTM without a category. The container loads before consent or after consent to analytics, and fires an advertising pixel inside.
- Services missing from the cookie policy. The table in the privacy policy must match what the site actually loads.
How to set it up in consetgo
- In the Scanner tab, run a browser scan and visit a few subpages.
- In the Services and categories tab, click the service name and check the category and description. For GTM, GA4, Meta Pixel, TikTok, Hotjar and LinkedIn there is a “Code” field – enter the ID only if the code is not on the site yet.
- In the Scanner tab, assign categories to unrecognised addresses.
- In the Cookie policy tab, copy the table into the privacy policy.
With the default settings, every change to services or categories creates a new version of the banner content, and visitors are asked for consent again. Try it in the panel demo. A test of whether the categories work in practice: How to check whether a site sets cookies before consent. More on Google Analytics: GA4 and cookie consent.
Questions and answers
Can Google Analytics be in the necessary category?
No. GA4 is used for statistics and the site works without it, so it requires consent. In consetgo, GA4 can only be in the analytics or marketing category.
Which category does YouTube belong to?
Marketing by default, because the embedded player sets cookies used for advertising. If the videos are content of the site, the owner can assign them to functional – in both cases the video loads only after consent.
Can one service be in two categories?
Consent applies to categories, so a service has one category. The exception is Google Tag Manager as a container: in advanced Consent Mode it loads straight away, in basic mode it loads after consent to analytics or marketing, and the tags inside it are blocked separately, each according to its own category.
What should I do with a service the tool does not recognise?
Check what it does and assign a category manually. In consetgo you assign unrecognised hosts from the scan in the Scanner tab; until then, scripts from them are blocked as marketing.
This is general information, not legal advice.