Tracking4 min read

Revenue tracking

mrkr.revenue() records a purchase amount against the current visitor and rolls it into your Revenue dashboard and per-source revenue breakdowns.

mrkr.app/demo/revenue
The Revenue page showing total revenue and average revenue per visitor, with a daily series and a breakdown by traffic source.
Revenue events roll up into a total, a daily series, and an attribution breakdown by source.

mrkr.revenue()

js
mrkr.revenue(49.00, { plan: "pro", currency: "usd" });

The first argument is the amount; anything after it is an optional properties object, subject to the same limits as custom events.

What unit is the amount?

Whatever unit you send: Mrkr doesn't convert currency or assume cents vs. whole units. Send the same unit every time (for example, always dollars, never a mix of dollars and cents) so totals and averages on the dashboard stay meaningful. If you sell in more than one currency, normalize to a single reporting currency before calling revenue(); Mrkr sums the raw numbers without knowing what currency each one represents.

Where it shows up

Revenue events feed three places: the Revenue dashboard (total revenue, a daily trend, and a breakdown by traffic source), the overview page's headline revenue figure, and the purchase-conversion count used alongside your other goals.

Note

An amount of 0 (or an unparseable value, which becomes 0) is still recorded as an event and still counts as a purchase-conversion, but contributes nothing to the revenue total.