TechBuzzPro

Track Game Payment Conversions & Sales Attribution

· 7 min read · Apps & Browsers

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

This guide shows you how to track conversions and attribute sales in a game payment campaign, so you can see exactly which ads, channels, or in-game events lead to real revenue. You'll learn how to set up event tracking, connect your payment data, and read the reports that tell you where your return on ad spend is coming from. Before you start, you need access to your ad platform (like Meta Ads, Google Ads, or TikTok Ads), your game's analytics dashboard, and the ability to add a small piece of code or use a third-party tracking tool.

What You'll Need

  • Admin access to your ad platform (Meta Ads Manager, Google Ads, etc.)
  • Access to your game's backend or analytics SDK (Unity Analytics, GameAnalytics, Firebase, etc.)
  • A conversion tracking tool or SDK (AppsFlyer, Adjust, Branch, or the ad platform's own SDK)
  • Ability to add server-side or client-side event code
  • A spreadsheet or BI tool for manual cross-checking (optional)

Step-by-Step

  1. Define your conversion events. Decide which in-game actions count as a conversion. The most important is the "purchase" event (first purchase, subscription, or any in-app purchase). You may also want to track "add-to-cart" (if you have a store), "trial start," or "level completion" that correlates with spending. Write down the exact event names and parameters you'll use.
  2. Install a mobile measurement partner (MMP) SDK or the ad platform's SDK. If you use AppsFlyer, Adjust, or Branch, integrate their SDK into your game. If you prefer native tracking, install the Meta SDK (for Facebook/Instagram ads) or Google's Firebase SDK (for Google Ads). Follow the SDK's documentation to initialize it with your app ID and API key.
  3. Implement the purchase event. In your game's code, find where a successful payment is confirmed (after the store receipt is validated). Call the SDK's purchase event there. Include the revenue amount in the local currency, the currency code, and a product ID. For example, in AppsFlyer you'd call af_purchase with af_revenue and af_currency.
  4. Set up server-to-server (S2S) verification (recommended). For reliable attribution, don't rely only on client-side events. Configure your payment server to send a postback to your MMP or ad platform whenever a purchase is confirmed. This prevents fraud and lost events if the player closes the app mid-purchase. Most MMPs provide a server-to-server API endpoint for this.
  5. Connect your ad accounts. In your MMP dashboard, link your ad accounts (Meta, Google, TikTok, etc.) using the integration settings. This allows the MMP to receive ad click and impression data automatically, which it uses to attribute the purchase to the correct campaign.
  6. Set up conversion events in the ad platform. In Meta Ads Manager, go to Events Manager and add your app. Verify the purchase event is being received. Then, in your campaign, set the optimization goal to "Purchase" or "Value" (for ROAS). For Google Ads, link your Firebase project and import the purchase event as a conversion action.
  7. Choose an attribution window. Decide how long after an ad click or view you'll credit the sale. Common windows are 7-day click, 1-day view, or 28-day click. For games with longer consideration times, a 7-day click and 1-day view is standard. Set this in both your MMP and ad platform to match.
  8. Enable in-app event sharing. In your MMP, turn on "postback" or "event sharing" to the ad platforms. This sends the purchase data back to Meta/Google so they can optimize their algorithms. Make sure the event name matches exactly (e.g., "purchase" vs "in_app_purchase").
  9. Create a dashboard or report. In your MMP, build a report showing revenue, purchases, and ROAS by campaign, ad set, and ad. Also look at "cohort" reports to see lifetime value (LTV) of users acquired from each campaign. If you use a BI tool, export raw data daily for custom analysis.
  10. Test with a real purchase. Make a small test purchase on a test device (or use a sandbox environment). Verify that the event appears in your MMP dashboard and in the ad platform's events manager within a few minutes. Check that the revenue amount is correct and attributed to the right campaign.
  11. Monitor and adjust. Check your reports daily for the first week. If you see a high number of "unattributed" purchases, your tracking may be broken. If a campaign shows high spend but zero purchases, check your attribution window and event name consistency.

Common Mistakes

  • Mismatched event names: Using "purchase" in your MMP but "in_app_purchase" in your ad platform. They must be identical.
  • Forgetting to send revenue: Sending the purchase event without the revenue amount, so you can't calculate ROAS.
  • Ignoring view-through attribution: Only counting clicks, which underreports the impact of display or video ads.
  • Double-counting: If both client-side and server-side events are sent without deduplication, you may see inflated numbers. Use a transaction ID to dedupe.
  • Testing with real money: Making test purchases with a real payment method can pollute your data and cost you money. Use sandbox modes.
  • Not setting a consistent currency: Reporting USD in one place and EUR in another, leading to wrong revenue totals.

Tips

  • Use a unified attribution window across all platforms. If Meta uses 7-day click and Google uses 30-day, you can't compare them fairly.
  • Track micro-conversions too. Events like "tutorial_complete" or "level_5_reached" help you optimize for users likely to pay later.
  • Set up a raw data export. Most MMPs let you push raw event logs to BigQuery or S3. This gives you full control for advanced LTV modeling.
  • Use SKAdNetwork for iOS. Due to privacy changes, you'll need to configure SKAdNetwork in your MMP for iOS purchases to be attributed without IDFA.
  • Regularly audit your server postbacks. If your payment provider changes, your S2S integration may break silently.
  • Include a "test" flag in your events. Mark test purchases so you can filter them out of reports.

Troubleshooting

No purchases appear in the ad platform. First, check your MMP dashboard. If purchases show there but not in Meta/Google, the event sharing is misconfigured. Re-verify your app connection and ensure the event name matches. If purchases don't show anywhere, your SDK call is not firing. Add a log statement in your code to confirm the purchase function runs after payment.

Attribution shows "Organic" for all purchases. This means your ad click data isn't linking. Check that your MMP is receiving click data from your ad accounts (look at "Clicks" in the MMP). If clicks are zero, your ad account link is broken. Also, ensure your app's URL scheme is correctly set for deferred deep linking.

Revenue amounts are wrong. Verify your currency code is ISO 4217 (e.g., USD, EUR). If you're passing the amount in cents instead of dollars, divide by 100. Check if your payment provider sends the amount including tax; decide whether to include tax and be consistent.

Duplicate purchases. If you see the same purchase twice, your server postback and client event are both firing. Add a unique transaction ID to each purchase and configure your MMP to deduplicate by that ID. Alternatively, disable the client-side purchase event and rely only on S2S.

Attribution window changes don't take effect. Some ad platforms require you to update the window in their settings, not just the MMP. Check both places. Also, changes apply to new clicks, not historical data.

iOS purchases not attributed. This is almost always a SKAdNetwork issue. Ensure you've configured the SKAdNetwork conversion value in your MMP, and that your ad network's SKAdNetwork ID is added to your app's Info.plist. Test on a real device with ATT permission granted.

Frequently Asked Questions

Q: What's the difference between click-through and view-through attribution?
A: Click-through credits a sale to the last ad the user clicked. View-through credits a sale if the user saw an ad (even without clicking) within a set time window (usually 1 day). View-through is less reliable but captures brand awareness impact.

Q: How long should my attribution window be?
A: For casual games, 7-day click and 1-day view is common. For mid-core or strategy games where users take longer to decide, a 14-day or 30-day click window may be better. Shorter windows give faster feedback but miss delayed purchases.

Q: Can I track conversions without an MMP?
A: Yes, you can use the ad platform's SDK directly (e.g., Meta SDK or Firebase). However, you'll only see data for that platform, not cross-platform. An MMP gives you a unified view and helps with deduplication.

Q: What is ROAS and how do I calculate it?
A: Return on Ad Spend is revenue attributed to a campaign divided by the campaign's spend. For example, if a campaign cost $500 and generated $1,500 in purchases, ROAS is 3.0 (or 300%). Most MMPs calculate this automatically.

Q: Why do my numbers differ between the MMP and the ad platform?
A: Different attribution windows, data processing delays, and deduplication methods cause this. The ad platform often reports slightly higher numbers because it uses its own model. Use your MMP as the source of truth for cross-platform comparisons.

Q: Do I need to track refunds?
A: Yes. If you don't subtract refunds, your ROAS will be overstated. Most MMPs have a "refund" or "cancellation" event. Send a negative revenue event or a separate refund event to keep your numbers accurate.