#it seems this is a common problem, but I
1 messages · Page 1 of 1 (latest)
Hey Curious Dynamics, if you share your initialization code for UGS / Analytics I may be able to help
One thing we've seen before is that there's an option in the IAP package that will perform initialization for you. If you're using IAP you'll want to turn that option off if you're initializing things with a specific environment yourself.
hey thanks!
hmm ok i’ll have to check that out
Nothing's sticking out to me with your code, are you using the Unity IAP package?
i’m not sure, how do i check? i installed the Analytics package via the package manager
You can open up the Package Manager (Window->Package Manager), Switch the selector to In Project and then look for In App Purchasing as an entry.
If you don't have it installed, it's possible UGS is being initialized from somewhere else in your codebase already, try searching for UnityServices.InitializeAsync in your project and see if it's being called from multiple locations.
thanks for the details. I checked and have neither IAP installed, nor is InitializeAsync being called anywhere else in the project :/
something maybe worth noting is that I'm still getting standard events in the production environment, but none of my custom events show up there either
So you've received no events in your playtests_001 environment?
yep, none
neither valid nor invalid
hmm in the standard events I get in the production environment, they still have "sdkMethod": "UA1_SDKLESS",, even after I switched off legacy analytics
Hmm, we can check a few more things, you can try explicitly setting Edit->Project Settings->Services->Environments->Editor Environment to your playtest_001 environment and running.
For SDKLESS - What's your ProjectSettings/UnityConnectSettings.asset file look like?
You may also want to take a look at https://docs.unity.com/ugs/manual/analytics/manual/sdk-guide, just realized I didn't see AnalyticsService.Instance.StartDataCollection(); being called in your code.
thanks I'll check this out asap and get back to you
hey, just getting back around to this. I don't see that section in the settings. could it be my unity version being old? I'm using 2020.3.21f1
this is what my UnityConnectSettings.asset file looks like:
hmm indeed I wasn't using that. I'll try that now
To completely disable SDKLESS I believe you'll also need to set m_InitializeOnStartup: 0