Generic facet rules for Sitecore XP Personalization

A common rout that split into two routes after pass through a filter

The standard Sitecore installation provides a few account facet personalization rules, in particular, if there are custom facets, you will need to implement a new personalized rule that may involve code change and releases. To save time, I created a library with a set of generic rules for basic comparisons that can work with standard and custom facets:

Generic facets Personalization Rules

To download and install it click on the link and follow the readme steps: Sitecore Generic Facet Filters

Once it is installed, you will be able to create personalization rules like below:

Generic facets Personalization Rules Examples

Making custom facet conditions available on Generic Facet Filters requires two steps:

The first one is a content configuration to make it available on Generic Facets Filter Personalize, to do it open the Content Editor and go to the item on path /sitecore/system/Settings/Rules/Definitions/Elements/Generic Facet Filter Personalize, then look for the correspondent condition type (String, DateTime, or Integer) and insert the custom facet and property(ies) under Facets folder:

Personalization Rules Examples Add Custom Facets

Important! Set the Facet item name and Property item name as the same as on the custom facet.

Personalization  Rules  Examples  Add  Custom  Facets  On  Personalize  Conditions

The second step is to update Sitecore configuration to load the custom facet into session, to do it look for the config created on Generic Facet Filters package installation (\App_Config\Include\Feature\Etonon.Feature.GenericFacetFilter.config) and update it as below:

Personalization  Rules  Examples  Set  Custom  Facets  Into  Session

References

Leave a Reply

Your email address will not be published. Required fields are marked *