Guides
...
Platform communication
Window postMessage API

CarouselItemMessage

4min

Carousel item messages describe specific actions in the carousel domain that are either received from the context that LiSA is integrated in or sent by LiSA.

Message definition

The message target of an carousel item message is carousel.item.

A carousel item message contains a universally unique identifier of the carousel item assigned by LiSA, detailed information of the carousel item.

In case of a product item the message payload contains information relevant to opening the product’s PDP or quick view. Such as a unique product ID assigned by the customer’s ecommerce system, and/or a URL that either addresses the product’s PDP or contains a custom value to be processed by the embedding context.

TypeScript


Message actions

LiSA accepts/exposes the following carousel item actions:

Action

Description

Direction of communication

click

Viewer clicks an item in the carousel.

LiSA to X

close

Viewer closes a product detail page.

LiSA to X, X to LiSA

cta

Viewer clicks the carousel item CTA.

LiSA to X

impression

Carousel item appears in the visible view port.

LiSA to X

like.grant

Viewer clicks the carousel item like CTA.

LiSA to X, X to LiSA

like.revoke

Viewer un-clicks the carousel item like CTA.

LiSA to X, X to LiSA

Examples

Listed below are examples for carousel item event payloads.

JS




Updated 25 Mar 2024
Doc contributor
Did this page help you?