Skip to main content
A purchase event records a sale, and a refund event records a refund. They come from four places: Reports count one sale once: when a player has a provider payment, that player’s own purchase and revenue events are left out of Overview and Attribution. See one sale is counted once. Use purchase as a goal on the Attribution page, or as a step of a funnel.

In-game purchases

When a player pays real money in your game or on your website, send a purchase track event.
So a purchase counts in the Overview Revenue metric, the Revenue dashboard template and attribution. The ARPDAU and ARPPU cards of the Game KPIs template use Stripe, Paddle and itch.io payments instead. Do not send store with steam, itch, epic or gog: Manalens writes those purchases itself and refuses them from a website or a game (SERVER_ONLY_EVENT). An in-game purchase without store is accepted. See revenue from custom events.

Tracking microtransactions and in-app purchases

Send one purchase event for each real-money sale in your game: a skin, a currency pack, a battle pass or an item bought through Steam, the App Store or Google Play. Manalens does not read these store transactions itself, so this event is how they reach your reports. Send it once the payment is complete: for a Steam microtransaction, after your backend’s FinalizeTxn call succeeds. Add any other properties you need. They are stored with the event: filter on them with an Event property filter, or read them with SQL.
We recommend:
  • amount_cents and currency on every sale. Send the price the player paid in that currency, before store fees. Manalens converts it to the reporting currency.
  • A transaction_id property with the store’s order ID. Manalens does not dedupe on it. It lets you find one sale with an Event property filter or in SQL. It also lets you match the sale with your store report.
  • Send each sale from one place. A retry of the same event (the same message_id) counts once. Two events for one sale, for example one from the game and one from your backend, count twice.
  • If you can, send it from your backend. A purchase that your server checked with the store is sent with the secret key. A modified client cannot fake it. A purchase from the game build is sent with the publishable key, which anyone can read.
  • Send refunds as a refund event with negative revenue, such as -4.99, and the same transaction_id. amount_cents cannot be negative. See refunds.
  • Use resource, not purchase, for in-game currency. A player spending gold or gems is a resource event with flow: "sink". It adds no revenue.
  • Do not send store with steam, itch, epic or gog on an in-game purchase (SERVER_ONLY_EVENT). Use your own property, such as store_product_id, for store details.
These events count in the Overview Revenue metric, the Revenue dashboard template (revenue, ARPDAU, ARPPU and daily conversion) and attribution. The ARPDAU and ARPPU cards of the Game KPIs template read Stripe, Paddle and itch.io payments only. For revenue by item, group by JSONExtractString(properties, 'item') in the SQL Explorer.

Store purchases

Steam

A player can have a verified Steam account. If it gets your base game or a DLC with a permanent license, Manalens writes one purchase event with store: "steam" for the player. The event is a server track event of the game install that linked. It has the user ID of the player (if known). Its time is the time that Steam gives for the purchase. See Steam purchases in Attribution for the rules for writing the event. The event has no amount: Steam gives no price for one player. context.library_name is manalens-steam-link.

itch.io

The itch.io sync writes one purchase event with store: "itch" for each itch.io purchase of your game, with type revenue and channel itch. It has the payment properties and also source, sale_rate, quantity, purchase_type, game_id and game_ids. An itch.io donation is a purchase with donation: true.

Payments and refunds

A Stripe, Paddle or itch.io payment becomes a purchase event, and a Stripe or Paddle refund becomes a refund event. They have type revenue and the provider as channel. Clients cannot send these channels, so these are verified payments. See Revenue. The player of a payment is the user_id in the checkout metadata, else a Checkout Session’s client_reference_id, else a guest checkout’s anonymous ID. See link revenue to users. context.identity_mode is billing.

Subscription records

A change of a Stripe or Paddle subscription is stored with type subscription. Its event name is the subscription status from the provider, such as active or canceled. It has the payment properties above, with mrr (the monthly recurring revenue) and mrr_known (false for an MRR that Manalens cannot work out). It is not a purchase and adds no revenue.

Sample payload

An in-game purchase from a game build:
Manalens stores it with "revenue": 4.99.

FAQ

The event has store set to steam, itch, epic or gog. Anyone can read the publishable key, so only Manalens writes store purchases. Leave out store for an in-game purchase, or send the event from your backend with the secret key.
No. Attribution counts purchases, and Manalens writes no negative Steam event. The player gets the label Refunded or revoked instead. See Steam integration.
No. When a player has a Stripe, Paddle or itch.io payment, that player’s own purchase and revenue events are left out of Overview and Attribution.