Using the Data Layer

Greenback data available

Here is a full list of the events and data available.

Event name

When it’s fired

Event details

Event name

When it’s fired

Event details

greenback.view

upon widget load

jump to details

greenback.opened

upon widget opened

jump to details

greenback.1stMessageSent

upon the first 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.closed

upon widget closed

jump to details

Event details

greenback view

event name: greenback.view

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

Data variable

example

Description

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 opened

event name: greenback.opened

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

Data variable

example

Description

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

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

Data variable

example

Description

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.message

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

first message content

greenback products recommended

event name: greenback.productsRecommended

Data variable

example

Description

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.message

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

the message that triggered the product recommendation

greenback.products(array)

 

all the products recommended by greenback

greenback product click

event name: greenback.productClick

Data variable

example

Description

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.sku

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

Data variable

example

Description

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.products

 

all the products recommended by greenback

greenback.sku

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.position

1

the position of the product ranked in the recommended products

greenback closed

event name: greenback.closed

Data variable

example

Description

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