Skip to main content

Widget SDK Overview

📊

Embed NPS Surveys Anywhere

A lightweight web component with Shadow DOM encapsulation. Works on any website with zero CSS conflicts.


Quick Start

Add the widget to your site in two steps:

<!-- 1. Load the widget script -->
<script src="https://cdn.pollarix.com/widget/v2/widget.min.js"></script>

<!-- 2. Add the widget element -->
<pollarix-widget
collector-id="YOUR_COLLECTOR_ID"
api-key="YOUR_API_KEY"
></pollarix-widget>

That's it. The widget will appear based on your collector settings.


Interactive Demo

Loading demo...

Key Features

🛡️

Shadow DOM

Styles are fully encapsulated - no CSS conflicts with your site

🎨

Full Theming

Customize colors, fonts, shadows, and 50+ design tokens

Smart Triggers

Show on scroll, delay, exit intent, or custom events

📱

Responsive

Optimized for desktop and mobile devices


How It Works


Widget Positions

The widget can be positioned in five locations:

PositionDescription
bottom-rightBottom right corner (default)
bottom-leftBottom left corner
top-rightTop right corner
top-leftTop left corner
centerCentered modal overlay

Scale Types

Choose from three rating scales:

TypeRangeBest For
NPS0-10Net Promoter Score surveys
Stars1-5Quick satisfaction ratings
Numeric1-10Custom numeric scales

Browser Support

The widget works in all modern browsers:

🌐
Chrome
80+
🦊
Firefox
75+
🧭
Safari
13+
📐
Edge
80+
Shadow DOM Support

The widget uses Shadow DOM for style encapsulation. All listed browsers have full support for Shadow DOM v1.


Next Steps

Was this page helpful?