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

Analytics and WebGL, possible CORS issue?

Discussion in 'Unity Analytics' started by JanusAnderson, Apr 21, 2016.

  1. JanusAnderson

    JanusAnderson

    Joined:
    Apr 30, 2013
    Posts:
    27
    I've integrated Analytics and have been using it successfully during my game's alpha (see http://stormwarsgame.com) with no issues. However, I now have published a beta on Kongregate that is being served through a locked iFrame. It's the exact same webGL build but it does not look like I am getting any data from the Kongregate client, while the web, PC, and Mac clients seem to be working just fine.

    In the developer log I can see the [Game] StatServices.submit calls being made and am not seeing any specific CORS errors, but somehow the data is being lost. Any idea what I could try to fix the issue? I'm sailing blind in the beta right now :)
     
  2. mpinol

    mpinol

    Unity Technologies

    Joined:
    Jul 29, 2015
    Posts:
    317
    Hi @JanusAnderson,

    Would you mind messaging me your project id so that I can take a look? Thank you for all of the information as well, it is certainly going to save me some time!
     
  3. JanusAnderson

    JanusAnderson

    Joined:
    Apr 30, 2013
    Posts:
    27
    Hi Mpinol,

    Apparently I spoke to soon - I am now seeing data on the analytics page, there was at least a full day latency I think but definitely better than nothing.

    the Project name is 'StormWars' in case you want to look at it. Thanks for the response :)
     
    mpinol likes this.