Skip to content
Features

Goal Tracking

Set up conversion goals to measure business outcomes and track revenue.

What are Goals?

Goals are the conversions you care most about, such as a signup or a purchase. Each goal has a short code and can carry an optional monetary value, and the Goals report shows how many visitors converted.

Conversion Tracking
Measure how many visitors complete desired actions like purchases or signups.
Revenue Attribution
Assign monetary values to goals to calculate ROI and revenue per visitor.

Creating Goals

There is nothing to configure in the dashboard: a goal is created the first time your site sends a goal completion with a new goal code. It then appears in the Goals report for that site.

Goal Parameters

ParameterDescription
codeA short, stable identifier for the goal (e.g. signup, purchase). Use the same code every time.
centsOptional monetary value for the conversion, as an integer in cents (e.g. 4999 for $49.99)
titleOptional page title to record with the conversion (defaults to document.title)

Tracking Goal Completions

Use window.invoker?.trackGoal(code, cents?) to record goal conversions. The value is optional and must be an integer number of cents. For full purchase data (currency, transaction ID, items) use trackRevenue() instead.

Basic Goal Tracking
Track a conversion without monetary value
// Track a signup conversion
window.invoker?.trackGoal('signup');

// Track newsletter subscription
window.invoker?.trackGoal('newsletter_subscribe');
Goal with Value
Track conversions with monetary value in cents
// Track purchase with value (amount in cents)
window.invoker?.trackGoal('purchase', 9999); // $99.99

// Track order completion
window.invoker?.trackGoal('order_complete', Math.round(orderTotal * 100));

E-commerce Implementation

Track purchase goals on your order confirmation page:

// On order confirmation page
window.invoker?.trackGoal('purchase', Math.round(orderTotal * 100));

// Example with actual values
window.invoker?.trackGoal('purchase', 4999); // $49.99 order

Common Goal Examples

E-commerce Goals

  • Add to Cart - Track when items are added to shopping cart
  • Begin Checkout - Track checkout initiation
  • Purchase - Track completed purchases with revenue

SaaS Goals

  • Free Trial Start - Track trial signups
  • Plan Upgrade - Track subscription upgrades
  • Feature Activation - Track key feature usage

Content Goals

  • Newsletter Signup - Track email list growth
  • Content Download - Track PDF/resource downloads
  • Video Complete - Track video view completions

Viewing Goal Data

Goal performance is displayed in multiple places:

  • Goals page: open the site and click Goals in the sidebar for each goal's conversions and total and average value
  • Charts: use a goal code as a step in a funnel
  • Export & API: download individual goal completions as CSV or JSON (Data export)

Goals don't count toward your monthly event allowance.

Goal Metrics

  • Completions: Total number of goal conversions
  • Unique conversions: Number of distinct visitors who completed the goal (API and export)
  • Total value: Sum of the values sent with the goal
  • Avg. Value: Average value per conversion

Goal vs Event

Understanding when to use goals versus plain events:

Use Goals When...Use Events When...
Tracking business-critical conversionsTracking general user interactions
Need to track monetary valueValue tracking isn't needed
Want a conversions reportJust need event counts
Measuring ROIUnderstanding user behavior

Best Practices

  • Start with key conversions: Focus on 3-5 most important goals
  • Assign realistic values: Use actual revenue or estimated customer lifetime value
  • Name goals clearly: Use descriptive names that anyone can understand
  • Review regularly: Check goal performance weekly to spot trends
  • Test thoroughly: Verify goals are tracking correctly before relying on data