Prerequisites
Before you paste the Quickstart snippet, make sure you have:
| Thing | Where it comes from |
|---|---|
| A license key | The dashboard (or your operator). It looks like k=8f3c… and is baked into the script URL. It carries the siteId, so you usually don’t set siteId in init(). |
| Authorised domains | Registered against the site in the dashboard. The SDK only runs when the page’s host matches; everything else is a harmless no-op. Add staging/preview hosts too (localhost is allowed for testing). |
| Head access | You must be able to add markup to <head> — ideally as the first thing in it. Every framework recipe is about getting that markup into your particular stack. |
The hosted edge is https://cmp.lightning-consent.io. The script lives at
https://cmp.lightning-consent.io/v1/cmp.js?k=YOUR_LICENSE_KEY.