Prompt
How do I update cookie categories when new scripts get added to the site?
Latest observation
Oct 29, 2026
OpenAI APIWeb search: off
When new scripts are added to a site, you should update your cookie categories by reviewing what those scripts do and then reflecting that in your consent setup and cookie policy.
Practical process
-
Inventory the new scripts
- Identify the script source, purpose, and whether it drops or reads cookies/local storage.
- Examples: analytics, ads, chat widgets, A/B testing, embedded video, social media.
-
Classify each script by purpose Typical categories:
- Strictly necessary: required for core site functions
- Preferences/functional: remembers settings, language, etc.
- Analytics/statistics: measures traffic and usage
- Marketing/advertising: tracking, remarketing, ad measurement
- Unclassified/other: if you need a temporary review state
-
Update your consent manager / cookie banner
- Add the new category if needed.
- Ensure the script is blocked until the user consents, if required.
- Map the script to the correct category in your tag manager or consent platform.
-
Update your cookie policy / consent documentation Include:
- Cookie name
- Provider/domain
- Purpose
- Duration/expiry
- Category
- Whether it’s first- or third-party
-
Re-test behavior
- Before consent: confirm the script does not fire if it shouldn’t.
- After consent: confirm it loads correctly and sets the expected cookies.
- Revoke consent and ensure the script stops on future page loads where applicable.
-
Version and communicate changes
- Keep a changelog for newly added scripts and category changes.
- If required by your compliance process, notify privacy/legal stakeholders before deployment.
Good practice
- Review cookie categories whenever you:
- add a new third-party integration,
- change a tag manager container,
- add marketing pixels,
- introduce embedded content,
- update authentication or preference features.
Example
If you add:
- Google Analytics → Analytics
- Hotjar → Analytics / functional, depending on configuration
- Facebook Pixel → Marketing
- Intercom chat → Functional or marketing, depending on usage and consent requirements
If you want, I can also give you a cookie category update checklist or a template table you can use to document new scripts.