Skip to content

Configuration

In total, Smiley Digital Embed has two mandatory and one optional configuration parameters:

type EmbedInitConfig = {
token: string;
embedTo: HTMLElement;
language?: string | 'en-US';
metadata?: {
[key as string]: string;
};
};

When configuring Smiley Pop-up, you can provide the following init settings:

type PopupInitConfig = {
token: string;
hideOnInit?: boolean;
language?: string | 'en-US';
metadata?: {
[key as string]: string;
};
};

You can read more about how to interact with Smiley Digital in the next section.

type: string

Token is provided automatically when selecting the option to Get Script and Assets from Analytics Admin. This is a required field when configuring Embed or Pop-up with extra options.

type: string

See supported locales

type: boolean

Set Smiley Pop-up to be hidden by default on page load.

type: object

Send arbitrary data with user feedback. More information.