Personalization with http cookies

Posted by Community Admin on 04-Aug-2018 19:02

Personalization with http cookies

All Replies

Posted by Community Admin on 18-Oct-2013 00:00

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.


Posted by Community Admin on 21-Oct-2013 00:00

Bumping since I posted this right before the weekend.

Posted by Community Admin on 21-Oct-2013 00:00

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?

Posted by Community Admin on 23-Oct-2013 00:00

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());


Regards,
Martin Gebov
Telerik
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Posted by Community Admin on 23-Oct-2013 00:00

Ah yes, this should help a ton.  Thank you very much.

Posted by Community Admin on 28-Oct-2013 00:00

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

Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

This thread is closed