Like Button

Let visitors react to articles and pages with a login-aware like button that shows a live count and matches your brand color.

EngagementLogin-Aware
like button

Introduction

The Like Button lets visitors react to a piece of content with a single tap, showing a heart icon and the live like count pulled from the UniSignIn API.

When a logged-in user taps the button, the liked state and count are updated immediately for instant feedback, then reconciled with the server response. If the request fails, the previous state is restored automatically.

When a logged-out visitor taps the button, the UniSignIn signup flow opens so they can authenticate and like the content without losing context.

The button renders on any container with data-exp="unisignin-like-button". Use data-element-id to identify the content being liked, and the optional data-color attribute to tint the liked state with your brand color.

Features

1Login-Aware Like State
The button reads the current UniSignIn user state and refreshes the liked status after login, so the correct icon and count are shown for every visitor.
2Live Like Count
Displays the up-to-date like count from the UniSignIn API on load, with a subtle skeleton state while the value is being fetched.
3Optimistic Toggle
Tapping the button flips the liked state and updates the count immediately, then reconciles with the server response and rolls back gracefully on errors.
4Seamless Signup Flow
When a logged-out visitor taps the button, the UniSignIn signup flow is triggered automatically, so users can like content without leaving the page.
5Customizable Brand Color
Pass any hex color to tint the liked state with a matching background, border, and icon, keeping the button consistent with your brand palette.
6Drop-in HTML Integration
The experience engine renders the button automatically into any container with the matching `data-exp` attribute, no additional scripting required.

Screenshots

Like button example
Like 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.