Search Unity

Analytics Same API

Discussion in 'Unity Analytics' started by omidkianifar, Jul 13, 2019.

  1. omidkianifar

    omidkianifar

    Joined:
    Jul 4, 2013
    Posts:
    1
    I'm use unity2018.2.20
    What is the diff of this APIs:
    Analytics.CustomEvent
    AnalyticsEvent.Custom
    AnalyticsEvent.CustomEvent

    and the other problem:
    AnalyticsEvent.IAPTransaction("????", price, packageId);
    what is the "transactionContext" ?
     
  2. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
  3. kreso

    kreso

    Joined:
    Sep 7, 2013
    Posts:
    147
    To piggy back on the question.

    There are 2 events.
    Analytics.Transaction(...)
    and
    AnalyticsEvent.IAPTransaction(...)

    1. Do I need to use either if I'm using Unity IAP?
    2. If not - I assume Analytics.Transaction is automatic (because of using Unity IAP), so I need to add AnalyticsEvent.IAPTransaction?
    3. What 'price' do I use then? localized? What currency is being used in the IAPTransaction call?

    I am setting up monetization 3.2 and would like to give 'the learning machine' as much as useful information as possible. So would love to know wether I should send this - and how?

    Kind regards
     
  4. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    What are you trying to accomplish? You don't need to call any additional method to track your IAP purchases.
     
  5. kreso

    kreso

    Joined:
    Sep 7, 2013
    Posts:
    147
    Thank you for your response.

    What am I trying to accomplish: implement as many possible events, so monetization's machine learning has as many parameters possible. Per this document [https://unityads.unity3d.com/help/unity/personalized-placements-unity]

    I have implemented Unity IAP.

    If I understand you correctly: I should not call neither Analytics.Transaction() nor AnalyticsEvent.IAPTransaction(), and machine learning won't be affected.

    Correct?
     
  6. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    That is correct!
     
    kreso likes this.
  7. kreso

    kreso

    Joined:
    Sep 7, 2013
    Posts:
    147
    Right on!
    Still curious, does machine learning get the information from Unity IAP?
    Any details you could share?

    I’m just eager to get the Monetization SDK everything I possibly can.

    Thank you!
     
  8. cyborgjinx

    cyborgjinx

    Joined:
    Dec 10, 2014
    Posts:
    28
    I am trying to implement unity analytics into my game. What is difference between AnalyticsEvent.IAPTransaction and Analytics.Transaction?
     
  9. SamOYUnity3D

    SamOYUnity3D

    Unity Technologies

    Joined:
    May 12, 2019
    Posts:
    626
  10. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    FYI these events are not used in any optimization at our end, and may result in duplicate reporting of revenue.