Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: DOCU-2700

...

alignright
classmenu

In this tutorial you learn how to personalize content. You will target content to visitors from a particular country during a specific period of time. You learn how to create page variants and how to choose an audience. You also test the campaign with the Preview app.

...

Use case: Festival tours

...

Create page variants

Include Page
DOCS56:_What is a variantDOCS56:
_What is a variant

Create two variants of the Festivals page:.

...

  1. Edit the Chinese page variant.
  2. Edit the Text and image component in main area and replace content with:
    • TitleHeadline: Dragon Boat Festival
    • Text: The Dragon Boat Festival is also known as the Duanwu Festival. It is a traditional holiday that commemorates the life and death of the famous Chinese scholar Qu Yuan. The festival occurs on the fifth day of the fifth month on the Chinese lunar calendar.
    • Imagedragonboat.jpg

...

  1. skip
  2. skip
  3. Edit the U.K. page variant.
  4. Edit the Text and image component in main area and replace content with:
    • TitleHeadline: Puck Fair
    • Text: On August 10, a three-day festival known as Puck Fair is held in Killorglin, Ireland. Residents of the town capture a goat and proclaim it to be the King for three days of revelry.
    • Imagekingpuck.jpg

...

previewParameterPrefixIdentifies the parameter as a preview parameter. Parameters used for personalization have a special prefix that sets them apart from other parameters. The default prefix is preview, for example previewPersona or previewCountry. The prefix string is configurable in /modules/personalization-preview-app/config/previewParameterPrefix.
<Parameter>Name of the parameter with first letter capitalized, for example Country or Date.
<value>Parameter value in a valid format. The format depends on the parameter. For the country trait the value is a two-letter country code (ukgbcn) and for a date it is a timestamp written as yyyy-mm-dd-hh-mm-ss such as  2016-05-26-00-00-00).

...

Code Block
languagenone
http://localhost:8080/magnoliaPublic/travel/festivals.html?previewCountry=cn&amp;previewDate=2016-05-26-00-00-00

...

Code Block
languagenone
http://localhost:8080/magnoliaPublic/travel/festivals.html?previewCountry=ukgb&amp;previewDate=2016-07-27-00-00-00

...