...
Depending on what action you performed you will see preezie greenback events fired (full details) for:
greenback.view - fired everytime greenback widget is loaded
greenback.opened - fired everytime someone opened chat window
greenback.1stMessageSent - fired everytime someone sent a first message
greenback.productRecommended - fired everytime products are recommended
greenback.productClick - fired everytime someone clicks on a product
greenback.addToCart - fired if someone adds a product to the cart from the widget
greenback.closed - fired when someone closed the widget
...
Variables > User-Defined Variables > New
Give it a name of greenback.visitorIdproducts
Click Variable Configuration > Data Layer Variable
...
In Data Layer Variable Name enter greenback.visitorIdproducts hit Save
...
Repeat these 4 steps to create the other 7 3 data layer variables needed:
Variable name (8 Data Layer Variables) | Data Layer Variable Name | What it captures |
---|---|---|
greenback.visitorId | preezie.trigger | How the journey was triggered (note, workflow = embedded) |
greenback.sessionId | preezie.workflow | The name of the journey|
greenback.pagepreezie.selector | The name of the journey connector (aka a workflow selector) | |
greenback.message | preezie.ref | The short version of the question |
greenback.products(array) | preezie.answerproducts | The text of each answer the user givespreezieproducts recommended |
greenback.productid | preezie.product.uniqueid | The unique id of the clicked product in the results recommended products (as defined by your product feed attributes in the preezie CMS) |
preeziegreenback.position | preezie.product.position | The position the clicked product was ranked in the recommendation resultsproducts |
preeziegreenback.productname | preezie.product.name | The name of the product that was clicked on. Note, you can add/change if you have other product attributes you need as shown in your data layer, e.g. price: |
Now to join the above to Data Layer events, repeat the above steps 5 4 times but instead use variable type Custom Event - just ensure the variable names match these below:
Variable name (Custom Event) | What it captures | |
---|---|---|
preeziegreenback.loadview | When the widget greenback loads | |
preezie.click | An answer click | |
preezie.completed | A completion click | |
preezie.resultclickgreenback.opened | When the chat model opened | |
greenback.1stMessageSent | When the 1st message sent | |
greenback.productRecommended | Products recommended | |
greenback.productClick | A click on a product recommendation | |
preezie.email | If an email address was captured at the end of the journeygreenback.addToCart | When add-to-cart is performed |
greenback.closed | When widget is closed |
You now have your new variables, they should look like this:
...