/
Messenger Settings

Messenger Settings

Applying settings

Settings are applied to the messenger client via dataset attributes on the custom element. For example to change the stylesheet:

<send2crm-messenger data-stylesheet="/my_styles.css" />

Settings may also be changed via script after loading. This will cause the messenger element to re-render.

document.querySelector('send2crm-messenger').dataset.stylesheet = 'my_other_styles.css';

Available settings

Name

Default

Description

Name

Default

Description

heading

Leave a message

Displayed at the top of the expanded UI.

stylesheet

(script root)/send2crm-messager.min.css

Applied within the shadow DOM of the messenger element.

senderror

Failed to send message.

Tooltip/title displayed on input when a message send fails.

maxdays

60

Number of days previous messages to display.

rapidfreq

15

Number of seconds between rapid visitor updates during active messaging.

rapidcount

4

Number of rapid visitor updates to make before falling back to standard visitor update frequency, unless further messaging activity occurs.

inactivefreq

10

Number of minutes between forced visitor updates when no activity has occurred.