During the setup of the Adobe Analytics integration you should have created 3 events : recommendation_show, recommendation_add_to_cart, recommendation_go_to_page and 2 evars : recommendation_id, recommendation_item_ids.
These events should be fired as follow :
recommendation_show
When one or many recommendations are shown to a visitor. The recommendation_id evar must contain all recommendation ids separated by a pipe |. The evar recommendation_item_ids must be empty.
Example :
If the visitor saw the recommendations
34fbd69c-ffe6-42c1-93af-ebc2c21693b0
and 177b1e48-3559-4629-94d5-aa8970549a01
, you should send an event recommendation_show and the evar recommendation_id with the value 34fbd69c-ffe6-42c1-93af-ebc2c21693b0|177b1e48-3559-4629-94d5-aa8970549a01
recommendation_add_to_cart
When a visitor add a product displayed in a recommendation banner in his cart.
The recommendation_id evar must the recommendation’s id. The evar recommendation_item_ids must contain the id of the product added to the visitor’s cart.
Example :
If the visitor added to his cart the product
123
from the recommendation 34fbd69c-ffe6-42c1-93af-ebc2c21693b0
, you should send an event recommendation_add_to_cart, the evar recommendation_id with the value 34fbd69c-ffe6-42c1-93af-ebc2c21693b0
and the evar recommendation_item_ids with the value 123
.recommendation_go_to_page
When a visitor click on a product displayed in a recommendation banner.
The recommendation_id evar must the recommendation’s id. The evar recommendation_item_ids must contain the id of the product clicked by the visitor.
Example :
If the visitor clicked on the product
123
from the recommendation 34fbd69c-ffe6-42c1-93af-ebc2c21693b0
, you should send an event recommendation_go_to_page, the evar recommendation_id with the value 34fbd69c-ffe6-42c1-93af-ebc2c21693b0
and the evar recommendation_item_ids with the value 123
.