Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.ghostlyx.com/llms.txt

Use this file to discover all available pages before exploring further.

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

  1. Go to Settings > Goals.
  2. Click Add goal.
  3. Select Pageview as the goal type.
  4. Enter the path to match, for example /thank-you or /checkout/success.
  5. Click Save.
Paths support a * wildcard at the end. For example, /blog/* matches any URL that starts with /blog/.

Creating a custom event goal

  1. Go to Settings > Goals.
  2. Click Add goal.
  3. Select Custom event as the goal type.
  4. Enter the event name exactly as it appears in your ghostlyx('event', '...') call.
  5. Click Save.
Custom events must be instrumented in your site’s JavaScript before the goal will record completions. See Custom events for how to fire events.

Goal stats on the dashboard

Once a goal is created, it appears in the Goals section of the dashboard. For each goal you will see:
MetricDefinition
CompletionsTotal number of times the goal was completed in the selected period
Unique completionsCompletions counted once per visitor per day
Conversion rateUnique completions divided by unique visitors

Using goals as funnel steps

Goals can be added as steps in a funnel to measure drop-off across a multi-step journey. See Funnels for details.