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 page<!-- 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.
How it Works
-
Once installed, Poltio Tag automatically initializes the Poltio Widget.
-
If a poltio iframe is used, Poltio Tag dynamically adjusts its height based on the widget’s content.
-
No additional manual configuration is required.
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.