Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

WebGL not sending Analytics data

Discussion in 'Unity Analytics' started by mpinol, Feb 25, 2016.

  1. mpinol

    mpinol

    Unity Technologies

    Joined:
    Jul 29, 2015
    Posts:
    317
    Hello everyone,

    We have recently uncovered a bug in WebGL builds where Analytics events are not being sent reliably. This is most apparent in builds created using Unity 5.3 and above but there also may some effects from this bug present in previous versions as well. We have run some initial tests using Unity 5.2 and everything appears to be working correctly, however if you are using 5.2 and are noticing any odd behaviour please let us know so we can update the list of affected versions.

    We are currently working on a fix so we can release it as quickly as possible and I will be sure to keep you updated as to its status. This is a high priority bug!

    Thank you for your patience and understanding while we are working on this!
     
    Last edited: Feb 25, 2016
  2. mpinol

    mpinol

    Unity Technologies

    Joined:
    Jul 29, 2015
    Posts:
    317
    An update!

    We have found the issue and have created a fix. We are currently in the process of testing it so hopefully we can have it released soon!
     
  3. totsboy

    totsboy

    Joined:
    Jul 12, 2013
    Posts:
    253
    Any update on this? Should I just downgrade to 5.2 and test it there?
     
  4. mpinol

    mpinol

    Unity Technologies

    Joined:
    Jul 29, 2015
    Posts:
    317
    Hey @totsboy,

    I believe this fix is going to go out in the next patch, 5.3.3p2, which I believe should be released sometime soon. I do not know the exact date or time but I will ask around and update this once I know for sure.

    https://unity3d.com/unity/qa/patch-releases
     
  5. totsboy

    totsboy

    Joined:
    Jul 12, 2013
    Posts:
    253
    Ok, thanks for the quick reply!
     
  6. foxOM

    foxOM

    Joined:
    Sep 16, 2013
    Posts:
    1
    Hi @mpinol

    Could this bug be related to a crash I'm experiencing on Play to Verify (to send test data)? Game plays fine but when UA is activated in settings window and then hit Play I experience a d3d9.dll violation error and crash.

    Thanks
     
  7. totsboy

    totsboy

    Joined:
    Jul 12, 2013
    Posts:
    253
    Patch 5.3.3p2 has been released but the issue is not listed on the fixes, do you know if it was fixed @mpinol ?
     
  8. mpinol

    mpinol

    Unity Technologies

    Joined:
    Jul 29, 2015
    Posts:
    317
    Hey @totsboy,

    This fix was all set for p2 and unfortunately it was a little late for review so it did not make it to the release. It has already been submitted for p3 and is ready to go as soon as the next patch is released. I apologize for this delay, I know how important of a bug this was!

    Hi @foxOM,

    Are you experiencing a crash from a WebGL build or are seeing the crash occur while playing from the editor?
     
  9. mpinol

    mpinol

    Unity Technologies

    Joined:
    Jul 29, 2015
    Posts:
    317
    The fix for this issue has just be released. I tested the latest patch release, 5.3.3p3, and it looks like WebGL builds are now sending Analytics events correctly. Can you please download the latest patch and let me know if you are still experiencing this issue?

    https://unity3d.com/unity/qa/patch-releases

    Thank you for you patience and understanding while we were working on this!
     
  10. TestTubeGames

    TestTubeGames

    Joined:
    Dec 9, 2014
    Posts:
    5
    I think I'm still experiencing the bug, even after updating to 5.3.3p3.

    My game is posted on iOS and Android - and I'm getting analytics data from those. But I'm not getting anything from WebGL, even with hundreds of people having played it.

    Though, since I'm getting *nothing*, as opposed to just unreliable, as your initial post states, makes me wonder whether it's the same problem after all? For me, 'WebGL users' doesn't even show up in the 'platform' list of the analytics data explorer.
     
  11. erika_d

    erika_d

    Unity Technologies

    Joined:
    Jan 20, 2016
    Posts:
    413
    Hi @TestTubeGames,

    Does it look like the data is wrong in the All Current Users segment as well? We only have default segments for Android and iOS, so it is expected behavior that WebGL isn't showing up in the platform list, however, you can add it by manually creating a segment. There are instructions for creating that segment here: http://forum.unity3d.com/threads/missing-platforms.389632/#post-2539824.

    If you do not think that simply creating the segment will fix your issue (i.e. if All Current Users seems wrong also), can you fill out a support ticket here with your project ID so we can look into it.

    This is a very high priority issue, so if there is still a bug, we definitely want to look into it ASAP! Thanks!
     
  12. TestTubeGames

    TestTubeGames

    Joined:
    Dec 9, 2014
    Posts:
    5
    Thanks for the quick response, @erika_d! I didn't realize I had to build the WebGL segment, so I went ahead and did that, thanks.

    Though the overall problem still stands. The Total User # = Android + iOS users. So it doesn't seem to be picking up on the WebGL users at all. Will submit a ticket, thank you.

    ----

    Edit: It looks like the problem is fixed -- it just took 24 hours or so after I uploaded the new version for the Analytics events to come through.

    Thanks for your work on it!
     
    Last edited: Mar 15, 2016
    mpinol and erika_d like this.
  13. erika_d

    erika_d

    Unity Technologies

    Joined:
    Jan 20, 2016
    Posts:
    413
    Hi @TestTubeGames,

    Thanks so much for updating your post! Really glad to hear that it was just a matter of waiting a processing cycle or two for the data to show up!
     
  14. totsboy

    totsboy

    Joined:
    Jul 12, 2013
    Posts:
    253
    It was working fine for me until a couple days ago, and then I stopped receiving custom events almost entirely.
    It still shows DAU and also how many custom events, but it does not show the string value related to the event.
    Is there any delay or problem going on? I did not make any changes or updates during this change,
     
  15. mpinol

    mpinol

    Unity Technologies

    Joined:
    Jul 29, 2015
    Posts:
    317
    Hey @totsboy,

    Would you mind sending me a direct message with your project ID so that I can take a look?
     
  16. totsboy

    totsboy

    Joined:
    Jul 12, 2013
    Posts:
    253
  17. CanisLupus

    CanisLupus

    Joined:
    Jul 29, 2013
    Posts:
    427
    Hey, @mpinol

    Is this problem still supposed to happen on Unity 5.3.4? Our dashboard is not showing any custom events from WebGL builds, even though it seems to send unity.sceneLoad just fine. Custom events are being sent from the Editor, so it doesn't look like our code or setup is to blame. We have also waited several days for data to be processed (supposedly some hours suffice), but nothing changed.

    Regards,
    Daniel
     
  18. mpinol

    mpinol

    Unity Technologies

    Joined:
    Jul 29, 2015
    Posts:
    317
    Hey @CanisLupus,

    The patch should have gone out in 5.3.3p3, is your game live somewhere you can link to? Are you building to any other platforms? Would you also mind sending me a private message with your project id so that I can take a look?

    Thanks!
     
  19. CanisLupus

    CanisLupus

    Joined:
    Jul 29, 2013
    Posts:
    427
    To anyone reading, @mpinol and I had a conversation about this. We talked about Unity only sending events at intervals of 5 minutes or when a transaction event happened, which for a short game like ours could result in most events not being sent.

    However, it seems that the timer wasn't the culprit. It was my dumbness. :rolleyes: I was sending enums as-is in the parameters for our custom events, and I should have been using .ToString() on them. The events I saw from the Editor that were working were earlier versions of events which had no enums. Sorry for wasting your time on this!

    It was really simple. I must say that I expected the analytics calls to also warn me about wrong parameters with a Debug.LogError instead of simply returning the error about invalid data, but when I figured what they did, I quickly found the problem. Not saying that you are necessarily doing the wrong thing by just returning the error; it's just that I expected otherwise. ;)
     
    Last edited: May 18, 2016
    mpinol likes this.