AEM Product recommendation CIF component | Community
Skip to main content
Level 2
September 24, 2025
Solved

AEM Product recommendation CIF component

  • September 24, 2025
  • 1 reply
  • 759 views

Hello,

we have an AEM + Commerce headless architecture and we configured the Adobe Commerce Product Recommendations (https://experienceleague.adobe.com/en/docs/commerce/product-recommendations/overview)

We're trying to use AEM Product Recommendation CIF component (https://github.com/adobe/aem-core-cif-components/tree/master/extensions/product-recs/content/src/main/content/jcr_root/apps/core/cif/extensions/product-recs/components/productrecommendations/v1/productrecommendations)

Opening the component dialog we see this configuration

So, we guess the component knows how to behave according to the page template, so that it matches what configured on Commerce side

 

 

But how the component knows which Page type the current page corresponds at?

 

More, to collect behavioral data, we must track them by our self using provided SDK as stated at https://experienceleague.adobe.com/en/docs/commerce/product-recommendations/getting-started/headless, right?

 

Best answer by Karishma_begumSh

Hi @aldoc77148901 

CIF doesn’t provide PDP, PLP, or Cart templates — you must create your own AEM page templates. Each template should have a pageType property (e.g., product-page, category-page, cart-page) that the Product Recommendations component reads to apply the correct recommendation rules. Behavioral tracking is not automatic; you must implement it using the storefront-events SDK.

 

Regards,

Karishma.

1 reply

VishalKa5
Level 5
September 24, 2025

Hi @aldoc77148901 ,

 

The AEM Product Recommendations component knows the page type from the Commerce page templates (like PDP, PLP, or cart), which map to values such as product-page or category-page. This pageType is passed to Adobe Commerce so it applies the right recommendation rule. For tracking shopper behavior, AEM doesn’t send data automatically — you need to implement it yourself using the storefront-events SDK, which feeds the data needed for the recommendation engine to work.

 

Thanks & regards,

Vishal

Level 2
September 24, 2025

Can't find any of PDP, PLP, Cart template here https://github.com/adobe/aem-core-cif-components/tree/master/ui.apps/src/main/content/jcr_root/apps/core/cif/components/structure just a generic Page component.

Usually implementing templates is something custom, not included in Core Components or CIF Components.

 

So, it's not clear how CIF expects to mark a page as Product Detail, Category, Home page, Cart, Order Confirmation 

Karishma_begumSh
Karishma_begumShAccepted solution
Level 4
September 25, 2025

Hi @aldoc77148901 

CIF doesn’t provide PDP, PLP, or Cart templates — you must create your own AEM page templates. Each template should have a pageType property (e.g., product-page, category-page, cart-page) that the Product Recommendations component reads to apply the correct recommendation rules. Behavioral tracking is not automatic; you must implement it using the storefront-events SDK.

 

Regards,

Karishma.