Son Do
Apr 9, 2018
(4 votes)

Personalization Find template - practice

This post describes how Find integrated with Personalization, how Find boost the result based on behavior data from Personalization – in a sample of course 😊


1. I used Quicksilver - Commerce sample site for this post.

2. Add configuration from your Personalization UAT to the site Personalization configuration

3. Make sure that the recommendation worked as expected. Recommendation on Quicksilver 4. View some product pages, so Personalization system can understand your behavior.

Verify the Personalization Find

1. Create a new personalization find test page.

2. Regarding the Personalization Find document  and Jonas' blog post, the template looks like this:

private readonly IClient _client;
private readonly UrlResolver _urlResolver;

public PersonalizedFindPageController(IClient client, UrlResolver urlResolver)
	_client = client;

public ActionResult Index(PersonalizedFindPage currentPage, string q, bool? usePersonalization = null)

	var prefData = _client.Personalization().Conventions.PreferenceRepository.Load();


4. Debug or create a new view for viewing the prefData variant, the UI should have something like this:

Personalization attributes

5. Make sure that the return attributes aren't empty. Then we can get the Personalization search result by .UsingPersonalization() for your current search query.

var resultsPersonalized = _client.Search<FashionProduct>()

6. Note that we can compare the search results by using personalization and without using personalization:

var resultsPersonalized = _client.Search()
var resultsWithoutPersonalized = _client.Search()

 The search results have different orders based on the above attributes - that's customer behavior. That is how Personalization Find works.

This practice code is kept in this compressed file:, feel free to play with it.


Just note that Recommendation and Personalization Find are applied to Commerce content only at this time. And .UsingPersonalization() on the query, it only boosts Commerce content properties. I hope this feature will be applied to CMS content soon - waiting for that (Y)


Hope this help.

/Son Do

Apr 09, 2018


Please login to comment.
Latest blogs
Update on .NET 8 support

With .NET 8 now in release candidate stage I want to share an update about our current thinking about .NET 8 support in Optimizely CMS and Customiz...

Magnus Rahl | Oct 3, 2023

Adding Block Specific JavaScript and CSS to the body and head of the page

A common requirement for CMS implementations includes the ability to embed third party content into a website as if it formed part of the website...

Mark Stott | Oct 3, 2023

Performance optimization – the hardcore series – part 1

Hi again every body. New day – new thing to write about. today we will talk about memory allocation, and effect it has on your website performance....

Quan Mai | Oct 3, 2023 | Syndicated blog

Next level content delivery with Optimizely Graph

Optimizely introduced a new product called Optimizely Graph earlier this year. We were one of the first partners to adopt this new service in a...

Ynze | Oct 2, 2023 | Syndicated blog

IDX21323 - RequireNonce is true, Nonce was null

We have multiple clients configured with Azure Active Directory (Microsoft Entra) for requiring authentication when accessing their website. The...

David Drouin-Prince | Oct 1, 2023 | Syndicated blog

Minimum Detectable Effect in Optimizely Web Experimentation

Understanding Minimum Detectable Effect Minimum Detectable Effect (MDE) is a core statistical calculation in Optimizely Web Experimentation. In...

Matthew Dunn | Oct 1, 2023 | Syndicated blog