Using native integration, we were able to track products recommendations clicks by following this documentaion: https://world.episerver.com/documentation/developer-guides/commerce/personalization/recommendations/tracking-and-recommendations/
Above documentaion assumes that customers will click on a product, returned from Perform engine, then they will be redirected to product details page where the tracking is taken place. (RecommendationId is added to the URL)
My question is how the tracking would work if AddToCart button is shown within recommened products thumbnail. The customer will not be redirected to product details page but item will be added to the cart directly. How can we show, in Perform portal, that this product was added to cart because of a recommendation by EPiServer Perform? Maybe it is happening already, I am just asking to make sure we didn't miss anything.
I'd first suggest familiarising yourself with the following articles
You don't need to rely on controller attributes etc. you can fire off tracking events however you wish.
For a working example of using both attributes and then custom server-server tracking, look not further than Quicksilver (https://github.com/episerver/Quicksilver).
So whether you want to fire off a clientside track or any controller method track - you can do this exactly when and how you like.
Thanks Marcus for your reply!
The working example in QuickSilver taking into consideration that item will be clicked and user will be redirected to product details page where they can get the RecommendationId from the context.
I think this same as what is mentioned in this documentation:
In our website, we have AddToCart button displayed within the recommended product thumbnail. Customer can click add to cart directly without going to product details page. How can we track that this item was added to cart because of EPiServer Perform recommendation?
Check out this page: https://world.episerver.com/documentation/developer-guides/tracking/product-tracking/ - specifically the section titled 'Tracking without using the CommerceTrackingAttribute'
What you should do is
Makes sense Marcus!
Thanks and appreciate your help.