AEP -> Analytics mapping of product category | Community
Skip to main content
Level 2
July 26, 2022
Solved

AEP -> Analytics mapping of product category

  • July 26, 2022
  • 2 replies
  • 1145 views

Hi all

I am currently migrating a client's website to Launch / WebSDK / AEP. One question that arose is how to map the products into the XDM to automatically send data to Analytics. We have the _experience schema enabled to map props, eVars and events. What's my biggest issue now is how to get the product category from the s.products string into XDM?

According to this link https://experienceleague.adobe.com/docs/analytics/implementation/vars/page-vars/products.html?lang=en it should be possible as lineItemId property in the productListItems items. However, the XDM does not show this property whereas name, quantity and and priceTotal are. 

Is this some kind of bug? lineItemId sounds somehow wrong as a value of a product category?

UPDATE: I may have missed the piece of information in the BIG BOX... 🤣

 

 

Cheers

Björn

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Anil_Umachigi

Hey Bjorn! 

You are right, it does not show up in the schema but does work when you pass it. 

I tried it and worked alright, should be in the same level as out of box properties "SKU" , name etc.. 

Here's how it will look, it should then be mapped to cat part of products.  

[
  {
    lineItemId: "sneakers",
    name: "asics-gel-kayano",
    quantity: 1,
    priceTotal: 199,
...otherVars
} ]

 

2 replies

Anil_Umachigi
Adobe Employee
Anil_UmachigiAdobe EmployeeAccepted solution
Adobe Employee
July 26, 2022

Hey Bjorn! 

You are right, it does not show up in the schema but does work when you pass it. 

I tried it and worked alright, should be in the same level as out of box properties "SKU" , name etc.. 

Here's how it will look, it should then be mapped to cat part of products.  

[
  {
    lineItemId: "sneakers",
    name: "asics-gel-kayano",
    quantity: 1,
    priceTotal: 199,
...otherVars
} ]

 

b_kothAuthor
Level 2
July 27, 2022

Thank you Anil, that helps a lot!

Just looks funky that Adobe is missing out this "little" piece of information in their XDM schema so you are practically forced to pass in the whole array of product objects (fair enough, who wouldn't :D) 

Cheers

Björn

yuhuisg
Community Advisor
Community Advisor
July 27, 2022