Jump to content
  • Advertisement
Sign in to follow this  
phil_t

Unity Free game analytics

This topic is 760 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have text parser based game, and I want to collect analytics on phrases the player enters that don't get a proper response. Mainly for beta-testing (though it would be nice to have it in production code too, but I understand the volume of data could be prohibitive)

 

I'm using Unity. I've checked out the analytics support included with Unity, but it's not really suited to tracking arbitrary strings (you would use up your "analysis points" very quickly).

 

Does anyone know of any other quick and easy solutions I could use? Worse comes to worst, I can just have the game store the data in a file on the player's computer and then have them email it to me. This only works on PC/Mac of course - ideally I'd want it to send the data to a webserver so it would work for WebGL, etc... too. And then they can just play the game, and I can see the data online somewhere.

 

I lease space on a webserver for hosting downloads, etc..., but I'm not very fluent in web development, so I don't feel like writing my own service that would handle these submissions.

Share this post


Link to post
Share on other sites
Advertisement

Thanks for the links. Yeah, I want something simple like the guy at the first link did. Really, all I need is something on the server side than can accept uploads (with some key/password/whatever to validate it's coming from my app) and store them on my server. He's got some Django code snippet there that does that I guess, but I've never even heard of Django. Or boto.

 

I have Open Web Analytics as a one-click install on my webhost, maybe I can get something out of that....

Share this post


Link to post
Share on other sites

Turns out it was very simple (even for this non-web developer) to just cobble something together in php:

 

<html>
 <head>
  <title>PHP Test</title>
 </head>
 <body>
 <?php
 
 parse_str($_SERVER['QUERY_STRING'], $query);
 if ($query["key"] == "MyGameName")
 {
        $thingy = $query["stuff"] . "\r\n";
file_put_contents("somefile.txt", $thingy  , FILE_APPEND);
//var_dump($query);
 }
  else
{
echo '<p>DENIED</p>';
 
}
 
 ?> 
 </body>
</html>

 

And now I can just make an http head request from my game and stick the needed string in the url, and have it appended to a file on my server.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!