Search Unity

Saving data to a CSV file from WebGL

Discussion in 'Multiplayer' started by megandove36, Feb 15, 2020.

  1. megandove36

    megandove36

    Joined:
    Dec 31, 2018
    Posts:
    3
    Hi,

    I've created a Tetris-based experiment in Unity, in which I need to export data such as the amount of lines cleared per level, and total scores etc. I've tried doing this using Unity Analytics custom events. This worked OK, however I cannot see each individul users' data as it just shows aggregated data (I think it would be possible with the Raw Data Extract feature, however, I am not willing to pay £150 for Unity Pro).

    My next thought is to write all the data to a CSV file. I have uploaded my WebGL build to Simmer.io, embedded it into my HTML site and am currently hosting the site on a University web server. How would I go about writing to the CSV file from here?

    Thank you!
     
    Laaevin likes this.
  2. megandove36

    megandove36

    Joined:
    Dec 31, 2018
    Posts:
    3
    SOLVED: I've managed to do this using google sheets :)
     
    Laaevin likes this.
  3. Laaevin

    Laaevin

    Joined:
    Sep 10, 2012
    Posts:
    10
    Would you mind sharing details on how to did this?
     
  4. megandove36

    megandove36

    Joined:
    Dec 31, 2018
    Posts:
    3
    I ended up saving to Google Sheets through Google Forms with this tutorial:


    Hope this helps!
     
    Laaevin likes this.