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

Invalid appid Being Sent For Android Events

Discussion in 'Unity Analytics' started by wwcolter, Aug 6, 2019.

  1. wwcolter


    Nov 4, 2016
    We have an app that has been live for many months on both iOS and Android. We recently updated it on both platforms. In the Unity Analytics dashboard we noticed a significant drop in Android DAU that isn't present in the Google Play Console.

    After investigating with Charles we see that analytics events are being fired, but the appid field is listed in the requests as "local.cbdaa10237e4fd143[...]" instead of a standard UUID format like "d100a7bd-7297-4e63-9914-1330f35fe077".

    Here is the common JSONObject, with shortened ids:

    Code (CSharp):
    1. {"common":{"appid":"local.cbdaa1[...]","userid":"0268a75c[...]","sessionid":8615[...],"platform":"AndroidPlayer","platformid":11,"sdk_ver":"u2018.3.8f1","session_count":2,"localprojectid":"cbdaa10237e[...]","build_guid":"daf7c75[...]","deviceid":"b36912b09[...]"}}
    Any ideas what could be causing this on Android? Our iOS build sends a standard UUID for the appid field.
    Last edited: Aug 6, 2019
  2. ap-unity


    Unity Technologies

    Aug 3, 2016
    The "local." app ID means the app does not have any Services enabled at the time of the build. The most common cause of this issue is not having the correct Project permissions when creating a build.

    You should be able to enable the Analytics service and create a new build, and that should contain the correct appID. Note: When opening the Services window, you'll want to select "Link to an existing project" so you can get your original appID (which you will select from a list of projects).
    wwcolter likes this.