A/B testing the banner
Turn on experiments to test banner variants (copy, layout, theme) and optimise your consent rate:
lightning("init", { experiment: true });When enabled, the CMP fetches a per-visitor banner variant from the backend, keyed by a stable visitor key, and merges that variant’s overrides over your inline config. Assignment is deterministic per visitor, so a returning visitor always sees the same variant.
- Variants are managed centrally (in the dashboard), not in your page code — so you iterate without redeploying.
- The winning variant’s overrides are ordinary config fields (theme, copy, position…), so anything you can set inline can be tested.