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.

Keytitle.valuedescription.value
googleAnalyticsGoogle AnalyticsHelps us measure website traffic, page views, user interactions, and conversions so we can improve the website.
clarityMicrosoft ClarityHelps us understand how visitors interact with the website through usage insights such as clicks, scrolling, and page behavior.
cloudflareBeaconCloudflare Web AnalyticsProvides privacy-friendly website analytics, including page views, traffic sources, performance metrics, and basic visitor insights.
umamiUmamiHelps us collect privacy-friendly website analytics, such as page views, referrers, devices, and general usage trends.
plausiblePlausible AnalyticsHelps us measure website traffic and usage trends with lightweight, privacy-friendly analytics.
posthogPostHogHelps us understand product usage, feature interactions, funnels, and user journeys so we can improve the product experience.
selineSelineHelps us measure website traffic, visitor behavior, referrers, and usage trends with privacy-focused analytics.
ahrefsAhrefs Web AnalyticsHelps us understand website traffic, search performance, referrers, and content effectiveness.
dataFastDataFastHelps us track website traffic, conversions, referrers, and key growth metrics so we can improve our marketing and product decisions.
openPanelOpenPanelHelps 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.