Widget SDK Overview
Collect ratings inside your website with a Pollarix Widget collector. You need a Pro or Enterprise plan, a collector ID, and its public widget API key. See current pricing, then follow the installation example below.
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://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
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:
| Position | Description |
|---|---|
bottom-right | Bottom right corner (default) |
bottom-left | Bottom left corner |
top-right | Top right corner |
top-left | Top left corner |
center | Centered modal overlay |
Scale Types
Choose from three rating scales:
| Type | Range | Best For |
|---|---|---|
| NPS | 0-10 | Net Promoter Score surveys |
| Stars | 1-5 | Quick satisfaction ratings |
| Numeric | 1-10 | Custom numeric scales |
Browser Support
The widget works in all modern browsers:
The widget uses Shadow DOM for style encapsulation. All listed browsers have full support for Shadow DOM v1.