Personalization with http cookies
I've been searching for a solution. I'd like to leverage the personlization module of sitefinity but use a cookie value instead of IP address or Profile data. Ideally I want to add a dropdown on the front-end of the my site so a user can pick their 'audience' type. This would set a http cookie so I could then leverage when creating personalized content in pages.
Bumping since I posted this right before the weekend.
To clarify, I'm looking to add a custom characteristic when creating a user segment. This characteristic would just look at a cookie value set by the user when a dropdown is selected in the global nav. It's function would allow the user to set their 'audience' type so we may personalize their experience, without forcing the user to login/register an account.
Is this possible, or could someone point me in the right direction?
Hello,
Yes this is possible. Please refer to the following blog post.
Also I'm attaching a sample implementation for a CustomEvaluator that extends the default SearchKeywordsEvaluator. It can be registered to Sitefinity the following way in the Global.asax file:
protected
void
Application_Start(
object
sender, EventArgs e)
Telerik.Sitefinity.Abstractions.Bootstrapper.Initialized += Bootstrapper_Initialized;
protected
void
Bootstrapper_Initialized(
object
sender, Telerik.Sitefinity.Data.ExecutedEventArgs args)
ObjectFactory.Container.RegisterType(
typeof
(ICriterionEvaluator),
typeof
(CustomEvaluator),
PersonalizationConstants.CriteriaName.SearchKeywords,
new
ContainerControlledLifetimeManager(),
new
InjectionConstructor());
Ah yes, this should help a ton. Thank you very much.
Hello Joe,
I am glad to hear the solution provide by Martin was useful.
I am closing the ticket for now. Feel free to reopen it if further assistance is needed.
Regards,
Stefani Tacheva
Telerik