Skip to main content
Set parameters as attributes on the <fletch-app> element.

widget-url

Required. Set widget-url to the full URL that Fletch provides. Use an absolute https:// address.

app-origin

Optional. Default: taken from widget-url. Set the trusted Fletch origin for automatic resizing. Set app-origin only when widget-url is a tracking or redirect link. The SDK cannot get the Fletch origin from these links.

height

Optional. Default: 600px. Set the widget’s starting height. When resize is true, the widget changes its height to fit its content. When resize is false, this value sets the fixed height.

width

Optional. No default. The width of the widget, for example 100% or 480px. If you leave it out, you can control the width with iframe-style or your own CSS.

resize

Optional. Default: true. Set resize to true to fit the widget to its content. Set it to false to use the fixed height value.

sync-query-params

Optional. Default: true. Set sync-query-params to true to pass your page’s URL parameters to the widget. If both URLs contain a parameter, the widget uses your page’s value. Set sync-query-params to false to stop this behavior.

iframe-style

Optional. No default. CSS applied to the widget frame itself, such as borders, rounded corners, or shadows.

debug

Optional. Default: false. Set debug to true to log diagnostic messages to the browser console. Use this setting during setup. Set it to false in production.

style and class

Optional. Style the outer container around the widget, like any other HTML element. To style the widget frame itself, use iframe-style instead.

Standard iframe attributes

Optional. Standard iframe attributes such as title, loading, allow, sandbox, and referrerpolicy are passed straight through to the widget frame. We recommend always setting title so the widget is accessible to screen readers.