(blue star) Data available

Here is a full list of the events and data available for the AI Shopping Assistant.

Event name

When it’s fired

Event details

greenback.view

upon widget load

jump to details

greenback.externalTrigger

upon external trigger is interacted

jump to details

greenback.opened

upon widget opened

jump to details

greenback.1stMessageSent

upon the first message sent

jump to details

greenback.messageSent

upon the message sent

jump to details

greenback.productRecommended

upon product recommended

jump to details

greenback.productClick

upon product clicked in the recommendation

jump to details

greenback.addToCart

upon clicking the add to cart button

jump to details

greenback.restart

upon clicking restart button

jump to details

greenback.closed

upon widget closed

jump to details

(blue star) Event details

greenback view

event name: greenback.view

note

This event is fired whenever the greenback widget is loaded. It will fire each time the widget is viewed.

This event is fired whenever the greenback widget is loaded. It will fire each time the widget is viewed.

Data variable

example

Description

greenback.visitorId

51c297fd-cbaf-402f-84b6-5a30ceb87ee7

the visitor’s device ID

greenback.sessionId

8FD4AF3A-3061-4BB3-0618-08D9775347C8

the visitor’s session ID

greenback.page

https://preezie.com/

the page URL of the widget was loaded

greenback external trigger

event name: greenback.externalTrigger

note

This event is fired whenever an external trigger activates the greenback widget. It will fire each time the external trigger is called.

This event is fired whenever an external trigger activates the greenback widget. It will fire each time the external trigger is called.

Data variable

example

Description

greenback.visitorId

51c297fd-cbaf-402f-84b6-5a30ceb87ee7

the visitor’s device ID

greenback.sessionId

8FD4AF3A-3061-4BB3-0618-08D9775347C8

the visitor’s session ID

greenback.page

https://preezie.com/

the page URL of the widget was loaded

greenback.message

Can you recommend me a T-shirt in navy colour?

message content

greenback.triggerType

pdp

external trigger type

greenback opened

event name: greenback.opened

note

This event is fired when the Greenback widget trigger is clicked and the chat window opens.

This event is fired when the Greenback widget trigger is clicked and the chat window opens.

Data variable

example

Description

greenback.visitorId

51c297fd-cbaf-402f-84b6-5a30ceb87ee7

the visitor’s device ID

greenback.sessionId

8FD4AF3A-3061-4BB3-0618-08D9775347C8

the visitor’s session ID

greenback.page

https://preezie.com/

the page URL of the widget was loaded

greenback 1st message sent

event name: greenback.1stMessageSent

note

This event is fired when the first message from user is sent.

This event is fired when the first message from user is sent.

Data variable

example

Description

greenback.visitorId

51c297fd-cbaf-402f-84b6-5a30ceb87ee7

the visitor’s device ID

greenback.sessionId

8FD4AF3A-3061-4BB3-0618-08D9775347C8

the visitor’s session ID

greenback.page

https://preezie.com/

the page URL of the widget was loaded

greenback.message

Can you recommend me a T-shirt in navy colour?

first message content

greenback message sent

event name: greenback.messageSent

note

This event is fired when a message from user is sent.

This event is fired when a message from user is sent.

Data variable

example

Description

greenback.visitorId

51c297fd-cbaf-402f-84b6-5a30ceb87ee7

the visitor’s device ID

greenback.sessionId

8FD4AF3A-3061-4BB3-0618-08D9775347C8

the visitor’s session ID

greenback.page

https://preezie.com/

the page URL of the widget was loaded

greenback.message

Can you recommend me a T-shirt in navy colour?

message content

greenback products recommended

event name: greenback.productsRecommended

note

This event is fired when the Greenback recommends products to the user.

This event is fired when the Greenback recommends products to the user.

Data variable

example

Description

greenback.visitorId

51c297fd-cbaf-402f-84b6-5a30ceb87ee7

the visitor’s device ID

greenback.sessionId

8FD4AF3A-3061-4BB3-0618-08D9775347C8

the visitor’s session ID

greenback.page

https://preezie.com/

the page URL of the widget was loaded

greenback.message

Can you recommend me a T-shirt in navy colour?

the message that triggered the product recommendation

greenback.products(array)

[{id: "123", name: "active wear", price: "20.99", position: 1}, {id: "433", name: "sports wear", price: "201.99", position: 2}]

all the products recommended by greenback

greenback product click

event name: greenback.productClick

note

This event is fired when one of the recommended products is clicked.

This event is fired when one of the recommended products is clicked.

Data variable

example

Description

greenback.visitorId

51c297fd-cbaf-402f-84b6-5a30ceb87ee7

the visitor’s device ID

greenback.sessionId

8FD4AF3A-3061-4BB3-0618-08D9775347C8

the visitor’s session ID

greenback.page

https://preezie.com/

the page URL of the widget was loaded

greenback.id

SKU1234

the SKU of the product clicked

greenback.name

Active Sports T-shirt Size L

the name of the product clicked

greenback.price

20.99

the price of the product clicked

greenback.position

1

the position of the product ranked in the recommended products

greenback add-to-cart

event name: greenback.addToCart

note

This event is fired when the user adds one of the recommended products to the cart.

This event is fired when the user adds one of the recommended products to the cart.

Data variable

example

Description

greenback.visitorId

51c297fd-cbaf-402f-84b6-5a30ceb87ee7

the visitor’s device ID

greenback.sessionId

8FD4AF3A-3061-4BB3-0618-08D9775347C8

the visitor’s session ID

greenback.page

https://preezie.com/

the page URL of the widget was loaded

greenback.id

SKU1234

the SKU of the product added to the cart

greenback.name

Active Sports T-shirt Size L

the name of the product added to the cart

greenback.price

20.99

the price of the product added to the cart

greenback restart

event name: greenback.restart

note

This event is fired when a user restart the chat.

This event is fired when a user restart the chat.

Data variable

example

Description

greenback.visitorId

51c297fd-cbaf-402f-84b6-5a30ceb87ee7

the visitor’s device ID

greenback.sessionId

8FD4AF3A-3061-4BB3-0618-08D9775347C8

the visitor’s session ID

greenback.page

https://preezie.com/

the page URL of the widget was loaded

greenback closed

event name: greenback.closed

note

This event is fired when a user closed the chat window.

This event is fired when a user closed the chat window.

Data variable

example

Description

greenback.visitorId

51c297fd-cbaf-402f-84b6-5a30ceb87ee7

the visitor’s device ID

greenback.sessionId

8FD4AF3A-3061-4BB3-0618-08D9775347C8

the visitor’s session ID

greenback.page

https://preezie.com/

the page URL of the widget was loaded