Something about Analytics breaks UnityPurchasing.

So today I started up Unity to be greeted with this wonderful error:


Which causes this to happen:
6153223--672319--upload_2020-7-30_18-55-48.png
And after a bunch of searching with no easy ways to fix this problem, I went scorched earth by upgrading from Unity 2019 to 2020.1 (thinking that might be an issue, it wasn’t) and reinstalling the IAP and Advertisement plugins. Things began working again and I was on my way to making the IAP Button do the right thing again when I noticed that Analytics was now broken.
6153223--672322--upload_2020-7-30_18-59-34.png
Notice how the script is now empty despite what the documentation for 2020.1 shows:

So, I went scorched earth again and re-installed analytics… which did not fix this issue (so I am now stuck not knowing how to get analytic event tracking working again) and the bugs in the first screenshot have now returned. Meaning I have to re-install the IAP plugin again and fill in all that information again.

This is extremely frustrating and I’d like to know how I can get both IAP and Analytics working again.

Please remove the IAP package first and make sure that Analytics has no errors, and then re-import the IAP package without compiling errors.

If I’m not supposed to use Unity2020, then please don’t make it the Latest Official Release in the Unity Hub. :frowning: You’re giving the impression that it’s already been tested if it’s not in the Pre-Release list.

It works just fine, I just tested it. Unfortunately the event tracker is no longer present, a known issue. You will want to use Custom Events instead for now https://docs.unity3d.com/Manual/UnityAnalyticsCustomEvents.html

I’m fine with that but if this is the case, could you please take this page down: Unity - Manual: Analytics Event Tracker and the one for 2020.2 since their existence makes it seem as though it’s still supported.

Sorry no, because it’s a bug, not a removed feature.

Ah, okay. I thought it was just removed. Thanks for the clarification. Unfortunately, since I’m shipping ASAP, testing out the fix for this will have to wait a bit.

If IAP is not working, I would suggest to wait to ship your app or you could get immediate bad reviews.

Sorry for the confusion: My IAP is working fine as long as I don’t try to use the analytics. So I’m sacrificing the analytics to ensure the IAP works. Thank you for the concern, though!