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:
// Basic goal
window.datasaas('goal', { goal_name: 'signup' })
// Goal with metadata
window.datasaas('goal', {
goal_name: 'purchase',
plan: 'pro',
value: 49.99
})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:
| Goal | Description |
|---|---|
| _outbound | Clicks on links to external domains |
Viewing goal data
The Engagement card in your dashboard shows:
| Column | Description |
|---|---|
| Goal Name | The name of the goal |
| Unique Visitors | Number of unique visitors who completed the goal |
| Completions | Total number of times the goal was completed |
| Conversion Rate | Percentage 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.