Add a page view goal to an experiment in Sitecore Personalize
You can add a page view goal to an experiment to measure the views of a particular page, guiding strategies to improve content design. Sitecore Personalize calculates this using the VIEW event that is configured to be sent to the platform when a visitor views a page.
For example, you can create an experiment in Sitecore Personalize and add a page view goal to compare views between two variants and determine which variant results in higher page views.
For Sitecore Personalize to select the winning variant based on increased page views, add the page view goal as the experiment's first goal, setting it as the primary goal. If page views isn't the main metric but still of interest, add it as a secondary goal. All goals that follow a primary goal are automatically set as secondary goals
The Personalize API is what developers use to run interactive experiments. If you add a page view goal to an interactive experiment, ensure that your organization uses the browserId attribute when calling the Personalize API. This ensures that the goal is attributed to the correct browser session and the attribution rate is accurate when viewing performance analytics.
To add a page view goal:
-
In the experiment builder, click the Goals tile and click Add Goals.
-
In the Goals pane, click Page views.
-
In the Page views pane, in the Goal name field, enter a descriptive name for the goal. This name will display on the Performance screen.
-
In the Track pages section, select one of the following operators to track the page:
-
Equals - matches the page name you enter in the text field exactly with the
pageparameter from the VIEW event.Example: If you entered home in the adjacent text field, this option will only track the page with a parameter that exactly matches this string.
-
Regex - matches the
pageparameter from the VIEW event using a Regular Expression (RegEx) pattern. The RegEx should result in a full match of the page name, not a partial match.Example: If your
pageparameter is home, using the RegEx pattern [a-zA-Z] will not match the full string home but only one of its letters, like h. However, if you used the pattern [a-zA-Z]+, it will match the entire string and be able to track that page. -
Starts with - matches the beginning of the
pageparameter from the VIEW event with a specific string.Example: If you entered home in the adjacent text field, this option will track any page with a parameter that begins with home such as home or homepage.
-
-
In the adjacent text field, enter the full or partial name, or RegEx pattern of the page you want to track. This must be the same page on which the experiment is configured to run and corresponds to the
pageparameter from the VIEW event.WarningYou must enter the exact page parameter in the text field. The page parameter you enter in the text field depends on how the webpage was tagged when it was integrated with Sitecore Personalize. If you do not know it, ask a member of your technical team.
-
Optionally, to add additional page parameters, click Add and provide the details to track the page.
-
Optionally, to add more details about the goal, click Description.
-
Sitecore Personalize automatically creates a Friendly ID as you enter a Goal name. You can use this ID to refer to the goal when integrating.
To edit the ID, click
and enter the new ID for the goal.NoteWhen editing, use a-z, 0-9, and underscores for spaces.
-
Click Save. The goal is added to the Goals tile.
Page view goal snapshot
-
What it tracks - users who visit a specific page, such as a product page, that is being tracked.
-
Conversion - occurs when the user successfully views the target page.
-
Attribution - identifies and credits the experiment that influenced the user to visit the target page.
-
First-touch example - if a user first interacts with a personalized homepage, and then navigates to the product page (the goal), the homepage experiment is credited for driving the conversion.
Next steps
-
Start the experiment for personalization to take effect and for any variants to be potentially exposed to guests.
-
View the analytics. After starting the experiment, you can immediately see operational data. Within 24 hours, you'll see how your variants are performing against each other on the Performance screen. This lets you see which variant is leading or if a winner has been declared based on the goal.