Unity IAP revenue tracking events ignore UGS Analytics environment

Hello

We have encountered an issue with the revenue tracking events, which are being sent automatically by the Unity IAP plugin - they do not consider UGS Analytics environment and UGS Revenue dashboard shows test purchases in production environment case. Is there any way to fix this?

Unity: v2021.2.6
Unity Analytics package: v4.1.0
Unity IAP package: v4.4.0
Platform: Android

We set UGS environment the following way and have double checked that environment contour is being determined correctly, there are no errors during initialization and both environments (production and dev) are configured in UGS dashboard. We also see the test users activity in dev environment correctly.

private async void InitializeUGSAnalyticsAsync()
{
    try
    {
        var environmentName = Tools.IsProdContour() ? "production" : "dev";
        var options = new InitializationOptions();
        options.SetEnvironmentName(environmentName);

        await UnityServices.InitializeAsync(options);
        var consentIdentifiers = await AnalyticsService.Instance.CheckForRequiredConsents();
        //Redacted
    }
    catch (ConsentCheckException e)
    {
        Debug.LogException(e);
    }
}

Best regards

This is an issue we are working on. Currently all IAP Transaction events go to Production and ignore the set environment.

I see, thank you