Search Unity

Question All Custom events are marked as Invalid when using UGS Analytics system.

Discussion in 'Unity Analytics' started by YogeshBeniwal, Jan 24, 2023.

  1. YogeshBeniwal

    YogeshBeniwal

    Joined:
    Jan 17, 2018
    Posts:
    5
    I'm using Unity's new analytics system, I finished the integration yesterday. All my custom events are moved to invalid action under "Event Browser" with the reason "Event schema not found".

    I noticed an issue when I clicked on "View Event Content" all my event names have "__" double underscores at the end which I didn't add.

    Is it a bug or did I miss something while integrating analytics?

    Attaching SS.

    cc: @JeffDUnity3D
     

    Attached Files:

  2. RandolfKlemola

    RandolfKlemola

    Unity Technologies

    Joined:
    May 1, 2020
    Posts:
    130
    Hi YogeshBeniwal,

    Thanks for reaching out to the support team! Unfortunately, Jeff no longer works here. We miss him! The issue you've mentioned isn't something I've seen before. Could you send me the full code snippet that you use to send any of these events? Which version of the Analytics SDK are you using?

    In the meantime, while I wait, I'll investigate the issue on my end.

    Best,
    Randy
     
  3. YogeshBeniwal

    YogeshBeniwal

    Joined:
    Jan 17, 2018
    Posts:
    5
    Hi Randy,

    Thanks for the reply, I'm attaching all the info you asked for.

    Unity Version: 2021.3.16f1
    Analytics Package Version: 4.2.0
    Platform: Android
    Sample Code I used:

    Code (CSharp):
    1. [SerializeField]
    2.     private PANELS panel;
    3.     [SerializeField]
    4.     private string buttonType;
    5.  
    6.     public override void OnClick() {
    7.  
    8.         Analytics.CustomEvent("buttonClick", new Dictionary<string, object>() {
    9.                 { "buttonType", buttonType },
    10.                 { "panelName", panel.ToString() }
    11.             });
    12.     }

    Regards,
    Yogesh
     
    IAmChiagozie likes this.
  4. RandolfKlemola

    RandolfKlemola

    Unity Technologies

    Joined:
    May 1, 2020
    Posts:
    130
    Hi Yogesh,

    Thank you so much! While waiting for the response I brought this to the engineers, and you've identified an issue and we're discussing a fix now. Thank you!

    We really appreciate it.

    Best,
    Randy
     
    YogeshBeniwal likes this.
  5. RandolfKlemola

    RandolfKlemola

    Unity Technologies

    Joined:
    May 1, 2020
    Posts:
    130
    Hi again Yogesh,

    This issue has been fixed, can you double-check your incoming events to see if you're still experiencing the events with double underscores?

    Thanks!
    Randy
     
  6. YogeshBeniwal

    YogeshBeniwal

    Joined:
    Jan 17, 2018
    Posts:
    5
    Hi Randy,

    Thanks for the update. My custom events no longer have "__" concatenated with their names.

    Thanks,
    Yogesh
     
    RandolfKlemola likes this.
  7. johnluxford

    johnluxford

    Joined:
    Oct 14, 2015
    Posts:
    24
    We pushed an update and noticed that suddenly all our custom events that we've already defined in UGS Analytics started getting the double underscores added to them and failing to import. I still see the custom events defined in UGS Analytics that should match what we're sending, but since the double underscores are getting added somewhere we're losing all our custom event data. What can we do to get it to stop adding double underscores?

    We haven't updated Unity recently and we're pinned to 2020.3.36f1 at the moment. Analytics package is at 4.0.1.

    Thanks!
     
    RandolfKlemola and ViliamVolosV like this.
  8. RandolfKlemola

    RandolfKlemola

    Unity Technologies

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

    Can you DM me your Organization ID as well as the project ID/Name? It will help us investigate further. The Analytics package you're using is of course pretty old, but that "shouldn't" be getting in the way here.

    Thanks!
     
  9. IAmChiagozie

    IAmChiagozie

    Joined:
    Jun 26, 2017
    Posts:
    37
    I use exactly this code and sometimes it is marked as an invalid event. With this reason: Event schema buttonClick not found.
    @RandolfKlemola