Search Unity

  1. Improved Prefab workflow (includes Nested Prefabs!), 2D isometric Tilemap and more! Get the 2018.3 Beta now.
    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. Let us know a bit about your interests, and if you'd like to become more directly involved. Take our survey!
    Dismiss Notice
  4. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  5. 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:
    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:
    86
    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