Add a goal to a headless experience
Feature availability is part of a phased rollout. Your organization may not see this functionality yet. It will become available when your environment is included in the rollout.
Add a goal to define the event or metric you want to measure for the experience. Use a default goal to measure page views, bounce rate, or exit rate, or add a custom goal to measure a specific event.
Add a default goal
Use a default goal to measure Page views, Bounce rate, or Exit rate.
If you want to measure an event that is not covered by a default goal, see Add a custom goal.
To add a default goal:
-
On the Configuration page, in the Goals section, select Track Performance.
-
Click Add goal.
-
In the Select a goal section, select Page views, Bounce rate, or Exit rate.
NoteThe first goal you add becomes the primary goal. You can add additional default or custom goals to measure other performance metrics.
-
In the Goal name field, enter a descriptive name.
Example: Increase summer offer page views
-
In the Target field, enter the target percentage.
Example: Enter
20%for a target of 20% improvement in the selected metric. -
In Page name, select how SitecoreAI should match the page path, and enter the path to track:
-
Equals - matches only the exact path you specify.
Example:
/offers/summermatches only/offers/summer. -
Regex - matches page paths using a regular expression. The expression must match the entire page path.
Example:
^/offers/.*$matches any page whose path begins with/offers/. -
Starts with - matches any path that begins with the specified value.
Example:
/offers/matches/offers/summerand/offers/winter.
-
-
Optionally, in the Description field, enter a short description of the goal.
-
Click Save.
The goal appears in the Goals section.
Add a custom goal
Use a custom goal to measure an event that is not covered by the default goals.
To add a custom goal:
-
On the Configuration page, in the Goals section, select Track Performance.
-
Click Add goal.
-
In the Select a goal section, select Custom goal.
NoteThe first goal you add becomes the primary goal. You can add additional default or custom goals to measure other performance metrics.
-
In the Goal name field, enter a descriptive name.
Example: Increase brochure downloads
-
In Goal definition, specify:
- whether the metric should increase or decrease
- whether the metric is measured per session or per visitor
Example: Select Increase and Per visitor to measure an increase in brochure downloads per visitor.
-
In the Goal target field, enter the target percentage.
Example: Enter
20%for a target of 20% improvement in the selected metric. -
In Track event, select how SitecoreAI should match the event name, and enter the event to track:
ImportantMake sure the value matches the event your organization sends to SitecoreAI. An incorrect event name can prevent the goal from being tracked.
-
Equals - matches only the exact event name you specify.
Example:
brochure_downloadedmatches only thebrochure_downloadedevent. -
Regex - matches event names using a regular expression.
Example:
^brochure_.*$matches event names that begin withbrochure_. -
Starts with - matches any event name that begins with the specified value.
Example:
brochure_matchesbrochure_downloadedandbrochure_shared.
-
-
Optionally, in the Description field, enter a short description of the goal.
-
Click Save.
The custom goal appears in the Goals section.