®
Untold Opinion
®
Untold Opinion
Back to Blog
Embed & ShareDeveloper Guide 8 min read

How to Embed Polls on Your Website: 3 Methods, Zero Friction

Turn any webpage into an interactive experience. Embed a live poll widget on your blog, landing page, or app in seconds — and watch engagement metrics climb.

3
Embed methods available
Any
Works on any website platform
Live
Results update in real time

Why Embed Polls on Your Website?

Static content keeps visitors passive. Embedded polls turn them into active participants. When a reader can vote on a question directly within your article, blog post, or landing page, their time-on-page increases, their emotional investment in your content deepens, and they're significantly more likely to share what they've read.

Beyond engagement, embedded polls are a powerful data collection tool. Instead of asking visitors to click away to a separate survey page — where most will drop off — you bring the question to them in context. A poll embedded in a product page asking "Which feature matters most to you?" will get far more responses than the same question sent in a follow-up email.

Untold Opinion's embeddable poll widget is designed to feel native to any website. It inherits your page's context, loads asynchronously so it never slows your page, and displays live results that update without requiring a page refresh.

Quick Poll — Vote & See Results

Where would you most want to embed a poll?

323 votes so far · Click an option to vote

Method 1: Script Tag (Recommended)

The script tag method is the most flexible and recommended approach for most websites. It loads the poll widget asynchronously, meaning it won't block your page from rendering even if the poll takes a moment to load.

Script Tag Embed
<div id="untold-poll" data-poll-id="YOUR_POLL_ID"></div>
<script src="https://untoldopinion.com/widget.js" async></script>

Replace YOUR_POLL_ID with the ID from your poll's share panel.

This method works on WordPress, Webflow, Squarespace, Ghost, custom HTML sites, and virtually any platform that allows you to add custom HTML. Simply paste the code snippet wherever you want the poll to appear in your page.

Method 2: iFrame Embed

The iFrame method is ideal for platforms with strict content security policies, or when you want the poll to be completely isolated from your page's styles and scripts. It's also the easiest option for platforms like Notion, Confluence, or any tool that supports iFrame embeds.

iFrame Embed
<iframe
  src="https://untoldopinion.com/embed/YOUR_POLL_ID"
  width="100%"
  height="400"
  frameborder="0"
  style="border-radius:16px"
></iframe>

Method 3: Direct Link

Sometimes the simplest approach is best. Every poll on Untold Opinion has a direct shareable URL that you can link to from anywhere — a button on your website, a social media post, an email, or a QR code. Visitors click the link, vote on the standalone poll page, and see results immediately.

The direct link approach is perfect for social media sharing, email campaigns, and situations where you want the poll to be the primary focus rather than a component within a larger page.

Script Tag

Best for websites where you control the HTML. Loads asynchronously, fully responsive, real-time updates.

iFrame

Best for platforms with content restrictions. Completely isolated, works in Notion, Confluence, and more.

Direct Link

Best for social media, email, and QR codes. One click to a beautiful standalone poll page.

Social Share

Share directly to Twitter/X, LinkedIn, Facebook, and WhatsApp with pre-formatted posts from the share panel.

How to Get Your Embed Code

1

Create your poll using the Untold Opinion poll builder.

2

After publishing, click the "Share" or "Embed" button on your poll page.

3

Choose your preferred embed method: Script Tag, iFrame, or Direct Link.

4

Copy the code snippet and paste it into your website's HTML.

5

The poll will appear immediately and start collecting votes.

Quick Poll — Vote & See Results

Which embed method sounds most useful for your use case?

247 votes so far · Click an option to vote

Embedded Polls and SEO

Embedded polls can positively impact your page's SEO by increasing time-on-page and reducing bounce rate — two signals that search engines use to assess content quality. When visitors interact with an embedded poll, they spend more time on your page and are more likely to scroll further and engage with other content.

The script tag embed method loads asynchronously, so it has no negative impact on your Core Web Vitals or page speed scores. The poll widget is lightweight and optimised for performance, ensuring your page's loading experience remains fast even with the poll embedded.

Ready to embed your first poll?

Create a poll, grab the embed code, and add it to your site in minutes.

Create a Poll Browse Polls
Create with AIExplore Surveys