Skip to content

ConnectEmbedsOptions

optional attribution?: Attribution | (() => Attribution | undefined)

Where the visitor came from, the tags of the link they followed, handed to the form frame with the token so a submission can be attributed to its campaign. A value, or a function asked each time a frame is answered. Defaults to the utm_source, utm_medium and utm_campaign of this page’s own address; pass your own to give a first touch you kept from an earlier page. This SDK stores nothing. The frame cleans it again; the text is untrusted.


optional formsOrigin?: string | readonly string[]

The origin(s) the form frames are served from. Defaults to DEFAULT_FORMS_ORIGIN.


optional signal?: AbortSignal

Stops answering frames.


optional window?: EmbedsWindow

For tests.