Skip to main content

Revenue from your server

A purchase can reach LinkForty two ways:

  • From the client: your app calls trackRevenue(), or the web pixel sends a conversion.
  • From your server: through the server events API, or from RevenueCat.

If both report the same purchase, it would count twice. The two copies don't share an id, so LinkForty can't pair them up.

Revenue comes from settles it per surface: you choose which side owns revenue for which events.

The setting​

Settings → Server events → Revenue comes from, for admins and owners. App and website are set separately.

Choices
App revenueFrom the SDK (default) or From your server or RevenueCat
Website revenueFrom the pixel (default) or From your server or RevenueCat

When you choose the server, list the Events your server reports, up to 50.

  • The list starts with purchase, subscription_start, renewal, refund and refund_reversed, plus that surface's current goals.
  • Keep events your client still owns, such as begin_checkout or account_created, off the list.

What changes when it's on​

From the moment you save:

  • One revenue source: your server or RevenueCat is the only source of revenue for that surface. No app event (or, for the website, no conversion with a value) adds revenue, whether or not it's on the list.
  • Listed events: count as conversions only when your server sends them.
  • Client copies: the listed events, and any client event carrying a revenue amount other than zero, are still stored. They appear in funnels and paths, but add no revenue and don't count as conversions. Client events that aren't listed and carry no revenue, or a zero amount such as a free trial, are unchanged.
  • Older app versions: covered too. The decision is made when the event reaches LinkForty, not in the SDK.
  • Earlier events: events from before you turned it on are unchanged.

The row shows From your server since and the date you turned it on.

Each LinkForty server checks the setting at least once a minute, so in the first minute after you turn it on, a client copy can still be counted.

Switching back​

Choosing the SDK or pixel again counts client revenue again from the moment you save. The time your server owned revenue keeps your server's figures, so nothing is counted twice.

Exception: if your server or RevenueCat sent no event for that surface since you switched, switching back is treated as undoing a mistake: client revenue is restored for that whole time. Recent days reflect this within a day, when they're rebuilt from the raw events; daily totals for days more than 7 days ago, which reports are built from, keep the server-only count.

Which to choose​

  • Your server or RevenueCat sees every purchase, including renewals and refunds, which never pass through the app: let the server own revenue. Keep trackRevenue() in the app if you like; it still feeds funnels.
  • Only the app knows about purchases: keep the default.
  • Website orders confirmed by your payment provider's webhook: send them with clickId and let the server own website revenue.