Display Rules

Easily control which Snackpoll shows up on which page of your website.

When you create an poll, you are asked whether or not you want to show the poll on all pages. Generally, if you're not sure what this means or if you only have a single poll it's safe to just select Show on all pages.

If you select Show on all pages it means that this particular poll will show up all pages where your embed code is located.

If you have multiple polls that are set to Show on all pages the poll that is higher up on your Active Polls list will take precedence.

If you chose to enter specific display rules, you have the following options:

  • Matches Exactly

  • Match Variable

  • Includes

These options allow you to build rules which can match any possible page configurations. Let's go through some use cases for each one.

Matches Exactly

Use this option if you want to match a specific page path. For example if you have a page at www.mywebsite.com/product/beach-ball and you want to show your "Beach Ball" Zigpoll on that page you would enter product/beach-ball into the input field under matches exactly.

If you want to match the homepage only then use Matches Exactly and leave the input field blank and press "Update Poll".

Match Variable

Use this option if you want to match a dynamic set of pages that all match a pattern one level deep.

For example: I want to show my "Product" Zigpoll on all pages that match www.mywebsite.com/products/some-product-name. In order to do this I would select Match Variable and enter: products into the input box.

You can have multiple rules for each page. So if you want to show the same poll on several different paths just add another rule.

Includes

Use this option if you want to match a dynamic set of pages that match a pattern no matter how deep.

For example: I want to show my "Blog" Zigpoll on any page that includes /blog/ in the URL. I would want to use Includes instead of Match Variable because I want to match /blog/category/food as well as /blog/category/food/my-food-post and /blog/category/cars/my-car-post etc...

Use Includes if you want to match any page that has is located under certain URL path.