Goal types
GhostlyX supports two types of goals:- Pageview goal: triggered when a visitor reaches a specific URL path
- Custom event goal: triggered when your code calls the GhostlyX JavaScript API with a matching event name
Creating a pageview goal
- Go to Settings > Goals.
- Click Add goal.
- Select Pageview as the goal type.
- Enter the path to match, for example
/thank-youor/checkout/success. - Click Save.
* wildcard at the end. For example, /blog/* matches any URL that starts with /blog/.
Creating a custom event goal
- Go to Settings > Goals.
- Click Add goal.
- Select Custom event as the goal type.
- Enter the event name exactly as it appears in your
ghostlyx('event', '...')call. - Click Save.