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.
token (required)
Section titled “token (required)”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.
language
Section titled “language”type: string
hideOnInit
Section titled “hideOnInit”type: boolean
Set Smiley Pop-up to be hidden by default on page load.
metadata
Section titled “metadata”type: object
Send arbitrary data with user feedback. More information.