If you’ve spent any time looking through your traffic sources in Google Analytics, particularly your referral sources, you may have noticed a lot of your traffic coming various mail sources:
如果你花些时间查看你的谷歌分析中的流量来源,尤其是其中的网址来源,你可能会发现很多的流量来自于邮件:
Clearly it’s not terribly useful to see your traffic broken out this way. At the very least, you would want to consolidate all of those mail.yahoo.com sources.
很显然,查看像这样乱七八糟显示的流量并不太有用。至少来说,你会想合并所有的来自mail.yahoo.com的流量来源。
But if you think about it, it probably doesn’t matter a whole lot which email service provider a visitor happened to be using when they clicked to your site. Perhaps it’d be better if we just consolidate all of those email sources into one entry. Not only would this significantly clean up reports, but it would also allow you to see the overall impact of traffic coming from email to your site.
但在如果你仔细思量,点击进入网站的用户使用哪个邮件服务提供商其实并不太重要。或许,我们只需合并所有这些邮件来源到一个记录会更好些。这不仅会很明显地清理报告,还能够让你看到来自邮件的整体流量报告。
The easiest way to handle this is by using filters:
最简单的方法是使用过滤器:
The easiest way to handle this is by using filters:
While this is called a custom advanced filter, it’s fairly straightforward. If you noticed in the first screenshot, all of traffic coming from email had “mail” somewhere in the source and “referral” as the medium. So this filter takes all of that traffic and changes the source of that traffic to webmail.
尽管这叫做高级自定义过滤器,其实很简单明了。如果你在第一个截图中注意了,会发现所有来自邮件的流量在流量来源中的某个位置有“mail”,媒介是“referral”。因此,这个过滤器将采纳所有的那些流量并把它转化为webmail。
Also note that we set “Field B Required” to “Yes” and “Override Output Field” to “Yes”. Both of these settings are necessary in order for this filter to work. The first setting ensures that we only change data for visits that fit the requirement we set in Field B, while the second one ensures that all visits that meet the filter requirements will have their source overridden with “webmail”.
同时也请注意,我们设置”字段B为必填”为“是”,“覆盖输出字段”为“是”。这两个设置对于过滤器运行是必需的。第一个设置是确保我们仅仅改变满足“字段B”设置的条件的数据,而第二个是为了确保所有满足该过滤器条件的访问者其来源用“webmail”来替换。
Once you’ve applied this filter to your reports, your email visits going forward will be consolidated into a single entry:
webmail / referral
一旦你在报告中应用了该过滤器,来自邮件的访问将被合并成一个单一记录:
webmail / referral
Now if you tend to look at your traffic sources by medium, you’ll notice that even after this filter, webmail traffic is still included with the rest of your referral traffic:
现在,如果你打算通过媒介查询流量来源,你将注意到即使在此过滤器正常运行之后,webmail的来源依然还包含在你其他的网址引荐流量中。
If you’re OK with this, that’s fine, but it is possible to separate your email traffic out by adding a second filter in addition to the first filter:
如果你满足于此,没问题,但是还可能通过在第一个过滤器的基础上再增加第二个过滤器来分离你的邮件流量。
This is similar to our previous filter, but here we specify that we want to filter on visits with a source of “webmail” and change the medium of those visits to “webmail”. Filters build on each other, so it’s important that this filter come after the previous filter, otherwise it won’t find any visits with “webmail” as the source.
这跟我们之前的过滤器类似,但是在此我们特定想通过“webmail”的流量来源过滤访问,并且把那些访问的媒介转换为“webmail”。过滤器建立在彼此之上,因此这个过滤器排在前一个之后是非常重要的,否则你不会看到任何来自“webmail”的流量来源。
After you make this change, your report on mediums should look more like the following:
在更改之后,你流量来源中的媒介报告将会如下面这样:
This makes it much easier to differentiate between true site referrals and traffic that’s coming from email.
这使真实的网址引荐及来自邮件的流量区分开来,让事情简单多了。
Here are a couple final considerations:
这是一些最后要考虑的东西:
1.使用高级过滤器通过流量来源来区分各种邮件是可能的。也就是说你可以拥有yahoo/webmail,aol/webmail,等等。这些过滤器要复杂得多,而且,为什么需要知道邮件访问是来自aol还是yahoo,这也可能是一个问题。
2.获得很多邮件来源也可能是你没有正确标注邮件的一个征兆。如果这些是你发出去的邮件,特别是来自某些自动发送器,那么你应该考虑用某种方法标注它们。
译者:肖庆。翻译自:http://www.roirevolution.com/blog/2011/01/handling_email_referrals_in_google_analytics.php