Analytics Same API

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” ?

They are basically equivalent events. The IAPTransaction is documented here Unity - Scripting API: Analytics.AnalyticsEvent.IAPTransaction , you enter the string that you need. If you are not using IAP, then you don’t need this event

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

What are you trying to accomplish? You don’t need to call any additional method to track your IAP purchases.

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 [Frequently asked questions]

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?

That is correct!

1 Like

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!

I am trying to implement unity analytics into my game. What is difference between AnalyticsEvent.IAPTransaction and Analytics.Transaction?

Analytics.Transaction:
https://docs.unity3d.com/ScriptReference/Analytics.Analytics.Transaction.html

AnalyticsEvent.IAPTransaction:
https://docs.unity3d.com/2018.1/Documentation/ScriptReference/Analytics.AnalyticsEvent.IAPTransaction.html

FYI these events are not used in any optimization at our end, and may result in duplicate reporting of revenue.