How to use event value / view it when I use event tracking with measurement protocol. Currently in events tab in google analytics UI, I can check category , action but cant see the value associated with it that I sent to GA.
Thanks
How to use event value / view it when I use event tracking with measurement protocol. Currently in events tab in google analytics UI, I can check category , action but cant see the value associated with it that I sent to GA.
Thanks
First off, make sure you are passing a correct value to the
value
argument. Thevalue
argument expects an integer value (not string), e.g.2nd, Category, Action, and Label are dimensions; what you see on the left side of a given report. Value, on the other hand, is a metric; what you see on the right side of the report. This is what makes for the actual numbers you are looking at when you go to your events reports and look at category/action/label reports. A dimension is what the event was. dimension values are unique values per row. A metric is a quantifier for the dimension, e.g. how many times the event happened, or averages, etc..
For example:
value
Those last 2 columns are populated by what you specify for thevalue
argument in the_trackEvent
call. The default value for an event is 0. So if you don't set it, all you are going to see is 0's in the Event Value and Avg. Value columns.So let's say you have event tracking added on some links and buttons on your site. Let's say you have things wired up to trigger the following on a certain button:
For simplifying Unique Events we'll say all 10 clicks were done by the same person. But note that Unique Events is a per visitor deduped
Total Events
value.In your category report you should see something like this:
Event Value is calculated by
Total Events * value
wherevalue
is what you specified in the_trackEvent
call. Since you specified the value as 1, and there were 10 clicks, that makes for a total of 10 in the Event Value column.Avg. Value is calculated by
Event Value / Total Events
. So in this scenario you have 10 events and a total event value of 10 since they are 1 value each, so the average value is 1.Another example, let's say you have a regular link that you want to give a value of 1 per click, and you want to give you CTA links a higher value of 2 since they are worth more
now let's say the header language link was clicked 10 times and the cta button was clicked 5 times (again, don't pay attention to Unique Events since this will vary depending on how many people click what). This is what you should expect to see:
If you look at the event label as the dimension instead, you will see something like this: