+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Personalization with http cookies

Personalization with http cookies

6 posts, 0 answered
  1. Joe
    Joe avatar
    21 posts
    Registered:
    01 Dec 2010
    18 Oct 2013
    Link to this post
    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.


  2. Joe
    Joe avatar
    21 posts
    Registered:
    01 Dec 2010
    21 Oct 2013
    Link to this post
    Bumping since I posted this right before the weekend.
  3. Joe
    Joe avatar
    21 posts
    Registered:
    01 Dec 2010
    21 Oct 2013
    Link to this post
    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?
  4. Martin Gebov
    Martin Gebov  avatar
    15 posts
    Registered:
    03 Nov 2016
    23 Oct 2013
    Link to this post
    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
  5. Joe
    Joe avatar
    21 posts
    Registered:
    01 Dec 2010
    23 Oct 2013 in reply to Martin Gebov
    Link to this post
    Ah yes, this should help a ton.  Thank you very much.
  6. Stefani Tacheva
    Stefani Tacheva avatar
    718 posts
    Registered:
    06 Dec 2016
    28 Oct 2013
    Link to this post
    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
6 posts, 0 answered