Coveo for Sitecore 5 is now available!

Using Sitecore Personalization With Coveo

Customization allows you to change a search interface by statically changing its look and feel. On the other hand, personalization allows you to dynamically change a search interface based on some external conditions. For example, you may want your facets to appear and behave differently depending on:

  • The device that is currently being used.
  • The location of the current visitor.
  • The type of the current visitor (i.e., its Pattern Card).

This page covers how you can dynamically change the look and feel of a component based on external conditions.

The following steps will allow you to use Sitecore personalization with Coveo.

Each example builds on the previous one, so make sure to complete all of them in order.

Hiding a Component Based on Specific Conditions

You can hide a Coveo Facet component whenever you are using a mobile device.

  1. Preview your Coveo Search Page using the Page Editor.
  2. Choose the Edit mode.
  3. Select the Coveo Facet component.
  4. Edit the personalization options of the component.

  5. In the Personalize the Component dialog, choose New Condition.
  6. Name it Hidden on Mobile.
  7. Choose Edit.

  8. In the Rule Set Editor dialog, among the Device Detection rules, choose where the device is mobile and click OK.
  9. Back in the Personalize the Component dialog, check Hide Component.
  10. Choose OK.
  11. In the floating toolbar for the Coveo Facet component, choose the Hidden on Mobile condition.
  12. Validate that your Coveo Facet component is now hidden.

Changing a Component Parameters Based on Specific Conditions

Here is how you can change the parameters of a Coveo Facet component whenever you are using a mobile device. By doing so, you are modifying the condition that you created in the previous section.

Step 1 - Create a Facet Parameters item

To create a facet parameters item, see Creating a Custom Components’ Parameters.

Step 2 - Create a Condition That Uses Your New Facet Parameters Item

  1. Preview your Coveo Search Page using the Page Editor.
  2. Choose the Edit mode.
  3. Select the Coveo Facet component.
  4. Edit the personalization options of the component.
  5. In the Personalize the Component dialog, change the name of the Hidden on Mobile condition for Customized Parameters.
  6. Uncheck the Hide Component option.
  7. Next to Personalize Content, click the ellipsis button.

  8. In the Select the Associated Content dialog, choose the /sitecore/Content/Home/Coveo Misc/Component Parameters Templates/Default Facet Parameters content item and click OK.
  9. Back in the Personalize the Component dialog, choose OK.
  10. In the floating toolbar for the Coveo Facet component, choose the Customized Parameters condition.
  11. Validate that your Coveo Facet component now displays only three values, instead of the default value of 10.

Personalizing a Component Based on the Current Visitor

In addition to the Device Detection rules that we used in the previous examples, you can also use the Profiles and Patterns rules. These are related to the Digital Marketing System (DMS).

This means that, depending on the Pattern Card associated with the current visitor, you can change the appearance and properties of your components.