Get Started
Configuration
Configuration Reference
Complete reference for all configuration options available in Conseto.init().
Required Options
| Option | Type | Default | Description |
|---|---|---|---|
clientId | string | — | Your unique Conseto client ID. Found in Dashboard → Settings → Projects. |
Consent Banner Options
| Option | Type | Default | Description |
|---|---|---|---|
language | string | 'en' | Banner language: en, sk, cs, de, pl, hu, fr, es, pt, it |
theme | string | 'light' | Banner theme: 'light' or 'dark' |
position | string | 'bottom' | Banner position: 'bottom', 'top', 'center' |
brandName | string | '' | Your brand name displayed in the banner |
privacyPolicyUrl | string | '/privacy' | Link to your privacy policy page |
cookiePolicyUrl | string | '/cookies' | Link to your cookie policy page |
Analytics Options
| Option | Type | Default | Description |
|---|---|---|---|
ga4 | string | null | Google Analytics 4 Measurement ID (G-XXXXXXX) |
gtm | string | null | Google Tag Manager Container ID (GTM-XXXXXX) |
metaPixel | string | null | Meta/Facebook Pixel ID |
googleAds | string | null | Google Ads Conversion ID |
autoTrackEcommerce | boolean | false | Auto-detect and track e-commerce events |
debug | boolean | false | Enable console logging for debugging |
cookieless | boolean | false | Force cookieless tracking mode (Plausible-style) |
Full Example
javascript
Conseto.init({
// Required
clientId: 'conseto_mysite_abc123',
// Consent banner
language: 'en',
theme: 'dark',
position: 'bottom',
brandName: 'My Website',
privacyPolicyUrl: '/privacy-policy',
cookiePolicyUrl: '/cookie-policy',
// Analytics integrations
ga4: 'G-XXXXXXX',
gtm: 'GTM-XXXXXX',
metaPixel: '123456789',
googleAds: 'AW-XXXXXXXXX',
// Features
autoTrackEcommerce: true,
cookieless: false,
debug: false,
security: true
});