Track Custom Goals

Goals let you measure the actions that matter to your business — signups, purchases, button clicks, form submissions, and more.

Setting up goals

1. Define a goal in your dashboard

Go to the Engagement card on your dashboard and click Add Goal. Give it a name (e.g., signup, purchase, download).

Goal names are automatically sanitized: lowercased and spaces are replaced with underscores.

2. Trigger the goal from your website

Use the DataSaaS JavaScript API to fire goal events:

javascript
// Basic goal
window.datasaas('goal', { goal_name: 'signup' })

// Goal with metadata
window.datasaas('goal', {
  goal_name: 'purchase',
  plan: 'pro',
  value: 49.99
})
Tip

DataSaaS generates better insights when you track more events. Track signups, clicks, downloads, subscriptions — any action that matters to your business.

Built-in goals

DataSaaS automatically tracks these goals without any extra code:

GoalDescription
_outboundClicks on links to external domains

Viewing goal data

The Engagement card in your dashboard shows:

ColumnDescription
Goal NameThe name of the goal
Unique VisitorsNumber of unique visitors who completed the goal
CompletionsTotal number of times the goal was completed
Conversion RatePercentage of total visitors who completed the goal

KPI goals

Mark any goal as a KPI by clicking the star icon next to it. KPI goals appear in the main visitor chart metrics bar, giving you at-a-glance conversion rates alongside your traffic data.