Skip to content

Config reference

Everything is set on the init() config, or centrally per-site in the dashboard (dashboard config is merged over init()). Only siteId is required, and the license key usually supplies it.

Option Type Default Notes
siteId string Usually supplied by the license key.
key string License key; normally baked into the script URL.
apiBase string hosted edge Base URL of the Lightning Worker.
theme name or tokens "light" Appearance.
categories CategoryId[] all four Categories.
position BannerPosition "bottom" Banner anchor.
showFloatingButton boolean true Persistent re-open button.
floatingButtonPosition FabPosition "bottom-left" FAB anchor.
geo "auto" or regulation "auto" Regulations.
googleConsentMode boolean true Consent Mode.
bridges BridgeConfig Bridges.
respectGpc boolean true Honour Global Privacy Control.
experiment boolean false A/B testing.
consentExpiryDays number 0 (never) Re-prompt after N days.
locale string document lang BCP-47 locale.
text CmpText Copy overrides.
hideBranding boolean false White-label.
debug boolean false Debug logging.
onReady (state) => void Fires once init completes.
onConsentChange (state) => void Fires on every change incl. initial load.
  • CategoryIdnecessary | preferences | statistics | marketing.
  • BannerPositionbottom | top | bottom-left | bottom-right.
  • FabPositionbottom-left | bottom-right | top-left | top-right.
  • Regulationgdpr | ccpa | none.