Instrumenting In-App Purchases: Measure Your Funnel, From Offer to Delivery

Blog Hero Image
In-app purchase revenue can tell you which items sold, but understanding what converts browsers into buyers takes more context. A player might see a cosmetic in your lobby store and keep playing. Another might complete checkout without receiving the item in-game. Each outcome calls for a different response.
For VR developers, measuring the entire purchase flow helps you see which offers lead to checkout and whether players receive what they bought. In this guide, we’ll show you how to connect the Platform SDK’s purchase flow with your own analytics at four moments: when a player sees an offer, starts checkout, gets a result, and receives the item. Those events show where players drop off, while Add-on content analytics shows which items earn revenue. Reading both helps you choose what to investigate next.
What you’ll learn in this post

Moment 1: Offer exposure

The funnel begins when an offer appears in the player’s view, not when your app fetches its product data. Before recording that view, your UI needs the item’s current product information. Call IAP.GetProductsBySKU() to retrieve the available products and prices, then display the returned localized price rather than a hard-coded amount. The Unity Add-ons Integration guide covers these methods and includes an Ultimate Glove Ball sample implementation.
Once the item and price are visible, record an offer_viewed event. That event gives you the starting point for measuring how many players move on to checkout. Count it when the offer becomes visible, rather than every time the UI redraws, so redraws don’t inflate the number of exposures.
The same item might appear in your lobby_store and post_match placements. To compare those offers later, include sku, placement, app_version and timestamp consistently across all four events, preserving the originating offer context through checkout and delivery. These names and fields are suggestions for your own analytics, not built-in Platform SDK events.

Moment 2: Checkout

An offer view tells you the player reached the item. Their decision to buy marks the next moment: the handoff to Meta checkout. When the player selects the purchase action, call IAP.LaunchCheckoutFlow(sku) to open the checkout dialog and record checkout_started with the same SKU and placement.
Because a player can retry checkout, generate an attempt_id for each attempt before calling the SDK. Include it in both checkout_started and the callback’s purchase_result to connect the start to its outcome. Each new attempt gets a new ID, while duplicate reports of the same result keep the original one.
At this point, you’ve recorded an attempt, not a completed purchase or confirmation that the dialog appeared. If your app can’t start the request, record that failure against the attempt so it doesn’t look like the player abandoned checkout.

Moment 3: Purchase result

The LaunchCheckoutFlow callback gives the outcome of the attempt you just recorded. Log purchase_result with the same attempt_id to keep the start and outcome connected.
A successful request returns a purchase. Unsuccessful responses need a closer look because dismissing checkout is different from a technical failure. The Unity integration example reads category, code and message from the error’s JSON message; its cancellation example identifies user_canceled when the player dismisses the dialog.
Use those details to record success, cancellation or failure, retaining the error category and code when available. If the response doesn’t identify the outcome clearly, leave it unresolved for investigation rather than guessing that the player canceled.
This distinction helps you decide what to check next. A cancellation tells you where an attempt ended, but not whether the player disliked the price, changed their mind or was interrupted. Technical failures, by contrast, give you reported errors to investigate before changing the offer.

Moment 4: Item delivery

A successful checkout still needs to become an item the player can use. To distinguish payment success from delivery, record item_granted only after your app has delivered the item or updated the player’s balance.
Ownership checks help your app recognize what the player has purchased, including when they return. Call IAP.GetViewerPurchases() at startup and after purchase, following all result pages. It returns durable purchases and consumables that haven’t been consumed, rather than a complete transaction history. For server-managed items or currency, use the Add-ons Server APIs to verify ownership on a trusted backend.
Retries and restarts also make it important to distinguish a new grant from something you’ve already delivered. Keep a record of fulfilled purchases and check it before applying a grant again. Restoring an existing durable unlock shouldn’t create a new-sale event, and a restart should leave both durable unlocks and your saved consumable balance intact.
Consumables need one more step after delivery. Once the granted item or balance is saved, call IAP.ConsumePurchase() to acknowledge the grant; don’t wait until the player spends the currency. The documentation on consuming purchased IAP items explains how this makes the SKU purchasable again. A consumable purchase left unconsumed for more than three days is automatically refunded.

Put the four moments to work

Before interpreting the funnel, check that events from all four moments match what happens in your app. You can then read those events alongside entitlement and revenue data to understand where players drop off and what purchases earn.

Test the purchase flow

To test the full purchase flow, your app needs an uploaded APK and in-app purchase access through Data Use Checkup, even for test-user purchases. Check out the Add-ons Integration documentation for steps that walk you through the setup.
With that in place, Testing Add-ons walks through test users and the “Always succeeds” and “Fails at sale” cards. Use these documented cards rather than a personal payment card to test successful and failed sales, and dismiss checkout to test cancellation.
For each attempt, your analytics should contain one start and its matching result. A fulfilled purchase should also produce item_granted, while cancellations and failed sales must not grant anything. After a successful delivery, restart the app to check that the saved balance or durable unlock remains correct without a duplicate grant.
Checkout tests don’t cover every ownership change. Granting and revoking test-user entitlements in the dashboard lets you check how the app responds to those changes independently of a purchase.
Your test environment also depends on the build path. Android developers can use Meta Spatial Simulator’s In-App Purchase package support for a simulated checkout dialog. Some calls use local sample data, while product lookup and consumption use the Meta backend. For WebXR PWAs, the separate integration guide covers the Digital Goods and Payment Request APIs used instead of Unity methods.

Read the funnel alongside revenue

Once the tests confirm that the events match the purchase flow, you can use them to follow players from an offer to delivery. Build the funnel for one SKU, placement and time window, starting with the players who saw that offer and counting which of them reached each later stage. Use unique players throughout so repeated events don’t inflate the conversion rates.
Two rates show how often exposure leads to checkout or a completed purchase:
  • Offer-to-checkout conversion is players who start checkout divided by players who saw the offer.
  • Offer-to-purchase conversion is players who complete a purchase divided by players who saw the offer.
Those rates describe player progression. To investigate checkout reliability, compare successful attempts with total attempts, using attempt_id to match each start to its result. Keep that attempt-based measure separate from the player-based rates.
If many players see the offer but few start checkout, examine how clearly the item and purchase action are presented. If checkout frequently fails, inspect the reported errors. Successful purchases without matching grants point to the delivery flow.
Your events show that progression; Add-on content analytics adds the entitlement and revenue data. In the Developer Dashboard, open Analytics > Add-on Content to see results by item and date. The Entitlement sources table distinguishes in-app purchases from purchases on other surfaces, helping you compare the relevant data with your own events. An entitlement recorded by Meta still doesn’t prove that your app delivered the item.
The funnel focuses on a particular offer. For a broader weekly view, the Tips for monetizing in-app purchases documentation recommends active buyer conversion rate and ARPU. These comparisons can help you decide what to examine next, but they don’t establish why one placement converts better than another.

Start with one offer

Follow these steps to check your purchase flow end to end and identify where players drop off:
  • Choose one SKU and placement, then add the four events.
  • Test the checkout outcomes and restart recovery, checking the recorded events against what happens in-app.
  • Build the ordered funnel and compare it with entitlement and revenue data for the same item and period.
  • Investigate checkout failures or missing grants before changing the offer.
–
For more developer updates, follow us on Facebook⁠, X⁠ and LinkedIn⁠, and subscribe to our monthly VR developer newsletter. Have thoughts on what we covered today? Start or join a conversation in the Meta VR Developer Forums⁠.
All
Apps
Games
Quest
Did you find this page helpful?
Explore more
Room to Play: Design for Hands in Mixed Reality
Learn how to design clear, comfortable hand interactions for mixed reality games, with practical patterns, examples, and testing guidance.
All, Apps, Design, Games, Hand tracking, Mobile, Quest
Start Building for Meta VR Glasses with Dilmer Valecillos
Start building for Meta VR Glasses with Dilmer Valecillos. Learn how to set up your project and test hands and gaze interactions in Unity.
All, Apps, Design, Games, Hand tracking, Optimization, Quest, Unity
Unite Tokyo 2026 Highlights: Building for Meta VR Glasses
From the Unite Tokyo stage to a one-day hackathon, here’s how Unity developers are getting their apps ready for Meta VR Glasses.
All, Apps, Design, Games, Marketing, Unity

Get the latest updates from Meta VR.

Get access to highlights and announcements delivered to your inbox.