OneTrust and Osano live on your organisation’s marketing property and are expected to already be present on any surface where Nudj renders. Nudj reads the active CMP’s consent state at runtime and conditions analytics loading on it.
What gets gated
Consent state gates every analytics provider Nudj ships to the browser:- PostHog — product analytics + session replay.
- Google Analytics — page views and events.
- Meta Pixel — advertising events.
- BetterStack session replay — frontend session replay telemetry.
How consent flows
1
OneTrust emits a consent state
OneTrust exposes a global object on the page enumerating the consent categories the user has granted (e.g.
C0001, C0002, C0003, C0004).2
Nudj reads consent before loading providers
The Nudj user app checks the consent state before initialising each analytics provider. A provider gated on a category the user hasn’t consented to never loads at all.
3
Consent changes re-evaluate
OneTrust fires change events when the user updates their preferences. Nudj listens for these and updates provider loading state accordingly.
Per-organisation configuration
Cookie consent is organisation-level. An organisation can:- Enable or disable OneTrust integration entirely. Organisations without a OneTrust licence can opt out; without the integration active, Nudj falls back to the analytics configuration set elsewhere in the organisation.
- Map categories to providers. Each analytics provider is keyed to a consent category; the mapping is part of the organisation’s analytics configuration.
Propagation into embedded surfaces
The OneTrust integration also applies when the Nudj user app is embedded:- Shopify storefront widgets — the merchant’s OneTrust banner (on their storefront) gates the Nudj widgets’ analytics loading.
- Universal embed widget — the embedding page’s OneTrust state propagates to the embedded widget.
Verifying consent gating
From a test page:- Open the browser devtools Network panel.
- Load the page with OneTrust banner dismissed “reject all”.
- Confirm no requests to PostHog / GA / Meta Pixel fire.
- Reload with “accept all”.
- Confirm the providers’ requests now fire.
Osano
Osano is a cookie-consent CMP that Nudj supports alongside OneTrust. When enabled, the Osano banner loads on your Nudj surfaces and its consent state gates the same analytics providers listed above.OneTrust and Osano are configured independently. Enable either, both, or neither. If both are configured, both banners will load — in practice most organisations pick one CMP.
Enable Osano
1
Copy your Osano script URL
In your Osano dashboard, grab the embed script URL for the property you’re integrating. It has the form
https://cmp.osano.com/{customer-id}/{config-id}/osano.js.2
Paste it into Nudj admin
In Nudj, open Organisation Settings → Third Party → Osano and paste the URL into the Script URL field. Save.
3
Verify on a Nudj page
Load a Nudj-embedded surface. The Osano banner should appear and its consent state should gate analytics loading exactly as described in Verifying consent gating above.
Nudj’s own cookie banner
When your organisation has no OneTrust, CookieScript or Osano, Nudj shows its own cookie banner on the widget and the Loyalty Hub. The first screen offers Accept all, Reject all and Cookie settings. In settings a member chooses each group separately:
The keys are fixed. The text a member reads for each group comes from your translations, so a group can carry your own name for it. The admin app’s banner offers analytics only.
A member who chose before the groups existed keeps their analytics choice, and marketing stays off until they turn it on.
Your own Tag Manager container
On the widget’s own address, your Tag Manager container loads once a member accepts performance or marketing. Add it under Organisation settings → Analytics & Tracking → Tracking IDs. Because it runs your own scripts while members are signed in, Nudj checks each container before your widget link loads it; until then, and after you save a different container, your Google Analytics and Meta Pixel IDs keep loading there. Once approved, the container replaces them. Before it starts, Nudj sends the member’s choice as a Google consent mode default and then as an update, with the signals above. Google applies an update over any default, so a consent default your container sets itself (for example from your website’s own cookie tool, whose cookie does not exist on the widget’s address) cannot replace the member’s choice. Tags that wait for your website’s cookie tool will still never fire on the widget’s address: trigger them on Tag Manager’s usual events and leave consent to the signals Nudj sends. When the member changes a group later in the visit, Nudj sends a consent update and then pushes this event to the data layer:nudj_consent_update to that tag, alongside its usual trigger, and keep the tag’s consent settings so it fires only when the signal it needs is granted.
Turning performance or marketing off reloads the page, so tags that already started stop.
Related pages
Embedding modes
How the Nudj experience renders inside your surface.
Universal embed widget
The primary non-Shopify embed path.
Last reviewed: 2026-11 · Related PRs: #973, #7162, #7183

