Create an SEO widget

In Sitecore Discover, we strongly recommend that you add an SEO widget to a host page to expose meta information about the page's content.

You create an SEO widget in a similar way to other widgets. Based on the appearance style you choose, you must populate the widget with attribute variables. When Discover publishes the host page, it replaces the variables with actual values from your catalog.

To create an SEO widget:

  1. In the Widgets section of the CEC, on the Widgets tab, click Add Widget, and click SEO.

  2. Enter values in the Widget name, RFK ID, and Variation name fields.

  3. In the Will be used in drop-down menu, click Common across all pages and then click Next.

  4. To set up default appearance styles, select an SEO Style by clicking Choose on a style card.

  5. In the Title input field, enter meta_title and name variables, separated by a space, as shown in the following:

    RequestResponse
    {{$rfk.context.category[0].meta_title, $rfk.context.category[0].name}}
  6. In the Description input field, enter a list of category attribute variables, separated by a space, as shown in the following:

    RequestResponse
    Shop {{$rfk.context.webwidths,}} {{$rfk.context.feature_name,}} 
    {{$rfk.context.primary_color,}} {{$rfk.context.genders,}} 
    {{$rfk.context.cattype,}} {{$rfk.context.technology_feature_name,}} 
    {{$rfk.context.brands,}} {{$rfk.context.catclosure,}} 
    {{$rfk.context.category_shape,}} {{$rfk.context.category_sport,}} | Store name goes here
    
    
  7. In the Keywords input field, enter meta_keywords and name variables, separated by a space, as shown in the following:

    RequestResponse
    {{$rfk.context.category.meta_keywords, $rfk.context.category.name}}

Do you have some feedback for us?

If you have suggestions for improving this article,