Search Unity

Bug Event sent by Legacy despite being disabled

Discussion in 'Unity Analytics' started by iris_vlt, Apr 25, 2023.

  1. iris_vlt

    iris_vlt

    Joined:
    Mar 6, 2023
    Posts:
    2
    Hi,
    I am implementing Analytics UGS on a project, but I am facing an issue. I have 2 environments: "production" and "development”. I am using a custom UserID, in "development", I am receiving my custom events normally with the custom UserID.

    However, in production, the "gameStarted", "gameRunning", and "gameEnded" events are also triggered with the automatically generated UserID. When displaying raw JSON of the events in Event Browser, the sdkMethod: UA1_SDKLESS indicates that these events are sent by Unity's Legacy Analytics.

    I checked to see if "Legacy" was disabled, and it is.
    I have also changed the projectID and reverted to the previous version of Analytics UGS (4.4.1).

    I do not understand why these events are also being sent in production. I have implemented Analytics on another project in the same way without this problem.

    (Unity 2021.3.22)
     
    Last edited: Apr 25, 2023
  2. RandolfKlemola

    RandolfKlemola

    Unity Technologies

    Joined:
    May 1, 2020
    Posts:
    130
    Hi @iris_vlt ,

    Thanks for reaching out to the support team! That is indeed odd, could you share your Organization ID & Project ID with me via PM? It looks like you've done some good investigation work already. Which Unity SDKs do you currently have in this project? Are you using IAP?

    Thanks!
    Randy
     
  3. iris_vlt

    iris_vlt

    Joined:
    Mar 6, 2023
    Posts:
    2
    Hi,

    I have PM you my organization ID and the project ID.
    I added the analytical library only to check if it is disabled.
    I also added the multiplayer HLAPI 1.1.1.
    I don't use IAP.

    I just noticed the same problem on a 3rd project as well. The only difference I see with the 1st project that works is the version of Unity, which is 2020.3.23.
    The other 2 are in 2021.3.22.

    Thanks
     

    Attached Files:

    RandolfKlemola likes this.
  4. helgrind21

    helgrind21

    Joined:
    Sep 13, 2018
    Posts:
    24
    I'm having the same issue. I'm using an environment other than "production" and have disabled Legacy Analytics. However, "production" still reports clientDevice, gameRunning, gameStarted and gameEnded events.
     
    iris_vlt likes this.
  5. nh92

    nh92

    Joined:
    Jun 16, 2021
    Posts:
    1
    +1 for this exact same issue. Unity Legacy is disabled (its not even available under Windows > General > Services), using Unity 2021.3.15f1, Analytics Package 4.4.2, we're not using IAP or anything that says Analytics is a dependency either. These are only the standard events, gameRunning, started, etc that are going to our environment labeled 'production' and they all contain the field "UA1_SDKLESS" for the sdkMethod, custom events go to the correct place as expected.
     
    iris_vlt likes this.
  6. RandolfKlemola

    RandolfKlemola

    Unity Technologies

    Joined:
    May 1, 2020
    Posts:
    130
    Hey @nh92 , @helgrind21 , @iris_vlt ,

    I understand you're recording Legacy Analytics (UA1_SDKLESS) events without wanting to. One potential solution for you is to disable all UA1_SDKLESS events. Is that something you'd be interested in? If so, please DM me with your Organization ID, Project ID, and we can blacklist the project going forward.

    Best,
    Randy
     
    lanpartygamesstudio likes this.