cookie-consent.ts
Cookie consent modes, categories, and third-party services.
config/cookie-consent.ts configures cookie consent behavior, prompt text, cookie categories, and third-party services. Analytics service keys must match analytics.ts, and advertising service keys must match ads.ts.
Common fields
Necessary cookies, functionality cookies, analytics services, and advertising services all use these fields:
mode
bannerOverlay
policyVersion
configVersion
title
description
The template's default value is:
We use cookies to make this website work, improve your experience, and understand how our site is used. Necessary cookies are always enabled because they are required for security, login, checkout, and basic site functions. You can accept all cookies, reject non-essential cookies, or customize your preferences.
Learn more in our [Cookie Policy](/cookies).categories
necessary
Necessary cookies use the common fields above directly.
functionality
items
theme
analytics
items
The template lists the following analytics services by default, all with enabled: true and readOnly: false. In prompt mode, users can enable or disable each service individually. A service missing required parameters in analytics.ts does not appear in cookie preferences.
| Key | title.value | description.value |
|---|---|---|
googleAnalytics | Google Analytics | Helps us measure website traffic, page views, user interactions, and conversions so we can improve the website. |
clarity | Microsoft Clarity | Helps us understand how visitors interact with the website through usage insights such as clicks, scrolling, and page behavior. |
cloudflareBeacon | Cloudflare Web Analytics | Provides privacy-friendly website analytics, including page views, traffic sources, performance metrics, and basic visitor insights. |
umami | Umami | Helps us collect privacy-friendly website analytics, such as page views, referrers, devices, and general usage trends. |
plausible | Plausible Analytics | Helps us measure website traffic and usage trends with lightweight, privacy-friendly analytics. |
posthog | PostHog | Helps us understand product usage, feature interactions, funnels, and user journeys so we can improve the product experience. |
seline | Seline | Helps us measure website traffic, visitor behavior, referrers, and usage trends with privacy-focused analytics. |
ahrefs | Ahrefs Web Analytics | Helps us understand website traffic, search performance, referrers, and content effectiveness. |
dataFast | DataFast | Helps us track website traffic, conversions, referrers, and key growth metrics so we can improve our marketing and product decisions. |
openPanel | OpenPanel | Helps us understand website and product usage, including page views, events, funnels, and user interactions. |
marketing
items
googleAdsense
The template defaults to silent mode
silent mode loads scripts configured in analytics.ts and ads.ts directly, without showing cookie choices. It ignores each item's enabled and readOnly settings. Before launching the site, consider the applicable regions, services in use, and privacy policy to determine whether you should switch to prompt.