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
<head> section of your pagePoltio Tag
<!-- Poltio Tag -->
<script>
(function(t,e,p,i,n){if(!(t.poltio&&t.poltio.push))
{t.poltio={queue:[],push:function(s,r,u){t.poltio.queue.push([s,r,u])}};
var o=e.createElement("script");o.id="poltiosdk",
o.async=!0,o.src=p+"/"+i+"?p="+n+"&r="+encodeURIComponent(t.location.href),
e.head.appendChild(o)}})(window,document,
"https://sdk.poltio.com","poltio.js","PoltioID");
</script>
<!-- End Poltio Tag -->
You MUST replace PoltioID with your Poltio Account ID which you can find in the bottom left section of Poltio Panel.

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, you can use the snippet above.
Notice the 'PUID' value included in the configuration. This parameter represents your system's unique user ID. Simply replace 'PUID' 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.
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.