Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Quicksilver: how does recommendation click tracking work?


I found that click tracking sets cookie here:

But I am not able to find where this cookie is handled. How does it work?

Jan 23, 2018 10:18

I realized this is missing in the developer guide. I've added a task to fix that.

It is tied together by IRecommendationContext. The implementation of that service will be asked for the current recommendation ID when the next tracking request is sent. In quicksilver it is handled by a cookie as you have seen, but there may be other ways to do it.

Jan 23, 2018 10:36

I still do not understand. The cookie is set but never is read. Is there some hidden cookie reading in that IRecommendationContext?

Jan 23, 2018 10:49

It is read, in the EPiServer.Reference.Commerce.Site.Features.Recommendations.Services.RecommendationContext class. Maybe you found the NullRecommendationContext that is shipped with the framework just as a default.

It is designed this way to allow you to use whatever approach you want to track the clicks in your implementation. We considered it too complicated and invasive (to the site implementation) to add a one size fits all framework solution.

Edited, Jan 23, 2018 10:55

Thanks! Now it makes more sense. I couldn't find the cookie key anywhere in the code but it is hidden in the EPiServer.Business.Commerce.CookieHelper.

P.S. You definitely should add docs about click tracking :)

Jan 23, 2018 11:08
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.