Playmaker Forum

PlayMaker News => General Discussion => Topic started by: escpodgames on April 27, 2014, 12:51:32 AM

Title: Game analytics (Jean)
Post by: escpodgames on April 27, 2014, 12:51:32 AM
Hey Jean,

Just setting up Game analytics in my game using the inbuilt actions but noticed there is a task in Trello for Game analytics which you are currently 'doing'. What are the fixes? and should I stop setting up my analytics with the old actions (only using Design and Business events)
Title: Re: Game analytics (Jean)
Post by: jeanfabre on April 28, 2014, 06:06:09 AM
Hi,

 I would wait indeed. It's a matter of few days and coordination before we get a release it seems.

It's not really just about "fixes", but more to come to par with the latest GA api and tools, as well as a tigther integration of PlayMaker and GA.

Bye,

 Jean
Title: Re: Game analytics (Jean)
Post by: escpodgames on May 09, 2014, 11:33:36 PM
The newest version of game analytics is up on the asset store with the new playmaker integration for any of you who are looking at using it. Now to see what's new. Thx Jean!
Title: Re: Game analytics (Jean)
Post by: jeanfabre on May 13, 2014, 07:36:51 AM
Hi,

 You are welcomed :) don't hesitate to give us feedback on this as you progress in your implementation of GameAnalytics in your projects.

Bye,

 Jean
Title: Re: Game analytics (Jean)
Post by: jess84 on June 01, 2014, 05:38:09 PM
I've just started implementing GameAnalytics into my project.

What is actually required in order to start seeing data on the dashboard on my game's page on the GameAnalytics.com site?

I signed up for my new account from within Unity, so all of my IDs and secret strings match my project on the website.


When playing my game in Unity, with the GA_StatusWindow open, I can see that it's submitted my Design event successfully.
I've also built and played my windows standalone and Android builds and played them through to the end of the first level.

Should this be enough to see *something* logged on my dashboard?

Annoyingly, they're having server problems at the moment (have been all day!), so I don't know whether my data was received and just not processed, or whether something isn't set up correctly and it's never going to appear.

Should my 2 steps be enough to see something?
Title: Re: Game analytics (Jean)
Post by: jess84 on June 02, 2014, 06:05:09 AM
Anyone?

My dashboard info still says no data, but the Unity window shows that info was successfully sent.  (Half of those events were sent 16 hours ago, the others, about 30mins ago).
Title: Re: Game analytics (Jean)
Post by: escpodgames on June 02, 2014, 06:36:37 AM
Most analytics services take 48hrs to update, this could be the case?
Title: Re: Game analytics (Jean)
Post by: jess84 on June 02, 2014, 06:48:43 AM
They say some elements take 24 hours, like custom events. But from what I read, standard data should be much, much quicker.

I guess I'll leave it until tomorrow.

From what I've listed about what I've done, that should be enough, right? I haven't missed any steps in order to be able to get data to GA systems?
Title: Re: Game analytics (Jean)
Post by: jeanfabre on June 03, 2014, 04:15:00 AM
Hi,

You would get errors and feedback in the Unity console if things where not set up properly.

 Bye,

 Jean
Title: Re: Game analytics (Jean)
Post by: jess84 on June 03, 2014, 10:06:19 AM
Great.

And it's all working now.

They had (possibly still) some massive problems this week - e.g data from Friday not being processed until Monday afternoon! They say they've caught up with the backlog now, but the realtime data is still delayed a bit.

Now it's time to think about how to structure my custom events  :)
Title: Re: Game analytics (Jean)
Post by: jess84 on June 03, 2014, 12:01:06 PM
Looking at the GA site and their examples of custom Design Events
(http://support.gameanalytics.com/hc/en-us/articles/200841636-Creating-meaningful-custom-events)

In their example here:
Code: [Select]
An actual event sent to the server might look something like this:

{
   "user_id" : "8f64a3b5-84c9-4932-9715-48e9456654b1",
   "session_id" : "f81fc6bd-0d70-44f3-a3d2-9a3056d6d66f",
   "build" : "DesignTest",
   "event_id" : "Death:Weapon:Shotgun",
   "value" : 15,
   "area" : "Level 1",
   "x" : 13.7,
   "y" : 172.6,
   "z" : 76.1
}

How would this be possible when the PlayMaker action 'Send Design Event' doesn't contain a field for 'Area'. ?

Should the PM action have this field?
Title: Re: Game analytics (Jean)
Post by: jeanfabre on June 04, 2014, 12:39:04 AM
Hi,

 as it says, this is how it looks "on the server".

 "area" is defined by default as your level name, but you can use "Set custom area"
"user_id" is defined internally by default, but you can override it using "Set Custom User ID"

"session_id" is internal only.
"build" is a property within the GamAnalytics settings ( where you put the key and secret key).


Bye,

Jean
Title: Re: Game analytics (Jean)
Post by: jess84 on June 04, 2014, 07:20:47 AM
Thanks, I'll experiment with that  :)

Next question : To get all of my events into  the GA system, do I have to manually play through my build so it submits each metric?  Or is there a way of submitting everything automatically?  I want to set up my filters and reports on the GA website,  but obviously it doesn't list my custom events yet...  It's only showing the handful that I unlocked accidentally when testing my game.
Title: Re: Game analytics (Jean)
Post by: jess84 on June 04, 2014, 09:12:57 AM
The 'Set Custom Area' action, how should it be used?

In the same state as the Send Design Event? Above it and set as an Action Sequence?

Is it cleared the next time I send a different Design Event? (e.g. defaulting back to the default)

From a user's point of view, it would have been more user-friendly to have this field as an optional field on the Send Design Event field rather than a seperate action.
Title: Re: Game analytics (Jean)
Post by: jess84 on June 05, 2014, 06:13:49 AM
Bump.

Some guidance on how/where to use Set Custom Area would be much appreciated. I understand what it does from the documentation and what Jean has written here,  but how/when/how often to use the action is not clear and is not documented.

Thanks.

Title: Re: Game analytics (Jean)
Post by: jeanfabre on June 05, 2014, 07:00:23 AM
Hi,

 "area" is a way to filter your data, it's by default the scene you are in, but on complex project, scenes may not reflect anything valuable ( like compositing several scenes to form a complex levek, and so you define your area is you want.

 it could be like "Level 1", Level 2" typically.

and so once you set a custom area, ALL events logged will belong to this area.

In your dashboard, you will then be able to filter by area, and create widgets where area is part of the equation to pull data in a meaningfull way for your specific game.

only set a custom area once, don't force the value again and again, set it when the user click on "play" or "next level" typically.

Bye,

 Jean
Title: Re: Game analytics (Jean)
Post by: jess84 on June 05, 2014, 07:35:48 AM
So does it reset on level load?

If I'm setting it up for each of my levels, I just need to use the action once just after loading? Then when the next scene is loaded it defaults back to the GA default of using the scene name?
Title: Re: Game analytics (Jean)
Post by: jeanfabre on June 05, 2014, 08:11:32 AM
Hi,

I would enquire with them directly. I am not sure about the behavior of their datas and if it reverts if you load a scene and don't set a custom area then.

Bye,

 Jean
Title: Re: Game analytics (Jean)
Post by: jess84 on June 05, 2014, 10:33:46 AM
I just had a reply from GA.

The Custom Area is carried over across different scenes that are loaded, so if you want to set it back to the default area (scene name), you need to set a blank entry.

The PlayMaker action should therefore probably accept an empty field - at the moment it gives an error if left blank.
Title: Re: Game analytics (Jean)
Post by: jeanfabre on June 06, 2014, 12:59:33 AM
Hi,

 Good, thanks for the headsup. I wasn't aware of the reverting option.

 My guess is that as soon as you start using custom areas, it's because Unity scenes dont' relate anymore, so it's unlikely that you would revert in the middle of the game to the default behavior, but for the sake of completness I'll update that action.

 Bye,

 Jean
Title: Re: Game analytics (Jean)
Post by: jess84 on June 06, 2014, 01:30:49 AM
Great, thanks.

In my case, I use 1 scene per 10 levels of my game - so use custom area for reporting accurately, I also want to use the same info on my results screen, and then I revert to the default for my menus and other screens. 

I think Set Custom Area will be used quite a lot by others too.
Title: Re: Game analytics (Jean)
Post by: jeanfabre on June 06, 2014, 06:50:30 AM
Hi,

 Fair enough.

the fix currently is to create an empty string variable, let's say "empty string", and feed that into the custom area action, then the error will be gone and you will have your way to use default area.


 Bye,

 Jean