Skip to main content
Every composition has the same list of embed settings: how the widget fits its place, where it appears and when. This page lists all of them. Each one has three names:
  • Setting is the label in the Embed code screen of the dashboard.
  • Key is the name in the embedSettings of the composition. You read and save it with the API or, from an assistant, with the embed settings tools.
  • Attribute is where it ends up on the <widgetic> tag in your page. An attribute you write by hand works the same as one the dashboard wrote. A setting can have no attribute, or two.
The list is the schema that GET /compositions/{id}/schema/embed returns, the one the dashboard draws, so a form of your own can be drawn from it. For what the settings do together, with examples, see Embedding widgets.

Which settings apply

The dashboard shows a setting only when it can matter, and leaves the settings it hides out of the code. The schema says when with each setting’s visibilityCondition. Use iframe, Height, Embed target and Restrictions are always shown.

Basic options

How the box takes its place in the page.
The Embed code screen starts a composition that has saved nothing at 800 by 600. The schema that the API returns lists 405 by 300 as the default of Width and Height, so a form drawn from the schema starts there.

Layout and overlay

Where the widget appears. These settings are in the Layout & overlay group of the screen. A pop-up is never larger than 90% of the window, whatever its size says.

Triggers

What opens an Overlay pop-up by itself. Mixed has no trigger: its floating box appears when the widget scrolls out of view. The values of Event triggers:

Excludes

Situations in which the pop-up must not open. Overlay only, except Exclude URLs, which Mixed has too.

Visitors

Who the pop-up is for. Overlay only.

Schedule

When the pop-up may open, by the visitor’s own clock. Overlay only. Every empty setting is no limit.

Acquisition

Where the visitor came from. Overlay only.

View limits

How often the widget may show, and on which devices. The browser’s user agent and touch features decide what a phone is, not the width of the window.

Attributes the dashboard does not write

A few attributes of the tag are not settings of the screen. They work when you write them by hand.

Embedding widgets

The embed code, the three embed targets, triggers and events, with examples

Compositions API

Read the embed schema and save embedSettings