Setting up Widgets for Your Site

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

šŸ“˜

Note

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.

More about getting and installing web tracking script >
šŸ“˜

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.

šŸ“˜

Note

  • If you load the script with a delay instead of immediately after the page loads, the display immediately 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.
Widgets page with the Site and Widgets tabs selected, showing the Install the script on the site banner and the highlighted Get script button

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

To personalize widgets, use Merge Tags or prefill form fields with contact data from eSputnik, 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.

Site → Widgets

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.Ā 
Appearance step Type and fields with a Name field and four widget type options, Inline, Popup, Floating box, and Floating bar, with Inline selected

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

1.4. Click the Next button.

Input fields section with the Email toggle enabled and the Phone and First name toggles disabled, next to Cancel and Next buttons

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.

Style step with color pickers for Main button, Main title, and Background, a color picker open, and Smooth, Classic, and Decorative style options

2.2. Click Next.

3. Select Appearance

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

šŸ“˜

Note

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.
Subscription form widget with numbered callouts marking the State (1), Container (2), and Element (3) structure levels

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

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
  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:

Top panel with numbered callouts marking the Desktop/Mobile toggle (1), Undo/Redo (2), Multilanguage (3), Preview (4), Close (5), and Save button (6)
  1. Switch to the desktop/mobile version.
  2. Undo/Redo
  3. Multilanguage 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, which is determined by the value of the lang attribute in the html tag. If the page code doesn't contain it, then by the browser language.
  4. Widget preview.
  5. Close without saving.
  6. Save button.

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.

Left panel Add component list with General and Fields elements next to the widget canvas showing a sign-up discount form

The NPS/Rating and gamified components 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
Right panel Style tab with the Align inner elements, Distance between elements, and Size settings highlighted
  • Background
  • Stroke
  • Shadow
  • Round corners
  • Spacing inside component
  • Spacing around component
  • Breakpoint
Right panel Style tab with Background, Background blur, Stroke, Shadow, Round corners, spacing, and Hide overflow settings highlighted

Launcher settings:Ā 

  • Action on click
  • Positioning
  • Entry animation
  • Loop animation
  • Z-Index
šŸ“˜

Note

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.

Widget style panel with the sync lock icon highlighted and a tooltip reading Sync this parameter across these pages, Desktop pages

Editing Widget Elements

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

Selected image element in the widget template with the Style tab's Size, Image fit options, Change and Edit buttons, and Display toggles highlighted
Text Settings

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

Selected text element with the right panel's text style settings highlighted, showing font family, weight, size, color, and formatting options

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.

šŸ“˜

Note

  • 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 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.

šŸ“˜

Note

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

Image style settings modal with My images, Image library, and External link tabs open, showing a grid of stock photos

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

  • Fill,
  • Fit,
  • Fit to image.
Selected image element with the Image positioning options Fill, Fit, and Fit to image highlighted in the Style tab
šŸ“˜

Note

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.

Selected image element with the Change and Edit buttons shown on the Style tab, and the Edit button highlighted
šŸ“˜

Note

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.

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
  • Set up navigation buttons, indication, slideshow animation, and general slider’s design in the Slider setup window.
Slider setup panel showing slider type options, Navigation buttons, Indication, Slideshow animation settings, and the Loop sides toggle enabled
  • Manage slides’ order, add, duplicate, or rename slides after clicking the Mange slides button.
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

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

Slider component in the widget template with the plus sign for adding a slide highlighted

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.

Right panel showing image positioning controls, Fill/Fit options, and Change/Edit buttons, with the slide's image thumbnail highlighted

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

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
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.

šŸ“˜

Note

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Ā 
General tab with the Action on click section highlighted, showing Add action button and Open URL, Launch another widget, and Close current widget options
  • Contact field placeholder, validation, and prefill
General tab with Placeholder, Validation, and Required settings highlighted for a selected email field
šŸ“˜

Note

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 contact field in eSputnik, such as Email;
  • 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.

Autofill

For details about the sources and their settings, see Using Website Data in Widgets.

  • Video settings
General tab with Video component selected, showing YouTube URL field and Autoplay and Custom cover toggles

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.
Widget editor with multiple page tabs (Subscription form, Page 2, Page 3, Success, Existing, Error) above a Giveaway Spin form preview

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.
Widget editor with the Add button highlighted and Page 2's menu open showing Duplicate selected page, Move right, Move left, and Delete options

Configuring Branches

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

  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.

Configuring Branches
šŸ“˜

Note

  • Multi-step forms are available in all widget types except launchers.
  • A widget can contain only one game component.
  • Only one widget component can write data to a single contact field.
  • When you first save a Subscription form or Request form in the Popup or Floating box format, eSputnik suggests adding a Teaser if the widget does not have one. You can add it immediately or save the widget without it.
  • 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.
New subscription form Placement tab with the CSS selector field and Add placement later toggle, currently off
  1. 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
Where to add the widget relative to the found element options, with Before the element selected
šŸ“˜

Note

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.

New subscription form Placement tab with the Add placement later toggle turned on and highlighted
  1. Click Done. Initially, the form will be visible only to you; on the Parameters tab, you can make it public.
  2. Create additional placements as needed.
Widget Parameters tab with the Placement section showing a configured Before the element rule and the highlighted Add placement button

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.
  4. Configure the actions after the user has subscribed or clicked on the launcher.
  5. Activate or deactivate the calculation of the revenue from the widget (the settings are described in the instructions).
Widget parameters page with the Onboarding and Revenue calculation toggles, and the Revenue calculation toggle highlighted, currently off

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.
Widget top bar with Unpublished status and the highlighted Test widget button
  1. Enter the link to your website and click Open.
Test widget on your website dialog with the Page URL field filled in and the Open button highlighted
  1. If all steps are successful, the widget will be displayed on your website according to the specified conditions.
Subscription form widget popup displayed on a live website with an image, Email, phone, and First name fields, and a Subscribe button
  1. After testing the form, publish it by clicking on the Published button, then click Save.
Widget top bar with the Published/Unpublished dropdown open and the Save button highlighted

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.

Widget top bar with the calendar icon for the widget's schedule highlighted

The schedule includes the following settings:

  • Start and end dates
  • Custom days and time
  • User timezone
Schedule window with Start date, End date, and Custom days and time toggles, all days selected, and a User timezone dropdown

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

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 Universal analytics script, set directly on the website.

Learn more about exporting data to Google Analytics >

Widget Integrations tab highlighted, showing the Export data to Google Analytics toggle currently off

Further settings include:



Did this page help you?