View the value of a Google Analytics event

I am using GA to track events for an Android app.

I track the event in the usual way:

t.send(new HitBuilders.EventBuilder()
.setCategory(getString(categoryId))
.setAction(getString(actionId))
.setLabel(getString(labelId))
.setValue(longValue)
.build());

      

I can see the event in my reports, but I can only see the total amount of the event. How can I see the rejection of all values ​​that I have submitted?

+3


source to share


1 answer


You can not. This is not the argument value

. This means the metric (what you see on the right side of the report, the thing that adds up). If you want to see these values ​​separately (as a dimension), you will have to rebuild what you send to include it in category

, action

or label

.

Update:

But I want to use them as a metric. I want to create a custom report with these values ​​as metrics and with another custom dimension I have created. I even asked this in another question: stackoverflow.com/questions/30213318 / ...

Ok, I guess you don't understand what is the difference between measurement and metric. Measurement tells you what , for example. what event took place or what item was viewed. The metric tells you " quantity ", for example. how many times the event happened or how many videos were consumed.

So, you are putting a specific number as value

for your events, which is a metric, but you want to see the individual values ​​that you sent. That's not what metrics do. If you want to see the individual numbers, that's why I said you need to restructure how you send those values. Instead, you must send them as category

, action

or label

. Then you should be able to do what you want, for example:

Let's say I am creating a custom report or dashboard. There I can select the sizes and metrics I want. Is there a way to somehow select a regular event as a metric? Let's say I received an event with the label "label1", then I want a report with a date dimension and the metric "label1". Is it possible?

Then you can select the date as a dimension and then select category

, action

or label

as the dimension of the second dimension. This will show you how many of them happened on a specific date. Or you can flip it over, for example. use category

as primary dimension and then date as second and it will show you a breakdown by date.

But you cannot put category

, action

or label

into a column of indicators. This makes no sense. As mentioned, metrics show how much or how much is being measured. The only exception value

is the metric portion of the event. But the metric column does not display individual values. You can read more about how it is value

displayed in reports here .

value

means a value to measure, eg. establish an order of importance. For example, if you have an onsite registration system and a visitor can register for a free or premium account, then from the PoV conversion, the registration will be more valuable to you. So, for example, you can give a free registration event a value of 1, but the reg premium is set to 2.

Or it can be used in other ways such as the recording time taken for a video, for example. every 5 seconds a video is played, you expose an event with values, for example. Video, Some Video Name, Time Consumed and Value 5. Then you can use this value metric to see things like total time / battery life for a given video.

TL; The DR: . This event will allow you to send the 3 measurements ( category

, action

, label

) and metric ( value

) to indicate the weight / number to it. You are trying to use value

as if it were a dimension when it was not. You are also trying to use dimensions as metrics when they are not. I think you really want to split one dimension (like "Date") into another dimension (like category

), and you also need to figure out how to write what you are currently putting in value

as one of the dimension args.

Update # 2:



I actually thought of sizes and metrics as a SQL table where sizes are primary keys and metrics are a regular column that will hold the value I will give it when I submit the metric. So I wanted to see, for example, the measurement date and user id that cannot be repeated and in the metrices columns just look at every value that I posted, so you are really wrong.

Ultimately everything is stored in the database, yes, but this note is as simple as a straight, single table with records, with simple queries. This is significantly more difficult when it comes to analytics.

If I compared it with the SQL table, the size of ( category

, action

, label

) would have the columns. Then each line will represent a hit (where you call the event) and have values ​​for them, eg.

Category       Action       Label
Some Category  Some Action  Some Label
Some Category  Some Action  Some Label
Category 2     Some Action  Some Label

      

Now the db / table structure actually looks different. It is split into multiple tables, etc., but this will be done for an example.

Now the metrics, on the other hand, will be more similar, for example. Let's say you are using category

as a dimension and you just want to see the number of attempts to write category values. So (again, simplifying it) it would look something like this:

select Category,count(Category) as `Total Events` from Table group by Category

      

So in the SQL results, you will have rows showing your values category

and "Total Events" showing the sum of each one, for example.

Category            Total Events
Some Category       2
Category 2          1

      

Thus, the Category results column is a dimension, but the Total Events result column is a metric. So when you say, for example, "I want to use label

as a metric," that doesn't make sense as it tries to use the value of "Some Category" and use it in an aggregated context, for example. "Some Category" + "Category 2" = ??

doesn't make sense!

So, if you want to see the individual values ​​you pass in value

, you will need to track it as a value in category

, action

or label

(or you can set a custom variable with your event) and then add it as a dimension to your report.

+6


source







All Articles