Search Unity

  1. Full schedule for #UniteBerlin is now available! Featuring talks on our roadmap, hands-on labs and much more! Check it out!
    Dismiss Notice
  2. Unity 2018.1 has arrived! Read about it here
    Dismiss Notice
  3. Scriptable Render Pipeline improvements, Texture Mipmap Streaming, and more! Check out what we have in store for you in the 2018.2 Beta.
    Dismiss Notice
  4. ARCore is out of developer preview! Read about it here.
    Dismiss Notice
  5. Magic Leap’s Lumin SDK Technical Preview for Unity lets you get started creating content for Magic Leap One™. Find more information on our blog!
    Dismiss Notice
  6. Want to see the most recent patch releases? Take a peek at the patch release page.
    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:
    5
    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:
    61
    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:
    5
    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