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:
| 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:
🌐
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?