Creating personalizations in Edit mode

November 14, 2023

You can create personalized experiences directly in Jahia in Edit mode. You can create personalizations for content on a page or for an entire page. You create a personalization by adding additional content items to an area in a page or by adding new pages, which are called variants. Then you specify the conditions under which variants display to different users.

Personalizing content on a page

You can apply a personalization to a content item in Edit mode.

To create a personalized experience:

  1. Navigate to a website page that is powered by Jahia.
  2. On the page, right-click on the content where you want to create a personalized experience. Select Add personalization.
    adding_personalization_to_content_01.png

    A box surrounds the content and a toolbar displays.
    adding_personalization_to_content_02.png
  3. Next, add other content items inside the personalized section. To add content, click the button at the top-right of the content item. In this example, the News entry button displays.
  4. In the New Content page, enter information for the new page.
    Note: When you add content, the number in the toolbar updates.
  5. Use the previous and next arrows to navigate between content items. The name of the current item displays in a button.
  6. To edit content, right-click and select Edit to open the content in Edit Mode.
  7. Click Save.

Next, specify conditions that define when a variant displays.

Personalizing a page

You can apply a personalization at the page level in Edit mode.

To personalize a page:

  1. From Jahia, right-click on the page that you want to personalize. Then select Add personalization.
    A toolbar displays at the top-right of the page.
  2. To add a new page variant, click Add. The existing page is copied as a new page variation.
  3. To edit the properties of the new page variation, click Edit Variant Name. You can also use the left and right arrows on the toolbar to navigate between variants.
  4. To specify how the pages display to users, you must edit the first page variant. Select Edit from the Page Options menu at the top right of the page.
    edit_first_page_variant.png
  5. In the Edit Content page, modify the page and click Save.

Next, specify conditions that define when a variant displays.

Specifying how a variant displays to users 

After creating a variant, you define settings that specify when the variant is served to visitors who access the page.

To define a personalization setting for a variant:

  1. To specify how the pages display to users, you must edit the first page variant. Select Edit from the Page Options menu at the top right of the page.
    edit_first_page_variant.png
  2. In the Edit Content page, modify the page and click Save.
  3. On the Edit Content page, select Content.
    edit_first_variant_content.png
  4. Specify the variant's system name, whether the variant is active, and start and end dates for the personalization.

    Field

    Usage

    System name

    Name of the variant in the repository

    Active

    Whether the personalization is active. Selected by default. Deselect to make the personalization inactive.

    Starts on

    The date and time that the personalization will start. If the field is empty, the personalization will start immediately (as soon as the page is published)

    Ends on

    The date and time that the personalization will stop. If the field is empty, the personalization is active unless stopped by a manual action.

  5. To define when the variant displays to users, select the Variant conditions tab.
    edit_variant_conditions.png
  6. To specify how variants are evaluated by conditions, choose one of the following from the Type list:
    select_variant_display_type.png
    • First content matching conditions
      Displays the first item in the Variants list that has a condition that matches the current profile and context.
    • Random content
      Displays content randomly from all items in the Variants list that match conditions specified for the personalization.
    • Sorted by score
      Displays content with the highest score. Each condition must be associated with a score.
  7. To specify the fallback variant, select the check box beside a variant. The fallback variant is the variant that displays if criteria for a visitor does not match any of the variants.
  8. To change the order of variants in the Variants list, drag and drop variants in the Variants list to reorder them.
    variant_conditions_drag_and_drop.png
  9. To specify matching conditions for variants, see Condition builder for more information on how to build conditions on a page.
  10. Click Save.