Add a widget to your site

How to add a widget to a website depends on its type: some show on their own, some need one line of code. Popups and announcement bars appear on their own once the CROforce script is on your site. Forms and inline banners sit inside your page, so you paste one line of code where they should show — the Add to Your Site dialog gives you the code and the steps for your platform.

On this page1. Publish the widget2. Choose your platform3. Add the CROforce script once4. Paste the widget's codePlace it without codeCheck that it showsNext steps

Updated November 28, 2026

How a widget gets onto your pages depends on its type:

Type

What you do

Popup, Announcement bar

Nothing beyond the
CROforce script
. They show on the pages you chose on the Display tab.

Form, Inline banner

Paste the widget's code where it should appear — or place it with a
campaign
, with no code.

1. Publish the widget

In the builder, click Publish. The first time a widget goes live, the Add to Your Site dialog opens by itself. To open it later, choose Add to Your Site from the More actions menu (⋯) — it's there once the widget is live.

  • For a form or inline banner, the dialog is titled Place Your Widget.
  • For a popup or bar, it's Your Widget Is Live, and it says where it shows — for example It shows on all pages, on all devices, as soon as the page loads. If it says It won't open until you choose when, on the Display tab, your popup has no trigger yet: add one on the Display tab and publish again.

2. Choose your platform

Under Your website platform, pick WordPress, Shopify, Webflow or Any other website. The steps in the dialog change to match.

3. Add the CROforce script once

If CROforce isn't on your website yet, the dialog starts with Add Entail to your website. Click Copy Script and paste it into your site's header — once, for the whole site:

Platform

Where the script goes

WordPress

Your theme's header, or a plugin that adds code to the header

Shopify

In the theme editor, Edit code › theme.liquid, just before </head>

Webflow

Site settings › Custom code, in Head code

Any other website

Inside the <head> of every page

Full guides: WordPress, Shopify, Webflow, any website. Already installed? The dialog skips this step.

4. Paste the widget's code

For a form or inline banner, click Copy Code and paste it where the widget should appear. The code is one empty div that marks the spot; CROforce fills it with your widget when the page loads.

HTML
<div class="entail-ai-widget-YOUR_WIDGET_ID" entail-widget-id="YOUR_WIDGET_ID"></div>

Platform

Steps

WordPress

Edit the page or post. Add a Custom HTML block where you want the widget. Paste the code and click Update.

Shopify

Go to Online Store › Themes › Customize. Open the page, click Add section and choose Custom Liquid. Paste the code and click Save.

Webflow

Drag an Embed element to where you want the widget. Paste the code and save. Publish your site.

Any other website

Open your page's HTML, paste the code where you want the widget, then save and publish the page.

Click Done to close the dialog.

Works with single-page apps. The script notices the div even when your app adds it after the page has loaded. See Single-page apps and Embed quizzes and widgets in HTML.

Place it without code

A campaign puts widgets on your pages for you — after a paragraph, under a heading, on every page that matches a rule — without editing your site. Use it when you want the same widget on many pages.

Check that it shows

  1. Open the page in a private window.
  2. For a popup, do what triggers it — wait, scroll, or move toward closing the tab.
  3. Not there? Check that the widget is live, that the page matches its pages on the Display tab, and that the script loads (see Check your installation).

Once visitors see it, its loads, views and clicks show in Widget results.

Next steps

Frequently asked questions

Do I need to paste code again after I change a widget?

No. The code only marks the spot. When you publish changes, the widget on your page updates by itself.

Can I put the same widget on many pages?

Yes. Paste the same code on each page, or into a template your pages share. To place it on many pages without editing them, use a campaign.

Why can't I see Add to Your Site?

It appears in the More actions menu only once the widget is live. Publish it first.

Was this article helpful?

Try it on your own site

Add a popup, form or quiz to your site in a few minutes and see what it does for your conversions.