Creating personalizations in Page Composer

November 14, 2023

You can create personalized experiences directly in Jahia using Page Composer. This can be done either for individual content on a page or the entire page itself.  This is done by adding additional content items to an area in a page or by adding new pages, which are called variants. You then 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 Page Composer.

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 Page Composer.
  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 Page Composer.

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.
    Adding variant personalization
  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.
    Page Options
  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 Personalization menu at the top right of the page.
    Variant Edit Personalization
  2. On the Edit page, scroll down to the Options section.
    Naming Variant
  3. Specify the variant's system name, then click Save.

    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.

  4. To define when the variant displays to users, select the Edit Personalization tab from the same menu as Step 1:
  5. Personalization Menu
  6. From here, you can  specify whether the variant is active and start and end dates for the personalization.To specify how variants are evaluated by conditions, choose one of the following from the Display Strategy 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 Reorder
  9. To specify matching conditions for variants, see Condition builder for more information on how to build conditions on a page.
  10. Click Save.