This documentation is still in progress. We are working hard to update all our screenshots to the new Magnolia 6 style. Please bear with us.
The Preview app allows you to test personalized content. You can impersonate a visitor to verify that the correct page variant is served. The impersonated visitor can be a persona or a mix of local traits. The Preview app looks just like the preview in the Pages app but it has a sidebar for selecting the persona and traits.
The Preview app is configured in Configuration >
|URL parameters used for personalization have a special prefix that sets them apart from other parameters. The |
|A URL parameter that identifies the persona. Magnolia sets the parameter value to the name of the persona you select in the Preview app. The default parameter name is |
Example: Previewing a page as Peter Klang (persona) on June 18, 2015 in the Preview app. Multiple parameters are separated with colon (:) in the Preview app and with ampersand (&) if you request the published page.
To preview a page variant:
- Open the Preview app.
- In the Preview app, go to a page that has a variant. If the original page is served instead of the variant this is probably because you are impersonating an anonymous user by default. The anonymous user likely does not match the audience of the variant.
- Select a persona that matches the audience or select local traits that match the audience. The variant is now served.
See My first personalized campaign for a full hands-on tutorial that includes previewing page variants.