自定义变量的一个系列文章,共有三部分,分别讲述三个基本自定义变量(访问者级、会话级、页面级)的不同应用,本文先是总体地简要介绍了自定义变量,然后说明了使用访问者级自定义变量的一个实例。下文由译者肖庆原创翻译自谷歌亚太区转化教室博客,原文在这里。
Custom Variables allow website owners to extend Google Analytics’ measurement capabilities and track information that is meaningful to them. In this series of three articles, Barbara Pezzi, Director of Analytics and Search Optimisation for Fairmont Raffles Hotels International, shares how she makes use of custom variables to understand how to engage more effectively with her customers. – Ed.
自定义变量允许网站所有者扩展谷歌分析的测量能力并且跟踪对其有意义的信息。在这个三篇连载的系列文章中,Fairmont Raffles Hotels International的分析总监兼搜索优化师Barbara Pezzi与我们分享了她如何利用自定义变量来了解如何更积极地与抓牢其客户。
One of the latest features of Google Analytics that I’m excited about is Custom Variables. Google Analytics has a very extensive list of default dimensions and metrics, such as time on site and traffic sources, that it tracks for your website. While these dimensions and metrics cover most websites’ needs, every website and business is unique, with its own set of objectives and goals. You might want to track certain visitor segments or user behaviour that is not reflected in the default set of metrics.
令我兴奋的谷歌分析新功能之一便是自定义变量。谷歌分析有很多默认的维度和指标,比如网站停留时间,流量来源等,以用来跟踪网站。尽管这些维度和指标涵括了大部分网站的需求,每个网站和企业却又是独特的,有着他们自己设定的目的和目标。你可能想跟踪不在默认维度中反映的特定访问者群体或者用户的行为。
Custom variables allow you to extend Google Analytics’ default metrics and dimensions to track information that is meaningful to you by labelling interactions with your site at three levels: visitor, session and page. You can then segments and run custom reports based on these variables. You can learn all about the technical implementation of custom variables in the Google Analytics Code Site.
自定义变量在三个级别(访问者、会话、页面)的对你网站的互动进行标记,从而允许你扩展谷歌分析的默认维度和指标以跟踪对你有用的信息。然后,你可以基于这些自定义变量细分群体或者运行自定义报告。你可以在谷歌分析编码网站了解所有关于自定义变量的技术应用。
The possibilities are endless with custom variables. You could for example:自定义变量的可能性无穷无尽。比如,你可以:
We use custom variables for a number of purposes on our Fairmont and Swissotel websites. Over the next few weeks, I will walk you through three examples, one for each variable type (visitor, session, page).
我们在Fairmont 和 Swissotel这两个网站使用自定义变量做多种用途。在接下来几周,我将分享三个案例,每个自定义变量类型一个(访问者级、会话级、页面级) 。
Loyalty Members – Visitor-level custom variables忠诚会员-访问者级自定义变量
A segment of our customers that we focus on because of their value to us are our loyalty program members. When a customer signs up to our Club Swiss Gold program, they start as a ‘Classic’ member, and then progress to become an ‘Elite’ member.这是我们关注的一个客户细分,因为他们对我们的会员忠诚计划具有很大价值。当客户注册我们的金牌计划,他们成为“经典”会员,然后逐步成为杰出会员。
We want to understand the difference in behaviour and purchase patterns between our Classic and Elite members. Google Analytics can’t easily provide us with that insight by default, but with visit-level custom variables, we can answer this question.我们想了解经典会员和杰出会员在行为和购买方式上的不同。谷歌分享默认不会轻易给我们提供这些视图,但是通过访问级自定义变量,我们可以回答这个问题。
Visitor-level custom variables allows us to distinguish categories of visitors across multiple sessions. We are essentially bucketing our users into our own custom categories. Visitor-level custom variables are best used for attributes of a visitor, such as their membership level or product preference, that you wish to track over multiple visits.访问者级自定义变量允许我们在多个会话间区别不同类别访问者。我们使我们的用户分组到我们自己的自定义分类。访问者级自定义变量十分适合用作给访问者赋值,比如他们的会员级别或者产品偏好,这些你希望跟踪不同访问的信息。
On our Swissotel site, we set the visitor-level custom variable whenever a member logs in by inserting a line of code into our Google Analytics tracking code. The code involved is very simple: a single function placed above the trackPageview() call on the same page:
在我们的网站,当会员登录时,我们通过插入一行代码到谷歌分析跟踪码中设置访问者级自定义变量。涉及到的代码很简单:放置在同一页面且位于trackPageview() 之前的一个简单的函数。
_gaq.push(['_setCustomVar', 1, 'Membership', 'logged_in_classic', 1]);
We are now able to distinguish between members and non-members as well as membership levels. Within the custom variable report, I can now see at a glance information like site usage, goal conversion data, and ecommerce data, which is broken down by membership levels.
我们现在可以区别会员和非会员以及不同的会员等级。在自定义变量报告中,我现在可以看到网站使用情况,目标转化数据,电子商务数据等信息,这些数据通过会员级别进行了划分。
I can use this custom variable to create an advanced segment for additional insights, such as countries of our classic members and conversion rates across countries. We use these insights to identify any potential deficiencies in language coverage or regional product preference.
我可以使用自定义变量来为额外的透视数据创建高级细分,比如我们经典会员的国家以及不同国家的转化率。我们使用这些透视数据来识别任何在语言覆盖或者区域产品偏好方面的潜在缺陷。
Or, we can look at which property classic members book the most and use that insight to create more offers for popular hotels and increase bookings for less popular properties.或者,我们可以查看哪个经典会员预订了最多,并且使用那个透视数据为受欢迎的酒店创建更多促销活动并且增加那些不太受欢迎酒店的预订。
We are now in the process of updating our loyalty program, and these insights are invaluable in helping us make improvements based on our customers’ preferences.我们现在在更新我们的忠诚计划的过程中,这些数据对于帮助我们基于客户偏好的改进价值是无法估量的。
Stay tuned for part two of this series, in which I’ll cover how we use session-level custom variables on Fairmont’s sites.敬请关注这个系列的第二部分,在第二部分中我们将讲述在Fairmont的网站我们是如何使用会话级自定义变量的。
Posted by Barbara Pezzi, Director of Analytics and Search Optimisation, Fairmont Raffles Hotels International
Fairmont Raffles Hotels International,分析总监兼搜索优化师,Barbara Pezzi发表