Visitor — Pass User Context

The Pass User Context message enables the host app / environment to pass visitor information to the LiSA Player.

This message is sent by the host app / environment to the LiSA Player.

Properties

Along with all standard Message properties, a Pass User Context message includes the following additional properties:

Name
Type
Description

avatarUrl

Optional.

The avatarUrl property is used to provide a URL pointing to an image that represents the visitor's avatar.

Ensure the image URL points to a properly hosted and publicly accessible resource to avoid display issues.

displayName

Optional.

The displayName property is used to specify the current visitor's display name, which will be shown in comments.

id

Required.

The id property is used to define the current visitor's unique identifier within the user management system of the host app or environment. This identifier will be associated with the visitor's session in LiSA.

isCommentsConsentRequired

Optional.

This property indicates whether the visitor is required to consent to the comments policy before being allowed to post comments. Default value: true

messageType

Required.

lsc:visitor:pass-user-context

trackingParameters

Optional.

The trackingParameters property is an object containing extra parameters that will be appended to all social sharing URLs.

Please refer to TrackingParameters for detailed information.

Legacy Properties

Name
Type
Description

action

Required.

join ⚠️ Please use messageType instead.

avatar

Optional.

The avatar property is used to provide a URL pointing to an image that represents the visitor's avatar.

Ensure the image URL points to a properly hosted and publicly accessible resource to avoid display issues. ⚠️ Please use avatarUrl instead.

consent

Optional.

This property indicates whether the visitor is required to consent to the comments policy before being allowed to post comments. Default value: true ⚠️ Please use isCommentsConsentRequired instead.

editable

Optional.

This property indicates whether the visitor can edit their username in the comments. Default value: true ⚠️ This property is no longer supported in Player Version 2.

name

Optional.

The name property is used to specify the current visitor's display name, which will be shown in comments. ⚠️ Please use displayName instead.

target

Required.

user ⚠️ Please use messageType instead.


Type Definition


TrackingParameters

The TrackingParameters object lets you include custom parameters in the player, which will be appended to all social sharing URLs.

Example

Last updated