Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Track Economy Purchases and opt out enquiry

Discussion in 'Economy' started by efdeveloper98, May 19, 2023.

  1. efdeveloper98

    efdeveloper98

    Joined:
    Oct 21, 2020
    Posts:
    4
    I'm a bit confused as to how transactions are tracked by developers. To give you context about my problem, business wise, some of purchasable content in my game were made collaboratively so we split an agreed percentage of the purchase when made with real money and when the purchase is made with virtual currency, the other party gets ad revenue at the end of the month depending on how many virtual currency sales they've made and my accountant would work that out based on data that I would send over, but in terms of tracking the transactions, how exactly is that done and in terms of the opt-out button I have to have what exactly does it mean for tracking purchases?

    Here https://docs.unity.com/analytics/en/manual/RecordingTransactionEvents it says that I have to send a transaction event when players make in-app purchases, but it would be a problem for me if the player opted out of data collection because it wouldn't be tracked and I couldn't split ad revenue or real currency purchases properly. and over here https://docs.unity.com/economy/en/manual/GoogleDataSafety its telling me that purchase history is collected and required. upload_2023-5-19_15-24-16.png
    I'm completely confused as to what this means. Does the economy SDK track transactions regardless of analytics and if so, how would I access that?
     
  2. Arnaud_Gorain

    Arnaud_Gorain

    Unity Technologies

    Joined:
    Jun 28, 2022
    Posts:
    173
    Hi @efdeveloper98,
    Economy SDK does not track the transactions at the device level, this is done by the IAP SDK. You cannot access that tracking unless you use Analytics.
    As quoted:
    As you want to track both RMP (real money purchases) and virtual currency purchases, you need to record those to be part of your game Analytics, as you referred: https://docs.unity.com/analytics/en/manual/RecordingTransactionEvents

    Hope it helps clarifying!