5 min read

Conversion Goals

Learn how conversion goals and conversion rate work, configure exact/wildcard paths or custom events, and monitor automatic conversion dips.

Imtiaz Rayhan
Imtiaz RayhanCo-Founder & Lead Engineer, DotCamp & TrimStats
Verified against live TrimStats APIs
Quick reference

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 tierWhat it measuresExamples
Macro goalsPrimary business outcomes tied directly to pipeline or revenueAccount signup (signup_completed), paid checkout (/thank-you*), demo booked
Micro goalsHigh-intent signals that lead toward a macro conversionViewing /pricing, subscribing to a newsletter, downloading a technical whitepaper
Pair conversion goals with segmentation

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 typeMatch rule syntaxExample ruleMatches
Pageview path (exact)Exact pathname without trailing slash/signup/successPageviews 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 eventExact event name sent via window.trimstats('event', ...)signup_completedEvery custom event whose name equals signup_completed

Creating a goal

Site settings / Conversion Goals
Combine custom event goals (signup_completed) with exact paths (/pricing) or trailing * prefix rules (/thank-you*). Goals evaluate historical ClickHouse data immediately.
  1. 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. 2

    Enter a name, type, and match rule

    Pick Pageview path or Custom event, enter the path or event name (for example /thank-you* or signup), and click Add goal.

  3. 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.

Automatic conversion-dip monitoring

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?
Yes. Because TrimStats evaluates goals dynamically against stored ClickHouse pageviews and custom events, adding a new goal immediately reports historical conversion rates across your full retention window.
How many conversion goals are included in each TrimStats plan?
Every TrimStats plan from Starter ($17/month) through Scale ($134/month) supports up to 50 conversion goals per site, and up to 10 configured goals are monitored automatically for rolling 7-day conversion_dip anomalies.

Related guides