Upod Cookie Modal + OneTrust + decline

The cookie-modal-onetrust example plus a decline fallback, in two A/B variants. Variant A keeps the <upod-cookie-modal /> in front of the OneTrust banner; variant B leaves it out entirely.

Status

A/B variant

Stands in for your own experiment assignment: it writes localStorage["cookieModalVariant"] and reloads. The OneTrust choice is cleared along with it so the flow can be replayed from the start.

Variant: … Checking login… OneTrust: loading… Upod widget: hidden
  1. New visitors see the Upod cookie modal; the OneTrust banner stays hidden.
  2. “Arrange cookies yourself” (or closing the modal) reveals the OneTrust banner via OneTrust.LoadBanner().
  3. Declining everything in that banner reveals the Upod widget closed — the visitor already clicked the modal away, so it is not opened for them a second time.

Read the page source: every line that differs from cookie-modal-onetrust.html is marked [A + B], [A ONLY] or [B ONLY]. Authenticated visitors skip the modal and the banner in both variants: their Upod cookie preferences are fetched and pushed into the OneTrust SDK via upodOneTrust.createOneTrustAdapter().

Upod consent (normalized)

OneTrust state