Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Bug UnityAnalytics Built-in API Events not available in the portal

Discussion in 'Unity Analytics' started by wilczarz_84, Jul 15, 2023.

  1. wilczarz_84

    wilczarz_84

    Joined:
    Jan 6, 2017
    Posts:
    21
    Hi,
    I use these calls inside my Unity game:

    Code (CSharp):
    1. AnalyticsEvent.LevelStart(...)
    2. AnalyticsEvent.LevelFail(...)
    3. AnalyticsEvent.LevelComplete(...)
    4. AnalyticsEvent.IAPTransaction(...)
    5. AnalyticsEvent.ItemAcquired(...)
    6. AnalyticsEvent.ItemSpent(...)
    I published my game and imagine my confusion when these events were not available in analytics portal :/ It turns out that, these are classified as "Invalid Events" because they are not defined as custom events!

    How is it possible that such methods exist in the public API, but are not supported in the portal as built-in events? Moreover, why are these events put into trash without a way to recover them?

    So I manually created custom events for above calls, with all the required parameters (because, apparently an event is put to trash if it contains even one undefined param... ugh). Unfortunately I have made a mistake and defined "amount" parameter as string. So now all "item_spent" events are skipped because API sends integers (not strings). And the worst part: I cannot delete "amount" nor change its type to integer. I cannot define a second "amount" either. So I am effectively blocked from tracking soft transactions...

    Can you address these questions and PLEASE tell me how to fix the problem with "amount" param?

    Thanks,
    Tom
     
    Last edited: Jul 16, 2023
  2. wilczarz_84

    wilczarz_84

    Joined:
    Jan 6, 2017
    Posts:
    21
    Can anyone please help me with this problem?