September 15, 2023
Question
Product/Merchandise eVars and events in xdm.productListItems not working
- September 15, 2023
- 1 reply
- 779 views
Hello Guys,
I found a similar topic: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-platform-data/support-for-merchandising-evars-in-xdm-productlistitems/m-p/436035#M3699
I implemented it like mentioned on: https://experienceleague.adobe.com/docs/analytics/implementation/aep-edge/variable-mapping.html?lang=en# but it seems that it is not mapped.
Example:
"productListItems": [
{
"SKU": "1111",
"quantity": 3,
"currencyCode": "EUR",
"name": "X1",
"priceTotal": 5.7,
"lineItemId": "Small Sortiment|Baby",
"_experience": {
"analytics": {
"customDimensions": {
"eVars": {
"eVar1": "X1"
}
},
"event1to100": {
"event1": {
"value": "TEST"
}
}
}
}
},
{
"SKU": "2222222",
"quantity": 3,
"currencyCode": "EUR",
"name": "Baby Oil",
"priceTotal": 371.7,
"lineItemId": "Small Sortiment|Baby",
"_experience": {
"analytics": {
"customDimensions": {
"eVars": {
"eVar1": "Baby Oil"
}
},
"event1to100": {
"event1": {
"value": "TEST"
}
}
}
}
}
]
}I can see in the Session Debugger, that the analytics.mapping is doing the following:
"c.a.x.productlistitems.[0]._experience.analytics.customdimensions.evars.evar1": "X1",
"c.a.x.productlistitems.[0]._experience.analytics.event1to100.event1.value": "TEST",
"c.a.x.productlistitems.[0].currencycode": "EUR",
"c.a.x.productlistitems.[0].lineitemid": "Small Sortiment|Baby",
"c.a.x.productlistitems.[0].name": "X1",
"c.a.x.productlistitems.[0].pricetotal": "5.7",
"c.a.x.productlistitems.[0].quantity": "3",
"c.a.x.productlistitems.[0].sku": "1111",
"c.a.x.productlistitems.[1]._experience.analytics.customdimensions.evars.evar1": "Baby Oil",
"c.a.x.productlistitems.[1]._experience.analytics.event1to100.event1.value": "TEST",
"c.a.x.productlistitems.[1].currencycode": "EUR",
"c.a.x.productlistitems.[1].lineitemid": "Small Sortiment|Baby",
"c.a.x.productlistitems.[1].name": "Baby Oil",
"c.a.x.productlistitems.[1].pricetotal": "371.7",
"c.a.x.productlistitems.[1].quantity": "3",
"c.a.x.productlistitems.[1].sku": "2222222",I additionally can see in the pl parameter of the analytics.mapping:
Small Sortiment|Baby;1111;3;5.7;event1=TEST;evar1=X1,Small Sortiment|Baby;2222222;3;371.7;event1=TEST;evar1=Baby OilAnd in the resulting generic (com.adobe.analytics.hitdebugger) it looks like this:
product-string: Small Sortiment|Baby;1111;3;5.70,Small Sortiment|Baby;2222222;3;371.70
products: Small Sortiment|Baby;1111;3;5.70,Small Sortiment|Baby;2222222;3;371.70Why is this not mapped automatically the eVars and events from the products?
Thank you!
PS: I Added all from the debugger as an attachment!