Conversion Goals
Learn how conversion goals and conversion rate work, configure exact/wildcard paths or custom events, and monitor automatic conversion dips.
How do you create and measure conversion goals in TrimStats?
Configure up to 50 conversion goals per site in Site settings matching either a pageview path (exact or trailing-* wildcard prefix) or a custom JavaScript event name. TrimStats computes unique converting visitors and conversion rate dynamically in ClickHouse across any selected date range and filter.
What is a conversion goal?
Pageviews tell you how many people arrived, while a conversion goal measures how many took a meaningful action. Conversion Rate (CR) divides unique visitors who completed the goal by total unique visitors in the selected period (120 signups / 4,000 visitors = 3.0% CR).
| Goal tier | What it measures | Examples |
|---|---|---|
| Macro goals | Primary business outcomes tied directly to pipeline or revenue | Account signup (signup_completed), paid checkout (/thank-you*), demo booked |
| Micro goals | High-intent signals that lead toward a macro conversion | Viewing /pricing, subscribing to a newsletter, downloading a technical whitepaper |
Once a goal is saved, click any referrer or UTM campaign on your Overview dashboard to see which traffic channels convert at the highest rate rather than just sending the most clicks.
Goal types & matching rules
Configure up to 50 conversion goals per site under Site settings -> Conversion Goals. TrimStats evaluates all site goals in a single batched ClickHouse query and displays total conversions, unique converting visitors, and conversion rate on your site Overview.
| Goal type | Match rule syntax | Example rule | Matches |
|---|---|---|---|
| Pageview path (exact) | Exact pathname without trailing slash | /signup/success | Pageviews on /signup/success or /signup/success/ |
| Pageview path (prefix) | Pathname ending with a trailing * wildcard | /thank-you* | Any pathname starting with /thank-you, such as /thank-you/pro or /thank-you-annual |
| Custom event | Exact event name sent via window.trimstats('event', ...) | signup_completed | Every custom event whose name equals signup_completed |
Creating a goal
signup_completed) with exact paths (/pricing) or trailing * prefix rules (/thank-you*). Goals evaluate historical ClickHouse data immediately.- 1
Open Site settings -> Conversion Goals
Navigate to your site in the dashboard, click Site settings in the left sidebar, and jump to Goals.
- 2
Enter a name, type, and match rule
Pick Pageview path or Custom event, enter the path or event name (for example
/thank-you*orsignup), and click Add goal. - 3
Review conversions on Overview
Goals are evaluated retroactively across all stored historical events immediately, so you do not need to wait for new traffic to see historical conversion rates.
TrimStats automatically monitors up to 10 configured goals in its rolling 7-day anomaly engine and alerts you whenever a goal conversion rate drops by 25% or more relative to the prior 7-day baseline.
Common technical questions
Do conversion goals apply retroactively to historical events already in ClickHouse?
How many conversion goals are included in each TrimStats plan?
Related guides
Learn when to use custom events instead of pageviews, how to avoid event explosion with flat properties, and how to inspect property breakdowns.
Learn how multi-step conversion funnels and weekly retention cohorts work, how to spot your biggest drop-off leaks, and how TrimStats computes them in ClickHouse.
How TrimStats detects traffic drops, spikes, conversion dips, and friction surges against rolling 7-day baselines and delivers alerts and digests to email, Slack, Discord, and HMAC-signed webhooks.