The scope of this blog post is to give an idea about personalization in Sitecore, why it’s required and steps to create and configure personalization for the components, this is for beginners who are trying to understand the concept and how it can be implemented.
Personalization enables you to deliver targeted content to your visitors. For example, you can implement rules that show personalized content to visitors based on their browsing behavior and their accumulated profile values.
This is really important as you don’t want to show something to users which really doesn’t makes any sense to them.
As an example- For an e-Commerce application as an business you want to show relevant information to users to get most of the conversions, this depends on number of factors, some of them includes:
- User behavior
- Goals users have triggered.
- Anonymous Vs Logged in users
- Based on Subscription
- Showing different banner images.
Sitecore XP lets you choose from several personalization approaches:
- Rules-based personalization: You define the conditions under which content is delivered to a customer. For example, you can set rules based on the IP address or physical location of your visitors, the keywords they use to reach your site, their mobile device, or the goals that they achieve on your website to determine the content that is displayed.
- Adaptive personalization- Use visitor profiles and pattern-card matching to dynamically adapt the content shown to visitors in real time. You can set adaptive personalization rules in Sitecore XP’s Rules Set Editor.
- Historical personalization: You can set rules that personalize content based on a contact’s historical or past behavior, rather than their actions from the current session (after all, context is what comes before and after the present).
- Test and then personalize: With Sitecore XP, you can use A/B and multivariate testing to assess your content and use the test results to optimize for conversion rates against your site’s goals. You can also use testing to assess which type of content works best with certain segments of your visitors.
- Journey-based personalization: Design user journeys with Sitecore XP using advanced business logic, and use them to help assess where your customers are in their journey with your brand. Then you can use triggers to advance them through their journeys in context of how far along they are.
We use Rule set editor (https://doc.sitecore.net/sitecore_experience_platform/digital_marketing/personalization/the_rule_set_editor ) to set the rules and action to perform and configure personalization for the individual components.
There are several out of the box categories which we can use to personalize the components, which includes:
- Visit and etc.
Personalizing the Component:
In order to personalize the component we have to make sure that the component which you are targeting to personalize should support datasource, this would help us in assigning different contents based on different criteria set.
Here are the steps to configure personalization for specific component(s):
- Select the component that you want to personalize, you can select the component either from presentation or from Experience editor.
- Select the component and click on Personalize button.
- Click on the “New Condition” button and add the rule which you want to add based on the requirement.
- Click on Edit button and add the rule.
- As an example- i am adding the rule which is based on field name compares to specific value.
- We can also define the default or fallback component datasource, if none of the conditions matches the default will be used.
- Once the configurations are done on the component, we can see an indicator in the presentation which shows that personalization has been applied to the specific rendering/component.
- We can personalize the component from experience editor as well.
- Now based on the condition which is added on the component, related content will be rendered else the default content will be displayed.
There are certain scenarios where out of the box personalization which are available are not enough to handle the business scenarios, in those cases we have to think about creating custom personalization rules.
We need to create a class that inherits from Sitecore.Rules.Context and implement the Execute() method,and this is where all the business rule exits for the custom rule. We will be covering in a separate blog post about how to create custom personalization rule and applying it on the renderings.
Hope this helps.
Happy learning and wish you all a very Happy New Year 2018 🙂