Fill product dimension with multiple categories | Community
Skip to main content
DS-DFA
October 13, 2022
Solved

Fill product dimension with multiple categories

  • October 13, 2022
  • 2 replies
  • 695 views

Hello,

we are implementing Adobe Analytics for our web shops, based on AEM and Adobe Commerce.

 

We already implemented successfully data pushes from the shops Data Layer, over Data Collection to Adobe Analytics.
We use the method "s.products in AppMeasurement and the Analytics extension custom code editor" desribed in the following documentation for "products":

 

https://experienceleague.adobe.com/docs/analytics/implementation/vars/page-vars/products.html?lang=en

 

Until now we skipped the category field because of one problem:
In Adobe Commerce it is possible to have a single product lying within multiple categories.
And we realy want to track all of that categories.
But it seems that the Category field under s.product just allows us to set only one category.

 

How can we manage to track multiple categories for the same product?

 

Thanks in advance!

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 Jennifer_Dungan

So you are correct that the s.products notation only allows for a single category to be passed. Some people will create Merchandising eVars to fill this need, others will use Classifications, and use the product SKU to populate the categories later (this way also allows you to re-classify the products if needed).

2 replies

thelearningproject
Level 2
October 13, 2022

Hi DS-DFA,

 

I don't think you can technically modify the category portion of s.products string with multiple categories. Have you thought about using the merchandising evars instead? 

 

Regards,

Ritesh Gupta

www.thelearningproject.in

Jennifer_Dungan
Community Advisor and Adobe Champion
Jennifer_DunganCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
October 13, 2022

So you are correct that the s.products notation only allows for a single category to be passed. Some people will create Merchandising eVars to fill this need, others will use Classifications, and use the product SKU to populate the categories later (this way also allows you to re-classify the products if needed).