事件价值? Google分析/测量协议 [英] Event Value ? Google analytics / measurement protocol
问题描述
当我使用测量协议使用事件跟踪时,如何使用事件值/查看它。目前在谷歌分析用户界面的事件选项卡中,我可以检查类别,操作,但不能看到与发送给GA的相关值。
谢谢
$首先,确保你传递了一个正确的值给值
参数。 值
参数需要一个整数值(不是字符串),例如 // bad
_gaq.push(['_ trackEvent','Category','Action','Label',some random string]);
$ b $ // bad
_gaq.push(['_ trackEvent','Category','Action','Label',123]);
$ b //好
_gaq.push(['_ trackEvent','Category','Action','Label',123]);
第二,类别,操作和标签都是尺寸;你在给定报告的左边看到了什么。另一方面,价值是一个度量;你在报告的右侧看到了什么。这是您查看事件报告并查看类别/操作/标签报告时所看到的实际数字的原因。维度是事件的原因。维度值是每行的唯一值。度量是维度的量词,例如例如:
code>事件类别总计事件唯一事件事件值平均值。价值
--------------------------------------------- ---------------------------
某些类别20 8 0 0
另一类别18 12 0 0
值
最后2列由您指定的内容填充对于 _trackEvent
调用中的值
参数。事件的默认值为0.所以,如果您没有设置它,那么您将在事件值和平均值中看到0。值列。
因此,假设您的网站上的某些链接和按钮上添加了事件跟踪功能。假设你有一些东西连接起来以便在某个按钮上触发以下内容:
_gaq.push(['_ trackEvent','链接和按钮','点击','CTA','买我!',1]);
为了简化独特活动,我们会说所有10次点击都是由同一个人。但请注意,唯一身份活动是按访问者扣除的 Total Events
值。
在您的类别报告中,您应该看到如下所示的内容:
事件类别总计事件唯一事件事件值平均值。价值
--------------------------------------------- ---------------------------
链接和按钮10 1 10 1
$ b 事件值由总事件*值
计算,其中 value
是您在 _trackEvent
调用中指定的值。由于您将值指定为1,并且有10次点击,因此在事件值列中共计10次。
值由事件值/总事件
计算。所以在这种情况下,你有10个事件和10个事件总值,因为它们是1个值,所以平均值是1.
<$ p $ (''trackEvent','链接和按钮','点击','标题链接','语言',1])在你的标题语言链接上输入
;
//在您的CTA按钮上
_gaq.push(['_ trackEvent','链接和按钮','点击','CTA','buy me!',2]) ;
现在我们假设标题语言链接被点击了10次,并且cta按钮被点击了5次(再次,请不要关注独特活动,因为这会因有多少人点击而有所不同)。这是你应该看到的:
事件类别总事件唯一事件事件值平均值。价值
--------------------------------------------- ---------------------------
链接和按钮15 2 20 1.3
如果您将事件标签视为维度,则会看到如下所示的内容:
事件标签总计事件唯一事件事件值平均值价值
--------------------------------------------- ---------------------------
语言10 1 10 1
购买我! 5 1 10 2
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. The value
argument expects an integer value (not string), e.g.
// bad
_gaq.push(['_trackEvent', 'Category', 'Action', 'Label', "some random string"]);
// bad
_gaq.push(['_trackEvent', 'Category', 'Action', 'Label', "123"]);
// good
_gaq.push(['_trackEvent', 'Category', 'Action', 'Label', 123]);
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:
Event Category Total Events Unique Events Event Value Avg. Value
------------------------------------------------------------------------
some category 20 8 0 0
another category 18 12 0 0
value
Those last 2 columns are populated by what you specify for the value
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:
_gaq.push(['_trackEvent', 'Links and Buttons', 'click', 'CTA', 'buy me!', 1]);
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 Category Total Events Unique Events Event Value Avg. Value
------------------------------------------------------------------------
Links and Buttons 10 1 10 1
Event Value is calculated by Total Events * value
where value
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
// on your header language link
_gaq.push(['_trackEvent', 'Links and Buttons', 'click', 'header links', 'language', 1]);
// on your CTA button
_gaq.push(['_trackEvent', 'Links and Buttons', 'click', 'CTA', 'buy me!', 2]);
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:
Event Category Total Events Unique Events Event Value Avg. Value
------------------------------------------------------------------------
Links and Buttons 15 2 20 1.3
If you look at the event label as the dimension instead, you will see something like this:
Event Label Total Events Unique Events Event Value Avg. Value
------------------------------------------------------------------------
language 10 1 10 1
buy me! 5 1 10 2
这篇关于事件价值? Google分析/测量协议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!