Poltio WebSDK
This guide explains how to integrate our JavaScript SDK in order to display Poltio Widgets on your website.
Poltio Tag also automatically adjusts the height of any embedded iframe, ensuring that the widget fits its content without requiring manual configuration.
Installation
Your Poltio Tag is unique to your account, so instead of copying it from this page you get it ready to use from Poltio Panel. Open the sidebar and click Poltio Tag under Resources.
A dialog opens with the tag already filled in with your Account ID. Copy it with the button in the top right corner of the code box, then paste it into your site.
<head> section of your pageThe same dialog also lets you check your work: enter one of your page URLs at the bottom and click Check Poltio Tag to confirm the tag is live. Allow 5-10 minutes after deploying before you check.
Setup
-
You need to insert Poltio Tag to all the pages you want to display Poltio Triggers & Widgets.
-
If you want to track conversions, it is required and recommended to install Poltio Tag to all product detail pages and checkout success page as well.
Setup with PUID
If you want to match poltio voters with your own users in a safe way, tick the PUID checkbox in the Setup Poltio Tag dialog before copying. The tag then carries an extra parameter for your own user identifier.
Replace the placeholder with the actual identifier of your user. We will store this value and send it back to you in webhooks or reports, allowing you to seamlessly identify which of your users interacted with the widget.
Setup with Custom ID
Tick Custom ID in the same dialog if you need a secondary identifier for the session alongside PUID. It is reported back to you the same way.
Integrations
Webhook
Webhooks allows you to share widget actions realtime in json format to connect with other applications.
Sheethook
Sheethooks allows you to connect a Google Sheet with your content to get user interactions in realtime
Pixelcode
PixelCodes allows you to share Widget events with external systems via javascript, iframe or image pixels real time. (Eg: Facebook Pixel, GTM, etc...)
Google Tag Manager
Recieve your users realtime interactions with Poltio Widgets on your Google Tag Manager or Google Analytics
Widget
Poltio helps you go online with Poltio Widgets faster by eliminating the task for you to design a place where Poltio Widgets appear in your web page.