I want to use google analytics to collect raw data send from a mobile game that I'm currently developing under unity, the game is an endless runner and I want to collect the "player_score" and the "level_name" each time the game ends.
so inside my GA account I have created a property with 2 custom dimensions "player_score" and "level_name" and set them to active, I am using events to send data to GA using the following code:
EventHitBuilder eventHitBuilder = new EventHitBuilder();
eventHitBuilder.SetEventCategory("game")
.SetEventAction("test")
.SetEventLabel("test")
.SetCustomDimension(1, levelName)
.SetCustomDimension(2, score);
googleAnalytics.LogEvent(eventHitBuilder);
My questions are:
- Is this a correct manner to configure GA to collect these data? if no what is the correct way to do it? if yes where can I find the collected data?
- Am I right when I used custom dimensions I have also heard about something called custom metric?
Ps: it's my first experience with GA, if the answers are very long just direct me and give me references I can handle.
thanx.