Search Unity

  1. Unity 2018.3 is now released.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. We've updated our Terms of Service. Please read our blog post from Unity CTO and Co-Founder Joachim Ante here
    Dismiss Notice
  4. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  5. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice

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:
    6
    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

    Unity Technologies

    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:
    6
    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