Search Unity

Analytics not working on WebGL only (ok on mobile)

Discussion in 'Unity Analytics' started by Dliix66, Apr 9, 2018.

  1. Dliix66

    Dliix66

    Joined:
    Sep 5, 2017
    Posts:
    16
    Hello everyone,

    I'm having trouble getting analytics working on WebGL. I have a project running on Android/iOS/WebGL and I only receive my events from the Android/iOS builds (please note that the builds are exactly the same for all platforms).

    Also, I don't see any error in my JS console on the WebGL build..

    After looking at the forums, I couldn't find a reason or a fix...

    Any ideas ?

    Thank you for your help !
     
  2. Benvictus

    Benvictus

    Joined:
    Sep 12, 2013
    Posts:
    87
    Hi @Dliix66

    Can you please create a support ticket via the support tab in your project's dashboard?

    I will be able to take a look into the events being received and hopefully find the cause for the missing events.

    Kind regards.
     
  3. Dliix66

    Dliix66

    Joined:
    Sep 5, 2017
    Posts:
    16
    Hi @Benvictus,

    Thank you for your help. I have managed to find a solution after submitting a support ticket. It was linked to the new Facebook SDK (11.X). They removed a library by accident (Facebook.Canvas) which caused my analaytics module to fail to initialize. Thus it was not able to send any event either to Unity or Facebook. Downgrading to SDK v10.X fixed my problem.

    Thanks again,

    Regards