Skip to main content
A widget ties an embed snippet to one of your verified domains. You don’t pick markets for it: a single widget matches a live market to every article on that domain automatically.

Create the widget

1

Open Widgets

In the dashboard, open Widgets and click New widget. If you haven’t verified a domain yet, the dashboard sends you to Domains first.
2

Pick the domain

Choose a verified domain. The widget renders on that domain and all of its subdomains.
3

Copy the install code

The widget page shows two install methods:
  • HTML: an iframe snippet plus a small script. See HTML embed.
  • WordPress: a [polyembed] shortcode for the PolyEmbed plugin. See WordPress.

How many widgets do you need?

One per domain is usually enough. Create more than one when you want separate numbers in Analytics, for example one widget for your politics template and another for sports. Each widget has its own ID, embed key and statistics.

The widget page

Widget statuses

A widget also stops rendering if its domain is no longer verified or your publisher account is suspended.