Start free

Revenue values on goals

Give a custom event a number — qs('Purchase', 'pro', 49) or data-qs-value — and the matching goal shows the total, with no order IDs.

Goals & funnelsFeature page: Revenue values on goals
Revenue values on goals: example screenshotRevenue values on goals: example screenshot
Example screenshot with made-up data, not a real customer’s numbers.

What it does

The optional events.js add-on already sends a name and an optional label. You can now also send a numeric value. The collector stores that number on the same custom event row, and each event, click or form goal shows the sum for the date range. Unique visitor counts and the funnel are unchanged. This is separate from Stripe revenue and the conversions API, which keep their own currency totals. script.js stays 845 B.

Why it matters

A goal is more useful when it can show how much those conversions added up to, without turning quietstats into an ecommerce tracker.

How to use it

  1. Install the optional events script, as you already do for custom events. The core script is unchanged.
  2. Call qs('Purchase', 'pro', 49), or add data-qs-event, data-qs-prop and data-qs-value on a button or link.
  3. Add an event, click or form goal that matches. The Goals card shows the summed value next to the unique visitor count. Invalid or negative numbers are dropped. This is separate from Stripe revenue.

How it works

How a revenue value lands on a goal1. You call qs('Purchase', 'pro', 49), or a click sends data-qs-value, via the optional events script. 2. Is an order ID or currency stored, or is script.js changed? (otherwise: No: only a number on the same event row. script.js stays 845 B. Stripe totals stay separate.) 3. The collector keeps the number when it is finite, not negative and not huge; otherwise the event is counted without it. 4. An event, click or form goal sums those numbers for the date range, next to the unique visitor count.1You call qs('Purchase', 'pro',49), or a click sendsdata-qs-value, via theoptional events script.2Is an order ID or currencystored, or is script.jschanged?No: only anumber on thesame event row.script.js stays845 B. Stripetotals stayseparate.3The collector keeps the numberwhen it is finite, notnegative and not huge;otherwise the event is countedwithout it.4An event, click or form goalsums those numbers for thedate range, next to the uniquevisitor count.
From custom events and the Goals card. 0 extra rows. Stripe Payment Links and the conversions API are unchanged.

Privacy

Limits

Plans

Every plan, including Free. quietstats is free during launch: the Free plan covers 1 site and 5,000 pageviews a month, and no card is needed. See pricing.

Questions

Is this the same as Stripe revenue?

No. Stripe and the conversions API still write currency totals on the Revenue card. Event values are a unitless sum on the goal itself.

Do you store order IDs?

No. Only a number, and only the aggregate sum is shown on the goal.

Does the core script get bigger?

No. script.js stays 845 B. The value is sent only by the optional events.js add-on.

Related