Skip to content
DocsGet StartedConfiguration
Get Started

Configuration

Configuration Reference

Complete reference for all configuration options available in Conseto.init().

Required Options

OptionTypeDefaultDescription
clientIdstringYour unique Conseto client ID. Found in Dashboard → Settings → Projects.

Consent Banner Options

OptionTypeDefaultDescription
languagestring'en'Banner language: en, sk, cs, de, pl, hu, fr, es, pt, it
themestring'light'Banner theme: 'light' or 'dark'
positionstring'bottom'Banner position: 'bottom', 'top', 'center'
brandNamestring''Your brand name displayed in the banner
privacyPolicyUrlstring'/privacy'Link to your privacy policy page
cookiePolicyUrlstring'/cookies'Link to your cookie policy page

Analytics Options

OptionTypeDefaultDescription
ga4stringnullGoogle Analytics 4 Measurement ID (G-XXXXXXX)
gtmstringnullGoogle Tag Manager Container ID (GTM-XXXXXX)
metaPixelstringnullMeta/Facebook Pixel ID
googleAdsstringnullGoogle Ads Conversion ID
autoTrackEcommercebooleanfalseAuto-detect and track e-commerce events
debugbooleanfalseEnable console logging for debugging
cookielessbooleanfalseForce 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
});
Documentation — CONSETO | CONSETO