---
updatedAt: 2026-11-11T18:02:38.000Z
agentTools:
  projectIndex: https://docs.esputnik.com/llms.txt
---

# Setting up Widgets for Your Site

<HTMLBlock>{`
<p align="right" style="color: gray;">
  <a href="https://docs-ua.esputnik.com/docs/nalashtuvannya-vidzhetiv-dlya-sajtu" style="color: gray; text-decoration: none;"><em>
    Read this article in Ukrainian ⮕
  </em></a>
</p>
`}</HTMLBlock>

Place different widget types on your site to improve visitor interaction and collect more contact data.

To publish widgets, install our script before the closing `body` tag on every website page. To get a script, go to **Site → Widgets**, click the **Get script** button (available after creating your first widget), and specify your site's domain.

<Anchor label="More about getting and installing web tracking script >" target="_blank" href="https://docs.esputnik.com/docs/how-to-set-up-web-tracking-for-your-website">More about getting and installing web tracking script ></Anchor>

<Callout icon="📘" theme="info">
  ### Note

  The widget script is generated per site domain, and one account doesn't support configuring separate subscribe widgets for multiple domains. If you need a subscribe widget on a second domain, we recommend using a separate account for it.
</Callout>

* If you load the script with a delay instead of immediately after the page loads, the [display immediately](https://docs.esputnik.com/docs/widget-calling) condition won't trigger on the actual page load — it fires only once the delayed script initializes. Other display conditions are not affected.
* Widget form content is visible to and can be indexed by search engine crawlers like Googlebot.

<Image src="https://files.readme.io/f6fed8c0b5fb98d2343f2b08cb18ba7eb4a56bb9f495d650dd498f20cd0d7aeb-image.png" alt="Widgets page with the Site and Widgets tabs selected, showing the Install the script on the site banner and the highlighted Get script button" align="center" width="80% " />

After installing the script, proceed to widget creation. All widget types have similar settings.

To personalize widgets, use [Merge Tags](https://docs.esputnik.com/docs/substituting-data-from-the-data-layer-through-merge-tags) or prefill form fields with URL query parameters, JavaScript variables, Local storage, cookies, or Data layer events. In multi-step widgets, add branches to direct users to different pages based on their responses.

Select the widget type from the left menu or the drop-down list.

<Image src="https://files.readme.io/d2537c2d14a93dd33c2a681f37733ed4a26245267b79a4670381ed7a2a1a3f35-image.png" alt="Site → Widgets" align="center" width="80% " />

## Appearance

Start widget creation with initial settings.

### 1. Name / Type and Fields

1.1. Fill in the **Name** field. The name is used for search within the system. Users won't see it.

1.2. For subscription forms and informers, select the type from the available options:

* **Inline** — embedded into any element of the webpage
* **Popup** — appears on top of other elements and disables the background. When open, it prevents page scrolling.
* **Floating box** — floats on top of other elements in the corner of the webpage or as a full-width bar without disturbing users’ reading experience.
* **Floating bar** — floats as a full-width bar without disturbing users’ reading experience. 

<Callout icon="📘" theme="info">
  ### Note

  A **Popup** closes when the visitor presses and releases the mouse button on the shaded backdrop around the widget. If the press starts on the widget content and ends on the backdrop — for example, while selecting text in a field — the popup stays open. The **Esc** key and the close button always work.

  If the widget has to stay open until the visitor closes it or submits the form, use **Floating box** or **Floating bar** instead.
</Callout>

<Image src="https://files.readme.io/16b0c8bd444bd961b2fd9bc092b0958c7cdab477622f6862f209ad0ecaa813c0-image.png" alt="Appearance step Type and fields with a Name field and four widget type options, Inline, Popup, Floating box, and Floating bar, with Inline selected" align="center" width="80% " />

1.3. For subscription forms, activate the widget’s input fields. 

1.4. Click the **Next** button.

<Image src="https://files.readme.io/9a96b67fb68a07e82434080bc6117b350a2e2b7e91527e04ed1cae2d95b19b8e-image.png" alt="Input fields section with the Email toggle enabled and the Phone and First name toggles disabled, next to Cancel and Next buttons" align="center" width="80%" />

### 2. Style (Skipped for Launchers)

2.1. To create a widget based on your website style, select colors and style. The system will generate a widget based on your settings.

<Image src="https://files.readme.io/16efd72287c48ef5d245d854dffd17c379f47a531fcb9499862cfa326c7f6af6-image.png" alt="Style step with color pickers for Main button, Main title, and Background, a color picker open, and Smooth, Classic, and Decorative style options" align="center" width="80% " />

2.2. Click **Next**.

### 3. Select Appearance

Select the appearance style for the element. Each widget type has different options.

Select the most appropriate option. You’ll be able to edit it as needed.

## Widget Editor

You have various tools to customize the widget’s style and elements.

### Basic Actions

The widget structure has 3 levels:

1. State.
2. Container (for some types of widgets).
3. Element.

<Image src="https://files.readme.io/b3c66698d7cb72e46ab8d89548ce31194588650e5634e54d5c8779bc76aba858-widgets11.webp" alt="Subscription form widget with numbered callouts marking the State (1), Container (2), and Element (3) structure levels" align="center" width="80%" />

When you click the right mouse button on the widget element, the following basic actions become available:

<Image src="https://files.readme.io/a8f1a83566355956c649244b24f637137e8f47dcdf730e44bcf4d38580e22c2e-image.png" alt="Right-click context menu on a widget element showing Copy, Duplicate, Cut, Delete, Put behind all floating images, Put in front of all floating images, and To container options" align="center" width="80% " />

1. Copy
2. Duplicate
3. Cut
4. Delete
5. Put behind all floating elements
6. Put in front of all floating images
7. To container

### Top Panel

The top panel menu contains buttons with the following functions:

<Image src="https://files.readme.io/5fba32c7086722bece2d891affc5f15bc68d4b08a94b3d38115273c3c76adf3e-image.png" alt="The top panel" align="center" width="80%" />

1. Device selection and canvas zoom.
2. Undo/Redo
3. [Multilanguage](https://docs.esputnik.com/docs/multilanguage-overview) settings:
   * Form appearance is set up only in the version with the default language. Then it's automatically applied to other language versions.
   - In other language versions, you can only change the text.
   - The form is displayed in the site language: first the `lang` attribute in the `html` tag is used, then the language code in the page URL, and if neither is present, the visitor's browser language.
4. Widget preview.
5. Close without saving.
6. **Save** button.

#### Device and Zoom

The canvas matches the screen size of the selected device, so you can see the actual size of the widget on desktop and mobile screens. This is especially useful for **Fullscreen** widgets, **Floating bar** widgets, and large popups.

To change the device, click its name on the top panel and select one from the list:

* **Desktop**: Small Laptop (1366×768), Standard Laptop (1440×900), Desktop (1920×1080), Large Desktop (2560×1440), Ultrawide (2560×1080).
* **Mobile**: Android (360×800), iPhone SE (375×667), iPhone 16 (393×852), Pixel 9 (412×915), iPhone 17 Pro Max (440×956), iPad (768×1024).

<Image src="https://files.readme.io/56207f188131ed83db9ec3fd274fcba5a9507ec1c48348cb5de83b5f12f5a933-image.png" alt="Device" align="center" width="80%" />

To switch to the mobile version quickly, click the phone icon next to the device name.

To change the canvas zoom, open the list next to the device and select:

* **Zoom in** (**Ctrl** + **+**) or **Zoom out** (**Ctrl** + **−**);
* **Fit to screen** (**Ctrl** + **0**) to fit the device screen into the editor window;
* a zoom level from 25% to 400%.

<Image src="https://files.readme.io/4c252f04e725e1a59782b2ededdea61020c69b8a39d5a418e3b3378de411435e-image.png" alt="Zoom" align="center" width="80%" />

You can also zoom by holding **Ctrl** and scrolling the mouse wheel, or with the touchpad.

When a widget is taller than the device screen, the canvas grows to the widget's full height, so you can scroll to any part of it and edit it. The height follows the same rules as on the site:

* for a popup — the limit of 90% of the screen height, the close button, and the popup position;
* for a floating box — its position at the top, bottom, or center, the offset, the close button, and the branding;
* for an inline widget — the floating images around it.

Each widget page has its own height, and the zoom is shared by all pages. **Fit to screen** fits the device screen, not the extended canvas, so the zoom stays the same as the widget grows.

While the canvas is taller than the device screen, a dashed line crosses it at the screen height with a caption such as **Small Laptop · 768**. Everything above the line is what a visitor sees without scrolling. The line hides while you drag a component, so it doesn't get mixed up with the drop marker.

<Image src="https://files.readme.io/40f71e03d65931e0154d545043b12e8d263a4dc120b6cf74d17ce3c6c34bd9a8-image.png" alt="Dashed line" align="center" width="80%" />

### Left Panel

On the left side of the screen, you can find the components of the widget you are creating. The editor works as a drag-n-drop constructor. If you need to add any element, left-click on it and drag it to the appropriate place of the widget.

<Image src="https://files.readme.io/172ecbecf9d7b983a080109ebfa1c6684ac788b4dca600f2fb0403448789c3c9-img26.gif" alt="Left panel Add component list with General and Fields elements next to the widget canvas showing a sign-up discount form" align="center" width="80% " />

The  [NPS/Rating](https://docs.esputnik.com/docs/npsrating-widget-components) and [gamified components](https://docs.esputnik.com/docs/widgets-gamification) described in the separate articles.

### Right Panel

When you don't have any widget items selected, you will see design settings on the right side of the screen. These settings apply to the entire widget:

* Align inner elements
* Distance between elements
* Size

<Image src="https://files.readme.io/4468772f382aa9687c04a5986b6aed1ca6887912870c5641954a06138a220538-image.png" alt="Right panel Style tab with the Align inner elements, Distance between elements, and Size settings highlighted" align="center" width="80% " />

* Background
* Stroke
* Shadow
* Round corners
* Spacing inside component
* Spacing around component
* Breakpoint

<Image src="https://files.readme.io/40eeca4e3f751ba59e412f9a3f76d51e8bce7b5d1dd419b75a07b5e447c657fd-image.png" alt="Right panel Style tab with Background, Background blur, Stroke, Shadow, Round corners, spacing, and Hide overflow settings highlighted" align="center" width="80% " />

Launcher settings: 

* Action on click
* Positioning
* Entry animation
* Loop animation
* Z-Index

Settings marked with a lock icon sync parameters across pages. You can change the synchronization setting by clicking the icon and selecting the needed option.

<Image src="https://files.readme.io/7cbd4d3f58496b0376e4cf7942ca3988f5c4c43e4d0118d7b9d79da0442dc765-image.png" alt="Widget style panel with the sync lock icon highlighted and a tooltip reading Sync this parameter across these pages, Desktop pages" align="center" width="80% " />

#### Editing Widget Elements

If you want to edit individual widget elements, just click on the desired element.

<Image src="https://files.readme.io/1605d6bc4ce5a102ae0cc5f0f49b07961632e555e18e8a07c47c1daaaf6deea5-image.png" alt="Selected image element in the widget template with the Style tab's Size, Image fit options, Change and Edit buttons, and Display toggles highlighted" align="center" width="80% " />

You can resize a component right in the editor. Select it and drag a corner to change the width and the height together and keep the proportions, or drag the middle of a side to change one dimension. The current size in pixels is shown while you drag. For exact values, use the **Fixed width** and **Fixed height** fields in the **Size** section of the **Style** tab.

<Image src="https://files.readme.io/82014b2e1678c046a8181737730437a802c827dcdd87bb6c7081cfa9abe0117b-image.png" alt="Component with resize handles on the editor canvas and the Style tab showing the Fixed width and Fixed height fields" align="center" width="80%" />

##### Text Settings

Select a text element to open its settings on the right panel.

<Image src="https://files.readme.io/fb079864940bd72d4d289c3e41776bae0cb34a5131559565cc144fa2a87f793e-img065.gif" alt="Selected text element with the right panel's text style settings highlighted, showing font family, weight, size, color, and formatting options" align="center" width="80%" />

By default, text has the same formatting in the desktop and mobile versions of a widget. To make the text look different on mobile devices:

1. Switch to the mobile version: on the top panel, click the phone icon or select a mobile device from the list.
2. Select the text element.

<Image src="https://files.readme.io/073a0049c769a1bde60912d2e355fe19cffe065efa0ca307af837f3aeb1d27fb-image.png" alt="Switch to the mobile version" align="center" width="80%" />

3. Change the required properties, such as the font size or text color.&#x20;

After you change that property no longer follows changes made in the desktop version.

To restore the desktop formatting for the changed properties, click **Reset**. These properties will synchronize with the desktop version again.

<Image src="https://files.readme.io/5522fe2a1d39bcad33fcaa7d37acf6c713bc5b5c98b54afcfa0aa51976d70872-image.png" alt="The Reset button" align="center" width="80%" />

If text in an existing widget was configured differently for desktop and mobile devices, the editor displays the **Different style on mobile** notification.

<Image src="https://files.readme.io/5e4340976e7e61e6d78092ad1295c31c1a8059d2ed137aff809d65092516d8ab-image.png" alt="Different style on mobile notification" align="center" width="80%" />

To change the color of an individual word, phrase, or character, select the required fragment directly in the text element and choose a color from the inline formatting toolbar. The color is applied only to the selected fragment, not to the entire text element.

* By default, widgets use the primary font set on your website.
* If this automatic detection doesn't pick up the correct font, you can set it manually: right-click the text on your site and select **Inspect** to open the browser's developer tools, filter the **Styles** panel for `font-family`, copy the value of the active (non-crossed-out) declaration, and paste it into the widget's **Title font** or **Text font** field. The pasted value applies to all widget text using the corresponding font option.
* The widget only loads Google Fonts that are actually used in the widget's content — fonts referenced in unused styles or classes are not loaded.
* The **Text roller** element animates scrolling text, helping attract attention and display more information in a compact format.
* [Merge Tags](https://docs.esputnik.com/docs/substituting-data-from-the-data-layer-through-merge-tags) personalize widget text with website data.

##### Image Customization

To open image style settings, left-click on the image. You can upload your picture, choose a suitable one from the library of free photos and icons, or enter the URL of the image you want to embed. External URL allows you to keep the referenced sources up-to-date. For example, promo actions or products on a site.

Upload images in `PNG`, `JPEG`, `SVG`, `GIF` formats, up to 3 MB

<Image src="https://files.readme.io/61ef24e21942d8e85fca66472f5f3c6c31881019f1834cba8654145396ecb286-image.png" alt="Image style settings modal with My images, Image library, and External link tabs open, showing a grid of stock photos" align="center" width="80% " />

In addition to the standard settings, positioning customization is also available for images:

* Fill,
* Fit,
* Fit to image.

<Image src="https://files.readme.io/a3fa916d11a617fe5a591cff9d271f2bc68540817362901486f8c27561056e9b-image.png" alt="Selected image element with the Image positioning options Fill, Fit, and Fit to image highlighted in the Style tab" align="center" width="80% " />

You can edit the image directly in the editor when uploading (if it does not meet the requirements) or after uploading (the **Edit** button). After editing, the image is saved in PNG format.

<Image src="https://files.readme.io/f96bdaa0bd71dcc897f34e39bdde69e6c0b0f5d90f3f1fcaa30db737566878eb-image.png" alt="Selected image element with the Change and Edit buttons shown on the Style tab, and the Edit button highlighted" align="center" width="80% " />

For a custom-designed **Informer** built around a full background image, a wide desktop image may get cropped or hard to read once it's resized for mobile. To use a different image on mobile, switch to the mobile view in the top panel, click the lock icon next to the **Background** setting, select **Do not sync**, and upload a separate image — the desktop and mobile versions will then use different images without affecting each other. Square or vertical images usually adapt best to both screen sizes.

##### Slider Settings

Drag the slider from the left-side panel and drop it into the widget’s template. **Set up slider** and **Manage slides** buttons will appear on the right-side panel.

<Image src="https://files.readme.io/c93e14d6376ec635fafd6d6c6db0d085650b842ce471032ac5449f2055a0220a-image.png" alt="Widget template with a slider component added, showing the highlighted Set up slider and Manage slides buttons on the right panel and Slider highlighted in the left component list" align="center" width="80% " />

* Set up navigation buttons, indication, slideshow animation, and general slider’s design in the **Slider setup** window.

<Image src="https://files.readme.io/9056a4f1c83825c0ff661e0d350a640bd6120ba759e9b3f0e8aa5ba2cffcf587-image.png" alt="Slider setup panel showing slider type options, Navigation buttons, Indication, Slideshow animation settings, and the Loop sides toggle enabled" align="center" width="80% " />

* Manage slides’ order, add, duplicate, or rename slides after clicking the **Mange slides** button.

<Image src="https://files.readme.io/a14ee61a35eb8986d41273d06eeed87638cca7182f613e98af522f6285b6b91f-image.png" alt="Slides panel listing Slide 1 and Slide 2 with the three-dot menu open showing Add slide before, Add slide after, Duplicate, and Rename options" align="center" width="80% " />

Also, you can add a slide by clicking on the + sign.

<Image src="https://files.readme.io/98ce209da89e226a1b1430c77ad4561c86ed2a6fb5db6c37b26e118c29fbbf0b-image.png" alt="Slider component in the widget template with the plus sign for adding a slide highlighted" align="center" width="80% " />

To change or edit an image, click on it in the template, after which it will appear in the right settings panel. Clicking on the image from the slider in the settings panel opens the editing and editing window.

<Image src="https://files.readme.io/f5e8d93ee857d6a34cce9e464d8440c1ae40ec70290476aea8b5d3819f98b896-image.png" alt="Right panel showing image positioning controls, Fill/Fit options, and Change/Edit buttons, with the slide's image thumbnail highlighted" align="center" width="80% " />

Use navigation buttons to switch between the slider’s images.

<Image src="https://files.readme.io/d272b0534d537a2bee4890c749f33a9ef9f90a234bf3d9b0eafc1e9f135ce277-image.png" alt="Widget template with the slide indicator, add-slide button, and navigation arrows highlighted, next to the Style tab's Align inner elements and Distance between elements settings" align="center" width="80% " />

##### Countdown Timer

Drag **Countdown timer** from the left panel into the widget template. Its settings open on the right panel.

The **Countdown** section shows when the offer ends. Click the edit icon to open the **Countdown timer** panel and choose how the time is counted.

**For each visitor** is a personal countdown that starts when the visitor first sees the widget. In **Time to claim the offer**, pick one of the preset values from 5 minutes to 24 hours, or select **Other** and enter your own time in days, hours, minutes and seconds. **When time is up** sets what happens next:

* **Show again on the next visit** — with a fresh countdown. A visit ends after 30 minutes without activity.
* **Show again after a pause**.
* **Don't show again**.

**On a date** is the same deadline for everyone. Enter the date and time in **Ends on** and pick the **Time zone**. The default is **Each visitor's local time**, so the offer ends at that hour by each visitor's own clock. After the deadline the widget stops showing. An end date that has already passed blocks publishing.

In the **Digits** section, choose the format: **Days, hours, minutes, seconds**, **Hours, minutes, seconds**, **Minutes and seconds** or **Only seconds**. The **Unit names under the digits** switch shows or hides the captions under the numbers.

<Image src="https://files.readme.io/2d272e0d40649f8cec93e82c14f00ae90fff2a96aff3fc94a695ea15a4a134e0-image.png" alt="Widget editor with the Countdown timer panel open: The offer ends set to On a date, the Ends on field, and Time zone set to Each visitor's local time" align="center" width="80%" />

##### Close Button

Click the widget's close button to open its settings on the right panel: pick a more or less visible design, set the icon's color and opacity, adjust its size (particularly useful to make it easier to tap on mobile), and place it **inside**, **centered on**, or **outside** the widget's edge. A **Custom** tab lets you upload your own close icon instead of the default one.

The close button can't be fully hidden on standard widgets — this is intentional, so visitors always keep control over closing the widget.

#### General Tab

Click on the widget's element to see the **General** tab with such settings:

* Action on click 

<Image src="https://files.readme.io/cc132cfc922f37a5357a40496d2bd8d335833bf37c932d2493f6cc95dd42342b-image.png" alt="General tab with the Action on click section highlighted, showing Add action button and Open URL, Launch another widget, and Close current widget options" align="center" width="80% " />

For a button in a widget with any game component, the game start action (**Run the game**) is available. For details, see [Running the Game with a Button](https://docs.esputnik.com/docs/widgets-gamification#running-the-game-with-a-button).

##### Moving Between Widget Pages

In a multi-page widget, a button can send the visitor to another page, so the path through the widget can depend on what the visitor does — for example, a bigger discount after they decline the first offer.

The action name shows the button's role in that path: on intermediate pages it is **Next page**, and on the step where the form data is actually sent it is **Submit form**.

<Image src="https://files.readme.io/9a47c0fa4d16a1bb3c88d10e4a57cdcba8df98a0d42ede5d53dc17a4655cb25e-image3.png" alt="Button General tab with Action on click set to Next page" align="center" width="80%" />

To send the visitor to a particular page, select the **Open widget page** action and choose the page in the **Page** field. The **Require fields** toggle next to it controls whether the form is validated before the transition — leave it on to require the fields to be filled in, or turn it off to let the visitor continue without completing them.

<Image src="https://files.readme.io/94103453a60d3ff45a48b26ce2048edc72e145e5f7a31ef172d844026ff23de7-image6.png" alt="Action on click set to Open widget page with a Page selector and the Require fields toggle" align="center" width="80%" />

##### Configuring Clicks as Target Actions

In an **Informer**, you can enable the **Count as a target action** option for the **Open URL** click action. This option determines which clicks are included in the conversion rate calculation:

* if the option is not enabled for any action — all tracked clicks;
* if the option is enabled for at least one action — only clicks associated with those actions.

<Image src="https://files.readme.io/c8a0c338625ac6cf8eb86326ef418714fca5fb5f52a599a2443c65d1985444e0-image.png" alt="Count as a target action" align="center" width="80%" />

For example, if clicking the **Go** **shopping** button is the expected action, enable this option for the button.

For **Subscription forms**, the system automatically counts form submission as a target action.

You can view the results in the [Widget Report](https://docs.esputnik.com/docs/widget-report).

* Contact field placeholder, validation, and prefill

<Image src="https://files.readme.io/d514be6596ae279c5ab555567e2c66602f7e42ee662fa033f9c22e3d3f09cdd3-image.png" alt="General tab with Placeholder, Validation, and Required settings highlighted for a selected email field" align="center" width="80% " />

For the **Email** field, enable the **Do not accept public email domains** validation option to reject addresses from providers like Gmail, Yahoo, or Hotmail and collect only business email addresses.

##### Prefilling Form Fields

You can enable prefill for **Email**, **Phone**, **First Name**, **Last Name**, and text fields. Values can come from:

* **Static field** — a fixed value from the field settings, the same for every visitor;
* **URL query parameter**;
* **JavaScript variable**;
* **Local storage**;
* **Cookie**;
* **Data layer event**.

Select the form field, enable prefill, and configure the selected source. If the system cannot find a value, the field displays its standard placeholder and remains available for manual input.

<Image src="https://files.readme.io/4d76a736fa66aeb456a6cb159c2d901178738c0a4413283e2d5b51fa612f4f9f-image.png" alt="Autofill" align="center" width="80%" />

For details about the sources and their settings, see [Using Website Data in Widgets](https://docs.esputnik.com/docs/substituting-data-from-the-data-layer-through-merge-tags).

* Video settings

  A click on the video starts playback, so the link is set on the container the video sits in. The visitor goes to the page by clicking the container next to the video — its free area around the player.

<Image src="https://files.readme.io/24b9c4a41f082068d15dcde6eddbbd981575b73874e36fb5068e41070c4f95b3-image.png" alt="General tab with Video component selected, showing YouTube URL field and Autoplay and Custom cover toggles" align="center" width="80% " />

### Creating Multi-Step Widgets

A multi-step widget can split a long form across several pages or change the next step based on the user's response. This makes the form easier to complete and supports more complex experiences, including:

* quizzes with different outcomes;
* progressive discounts;
* NPS surveys with follow-up questions;
* forms where the next question, promo code, or CTA depends on the previous response.

<Image src="https://files.readme.io/d17916c9f7c82ff00abc0d6363311a3b803211c6f1c3a8bd1166c59b43f162bb-widget.gif" alt="Widget editor with multiple page tabs (Subscription form, Page 2, Page 3, Success, Existing, Error) above a Giveaway Spin form preview" align="center" width="80% " />

To add a page to the widget, use:

* **Add** — to create a page based on the current one;
* the **three-dot** menu on an additional page — to duplicate, move, or delete it.

<Image src="https://files.readme.io/4fd2c80ef79ada3b8cbfae6e681d3ebf9ec34594ac6b5cfa0d9ccde8bc25775a-image.png" alt="Widget editor with the Add button highlighted and Page 2's menu open showing Duplicate selected page, Move right, Move left, and Delete options" align="center" width="80%" />

#### Configuring Branches

Branches open different widget pages depending on the user's response.

In a game widget, the result page can depend on the reward won — for example, a discount opens a promo code page, while a gift opens a redemption terms page. Select the page in each reward's settings. Only pages placed after the game page are available; the next page in order opens by default. For details, see [Reward Result Pages](https://docs.esputnik.com/docs/widgets-gamification#reward-result-pages).

1. Add all pages that may appear in the flow.
2. Select the component whose response determines the next step.
3. For each response option, select the page that should open next.
4. Configure the content of the final pages.
5. Test every branch in preview mode.

For example, in an NPS survey, a score from 0 to 6 can open a page asking why the user gave a low rating, while a score of 9 or 10 can open a request to leave a public review. For details about rating components, see [NPS/Rating Widget Components](https://docs.esputnik.com/docs/npsrating-widget-components).

<Image src="https://files.readme.io/5af827fb59e60c85b33166416c34efc377c53f46defa1f18397c0703af26eb6e-image.png" alt="Configuring Branches" align="center" width="80%" />

* Multi-step forms are available in all widget types except launchers.
* A widget can contain only one game component.
* You can add the **Email**, **Phone**, **First Name**, and **Last Name** fields on different pages of a widget, but not twice on the same page: the editor won't let you publish such a widget. For example, in an NPS survey promoters, neutral users, and detractors see different pages, and the **Email** field is needed on each of them.
* Only one value is stored per contact field: if the same field is filled in more than once, the last non-empty value is saved, and an empty field doesn't overwrite a value that is already there.
* Fields on branches the visitor didn't follow don't block submission.
* When you first save a **Subscription form** or **Request form** in the **Popup** or **Floating box** format, eSputnik suggests adding a **[Teaser](https://docs.esputnik.com/docs/widget-calling#teaser-display-rules)** if the widget does not have one. You can add it immediately or save the widget without it.
* The last page of a multi-step widget is the system **Success** page: in a widget that asks for an email, then a phone number, and then offers links, those offers go on the Success page.
* The maximum number of pages is 20.
* Partial data collection for abandoned forms is not available yet — it is pending backend work. Because of this, "the user filled in at least one field" can't currently be treated as a reliable indicator of a submission.

## Widget Placement

1. The age gate takes the size of the screen and completely overlaps the pages of the site until the user confirms their age, so this widget has no placement settings.
2. The positioning of a launcher is configured in the appearance editing window.
3. To specify a positioning of a subscription form or informer, enter the **CSS selector** of the element you want to add a placement to. This tab appears after you have customized the widget's appearance and clicked the **Save** button.

<Image src="https://files.readme.io/9a82320dfb6752aeae632396aea4a786863481c32557e57940b7a3b5945c9f46-image.png" alt="New subscription form Placement tab with the CSS selector field and Add placement later toggle, currently off" align="center" width="80% " />

4. Select where to add the widget relative to the found element:

* Before the element
* After the element
* Inside the element, last
* Inside the element, first
* Replace element

<Image src="https://files.readme.io/4c9e3295091f2beee410120c03918ba4de90755b3ca5bcaa26ae5813fa0941ce-image.png" alt="Where to add the widget relative to the found element options, with Before the element selected" align="center" width="80% " />

You can insert up to ten embedded forms on one page, which is especially useful for long articles or landing pages.

If you are not ready to specify the widget placement, activate the **Add placement later** switch.

<Image src="https://files.readme.io/7b6d9d64d5688b40defc19e2b2becbfdabd3436983d57bfdbdbc1df0e36ad48a-image.png" alt="New subscription form Placement tab with the Add placement later toggle turned on and highlighted" align="center" width="80% " />

5. Click **Done**. Initially, the form will be visible only to you; on the **Parameters** tab, you can make it public.
6. Create additional placements as needed.

<Image src="https://files.readme.io/3fc532ca16b84032db37d8c7fea41f27c413b501b1dffe96709733735f25b90a-image.png" alt="Widget Parameters tab with the Placement section showing a configured Before the element rule and the highlighted Add placement button" align="center" width="80% " />

## Widget Parameters

In the **Parameters** tab, you can:

1. Edit the widget's appearance.
2. Edit the placement of the form or informer.
3. [Configure widget calling conditions](https://docs.esputnik.com/docs/widget-calling).
4. [Configure the actions after the user has subscribed or clicked on the launcher](https://docs.esputnik.com/docs/actions-after-form-submission).
5. Activate or deactivate the calculation of the revenue from the widget ([the settings are described in the instructions](https://docs.esputnik.com/docs/setting-up-revenue-tracking)).

<Image src="https://files.readme.io/a997afa807eee52dfac2633ffccc21fc5ca6b98c8c1a5d9c56f3199113a966eb-image.png" alt="Widget parameters page with the Onboarding and Revenue calculation toggles, and the Revenue calculation toggle highlighted, currently off" align="center" width="80% " />

## Publishing a Widget

1. Having saved all the settings, check how visitors will see the widget on the site — click on the **Test widget** button.

<Image src="https://files.readme.io/7349e2b6827aaa790aec457561876d4be27daa9fecb20944c06d83a8ab2ec87c-image.png" alt="Widget top bar with Unpublished status and the highlighted Test widget button" align="center" width="80% " />

2. Enter the link to your website and click **Open**.

<Image src="https://files.readme.io/d598f71858cf2d8d79222e2a8d40da2e8f15107649c5cf2497a25a6989c67692-image.png" alt="Test widget on your website dialog with the Page URL field filled in and the Open button highlighted" align="center" width="80% " framed={true} />

3. If all steps are successful, the widget will be displayed on your website according to the specified conditions.

<Image src="https://files.readme.io/1d31db6c8081dbe186ddc520923db18aee95f54a7297a696678f325723e4013a-widgets42.webp" alt="Subscription form widget popup displayed on a live website with an image, Email, phone, and First name fields, and a Subscribe button" align="center" width="80% " />

Testing through the **Test widget** button is not isolated from your database: a form submitted there creates a real contact, and with Double Opt-In on it also produces the `SysContactConfirmationRequest` event and the confirmation email.

4. After testing the form, publish it by clicking on the **Published** button, then click **Save**.

<Image src="https://files.readme.io/d02fa3da080d0a97666f500510bcacd07a44b689a0064bd21d4acb54e6f5f04e-image.png" alt="Widget top bar with the Published/Unpublished dropdown open and the Save button highlighted" align="center" width="80% " />

Click the Unpublished button to stop displaying the form, then save the changes.

Also, you can specify the widget’s schedule by clicking on the **calendar** icon.

<Image src="https://files.readme.io/8d1950569831df91a3ccf4e2e9c15ffd253f6ce8c8921f2342ac8cfdb1a9b8a2-image.png" alt="Widget top bar with the calendar icon for the widget's schedule highlighted" align="center" width="80% " />

The schedule includes the following settings:

* Start and end dates
* Custom days and time
* User timezone

<Image src="https://files.readme.io/fd5485124ba81a5b14c68e9cb9d7a59f493f9d4d523d580b9bcc3f3c9ab1cae3-image.png" alt="Schedule window with Start date, End date, and Custom days and time toggles, all days selected, and a User timezone dropdown" align="center" width="80% " />

Widget statuses are displayed in the general list and in widget details:

* Published — for published widgets with a current or no scheduled period
* Unpublished
* Scheduled — the publication period is planned for the future
* Expired — the publication period has expired

<Callout icon="📘" theme="info">
  ### If the Widget Does Not React

  A widget can appear on the page and stop responding — the close button does nothing, for example. Check whether the site loads the Prototype.js library: it conflicts with the widget script, and the widget controls stop working while it is on the page.
</Callout>

## Widget Integrations

On the **Integrations** tab, you can configure sending widget actions and custom events to Google Analytics. Note that integration is only compatible with <a rel="nofollow" href="https://support.google.com/analytics/answer/10269537?hl=en" target="_blank"> Universal analytics script</a>, set directly on the website.

[Learn more about exporting data to Google Analytics >](https://docs.esputnik.com/docs/integrating-widgets-with-ga)

<Image src="https://files.readme.io/ec3b76a7c5f86bbaab01ce69f3f194ebbafa24c24053b2efee14a58765af756c-image.png" alt="Widget Integrations tab highlighted, showing the Export data to Google Analytics toggle currently off" align="center" width="80% " />

<Callout icon="📘" theme="info">
  ### Note

  Widgets don't include built-in CAPTCHA or other anti-bot protection. If bots submit a subscription form, use double opt-in on the platform side and bot protection on the website side — a WAF or the bot-management mode of your CDN, and rate limiting for repeated submissions.
</Callout>

Further settings include:

* [Widget calling rules](https://docs.esputnik.com/docs/widget-calling)
* [Actions after subscription](https://docs.esputnik.com/docs/actions-after-form-submission)

An embedded widget takes the alignment of the element it is placed after, so a widget that looks off-centre is usually inheriting that from the site. The editor controls the widget's own styles only. To centre it, give the widget the full width of the parent container and centre the content inside the widget.