Confirm Button

An inline confirmation prompt that asks users to explicitly accept an action and records the answer as declared data.

Declared DataSubscription PromptInline CTA
Confirm button example

Introduction

The Confirm Button widget renders a compact card with message text, a confirm button, and a cancel button so you can ask for an explicit yes or no inside the page flow.

When a signed-in user confirms, the component posts a boolean value to UniSignIn declared data using the configured field name. If the visitor is not signed in, the confirm action hands off to the UniSignIn signup flow instead of silently failing.

If a user dismisses the prompt, the component stores a cookie and suppresses the same prompt for one day, which helps avoid immediately showing the same question again.

Features

1Field-Based Data Capture
The confirm action writes to a specific declared-data field, so the answer can be reused later for segmentation or follow-up experiences.
2Custom Prompt Copy
The widget accepts custom message text plus independent confirm and cancel labels, making it usable for newsletter opt-ins, preference capture, and one-click confirmations.
3Thank-You And Dismiss States
After a successful confirmation the UI swaps to a thank-you message, while cancellation hides the prompt for a short period through a cookie-based suppression rule.
4Config Or Inline Setup
The widget can read its content from `data-*` attributes directly on the container or from a stored UniSignIn experience configuration when `expId` is provided.

Integration

The widget looks for containers with `data-exp="unis-confirm-button"`. You can either provide the text and field inline, or let UniSignIn load them from the experience config tied to `expId`.

  • `data-content` sets the prompt message.
  • `data-confirm-btn` and `data-cancel-btn` set the two CTA labels.
  • `data-field` defines the declared-data key that will be written on confirm.
  • `data-exp-id` lets the widget fetch the same values from UniSignIn instead of hardcoding them in the page.
<div
  data-exp="unis-confirm-button"
  data-content="Let's stay in touch. Get the latest news in your inbox."
  data-confirm-btn="Subscribe"
  data-cancel-btn="No thanks"
  data-field="newsletter"
></div>

Screenshots

Confirm button example
Confirm button example
Confirm button example
Confirm button example

Own Your Audience Data, Grow Your Revenue

The complete first-party data solution built specifically for publishers who want independence from third-party cookies

Privacy-First Login

Build reader trust with transparent, compliant authentication

Actionable Insights

Transform reader behavior into targeted content strategies

Seamless Integration

Live in days, not months, with your existing CMS

Proven Results

40% higher ad rates and 35% growth in subscriber conversion

Trusted by leading publishers to reclaim audience relationships and maximize monetization opportunities.