AEM Product recommendation CIF component
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?