Embedding polls on your website with JavaScript

Placing a poll on your site is a great way to connect with your audience. With a poll, you can ask for opinions on a subject that’s important to you and your readers. Today, we will cover how to embed a poll into your site using our JavaScript embed code.

For WordPress.com site owners, we have a short code that you can copy and paste into a new post, or into the sidebar of your site, using a text widget. WordPress.org site owners can download the Crowdsignal plugin and install it to use the WordPress shortcode. If you’re not on WordPress, you can use our JavaScript embed code to place a poll on your site.

First, you’ll want to create a poll.

Once you’ve set up your poll, you’re ready to embed it into your website. To get the JavaScript embed code, hover over the title of your poll in your Crowdsignal.com dashboard and click on Share.

On the Share Your Poll popup, head to the Embed tab and scroll down to the JS JavaScript box:

Copy the JavaScript code we supply, and then paste it into the location where you’d like to see you poll’s results on your website. Here’s a sample of what the poll’s results will look like:

Embedding the poll as a Website popup

To get this JavaScript code, select the Website Popup tab in the share options and scroll to the JS JavaScript box, then copy to clipboard the code to paste on your site.

You can read more about that on this page too.

If you’d like to start creating polls for your site, you can sign up for a free account. Here’s a guide on how to create a poll using Polldaddy.com

Automattic brands

Opinions!
We all have them.

Collect your readers' opinions with polls and surveys created with Crowdsignal. A simple tool, surprisingly powerful.

Discover