博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
segment:?co?_如何跟踪用户动作并了解它们:Segment + MixPanel
阅读量:2518 次
发布时间:2019-05-11

本文共 9968 字,大约阅读时间需要 33 分钟。

segment:?co?

Here at Tryolabs we’re used to work in different kinds of projects, generally involving Python backends, and Javascript frontends.

在Tryolabs,我们习惯于从事不同类型的项目,通常涉及Python后端和Javascript前端。

Some of the projects are applications for private or internal usage, and others are for public usage (i.e for the everyday person). What all of those projects’ applications have in common is that they all have a user base.

其中一些项目是供私人或内部使用的应用程序,而其他项目则是供公共使用的(即,针对普通人)。 这些项目的所有应用程序的共同点是,它们都有用户群。

Therefore, it’s natural for our clients to want to know as much as possible about that user base, whether for improving their business, or just out of curiosity.

因此,我们的客户很自然地想要尽可能多地了解该用户群,无论是出于改善业务还是出于好奇。

眼前的问题 (The problem at hand)

Once having noticed this common need/requirement we can better define the problem at hand in a more concrete way:

一旦注意到了这个共同的需求/要求,我们就可以以更具体的方式更好地定义当前的问题:

Given an application, we want to:

给定一个应用程序,我们要:

– Know who its users are.

–了解其用户是谁。

– Know what those users are doing.

–了解这些用户在做什么。

– Improve the application based on available information.

–根据可用信息改进应用程序。

Hence, we, as developers (and/or maintainers) of these applications need to (in an agile manner and according to our work methodology) be able to track “user actions” quickly and in a way that adapts our projects’ spectrum.

因此,作为这些应用程序的开发人员(和/或维护人员),我们需要(以敏捷的方式并根据我们的工作方法)能够以适合我们项目范围的方式快速跟踪“用户行为”。

Regarding this, we also need to allow our clients to visualize or somehow interpret these actions, and to get the insight or value they need from them.

关于这一点,我们还需要让我们的客户可视化或 以某种方式解释这些行为,并从中获得他们所需要的见识或价值。

After discussing with fellow co-workers and some online researching, and so as not to reinvent the wheel, we came to the conclusion that Segment was the tool for the job.

在与同事讨论并进行了一些在线研究之后,为了避免浪费时间,我们得出结论,Segment是完成这项工作的工具。

Custom reports: Segment + Mixpanel.

自定义报告:细分+混合面板。

[ ] ([])

这是什么 (What it is)

Segment is a platform that allows developers to track fully customizable actions (on server and client side), automatically associating relevant information for each one, such as timestamps, IP address, identification of the (possibly anonymous) user who triggered the event, device of origin and user defined information.

Segment是一个平台,允许开发人员跟踪完全可自定义的操作(在服务器和客户端),自动为每个操作关联相关信息,例如时间戳,IP地址,触发事件的(可能是匿名)用户的标识,来源和用户定义的信息。

Segment then gathers this information into a hub, and allows you to send the data virtually anywhere, literally with the flip of a switch.

然后,Segment将这些信息收集到一个集线器中,并允许您几乎在任何地方都可以通过轻按一下开关将数据发送到任何地方。

In the Segment terminology, the actions are called Events, and the relevant information are called Properties.

在细分术语中,动作称为事件,而相关信息称为属性。

关键方面 (→ Key aspects)

易于整合 (Easy to integrate)

Segment’s library has three main methods which help us tackle two of the three parts of our problem. The Identify method allows us to determine if a customer is new or not, as

Segment的库具有三种主要方法,可帮助我们解决问题三个部分中的两个。 识别方法使我们能够确定客户是否是新客户,如下

1) Putting the Segment snippet into the site or app.

1)将细分代码段放入网站或应用中。

2) Tracking customer data, such “click on submit button” or “focus out form” events using one of the Segment libraries.

2)使用细分库之一跟踪客户数据,例如“单击提交按钮”或“聚焦表单”事件。

3) Turn on integrations to forward data to any of all the third party tools available (there’re A LOT of them)

3)打开集成以将数据转发到所有可用的第三方工具中(其中有很多)

客户资料 (Customer data)

With segment we can attack two of the tree parts of our problem. The Segment library’s Identify method allows us to tell if a customer is new or not, and to tie him/her to the actions they make. That is, we can know who our users are.

使用段,我们可以攻击问题的两个树部分。 细分库的Identify方法使我们能够判断客户是否是新客户,并将其与他们所采取的行动联系起来。 也就是说,我们可以 知道我们的用户是谁。

The Track and Page methods allow us to send to “the hub” our super customized events, and to know what page of our site they were in when they triggered those events. That is, we can know what those users are doing.

Track和Page方法允许我们将超级自定义事件发送到“中心”,并知道它们触发这些事件时所处的站点页面。 也就是说,我们可以 知道这些用户在做什么。

We’ll discuss the third part of our problem down below.

我们将在下面讨论问题的第三部分。

多个库(服务器端和客户端浏览器以及移动端) (Multiple libraries (server side and client side browser and mobile))

Segment provides libraries for a wide variety of languages, allowing to record events on the server side, the front end, and on mobile applications

Segment提供了用于多种语言的库,从而可以记录服务器端,前端和移动应用程序上的事件

它与Google Analytics(分析)有什么区别? (What differentiates it from Google Analytics?)

As Peter Reindhart’s CEO has stated, Segment’s mission is to make it easy for the user (us in this case) to have control over his data. Segment does so by allowing the user the flexibility to define the (already mentioned) extremely customized events and gather them all in their “hub”.

正如Peter Reindhart的首席执行官所说,Segment的任务是使用户(在本例中为我们)可以轻松控制自己的数据。 通过允许用户灵活地定义(已经提到的)极其定制的事件并将其全部收集在“集线器”中,Segment可以做到这一点。

Also, Segment allows to send these events to a wide variety of external services, Google Analytics included, which is focused (as its name indicates) on analytics, doing an excellent job at it.

此外,Segment允许将这些事件发送到各种外部服务(包括Google Analytics(分析)),该服务专注于分析(顾名思义),从而做得很好。

What’s left is the third part of our problem, that is improve the application based on available information, and that’s where MixPanel comes in.

剩下的就是我们问题的第三部分,那就是 基于可用信息改进应用程序 ,这就是MixPanel的用武之地。

[ ] ([])

MixPanel is one of the many many integrations available of Segment, and although it’s a very powerful tool and can be used standalone, we’ve found they work really well together.

MixPanel是Segment可用的许多集成之一,尽管它是一个非常强大的工具,可以单独使用,但我们发现它们可以很好地协同工作。

It takes care of interpreting the raw data captured by segment, interprets it and and allows us, and most importantly non-technical users, to visualize and query the data.

它负责解释按段捕获的原始数据,对其进行解释,并允许我们(最重要的是非技术用户)可视化和查询数据。

If we register at MixPanel, set up a Project, and input the Project’s API KEY and TOKEN into Segment, we’ve already hooked them together. That way, all the Segment events we’ve defined will be forwarded automatically to MixPanel.

如果我们在MixPanel上注册,设置项目并将项目的API KEY和TOKEN输入到Segment中,则我们已经将它们挂钩。 这样,我们定义的所有Segment事件将自动转发到MixPanel。

→关键方面 (→ Key aspects)

订婚 (Engagement)

The MixPanel interface has different ways to visualize the received Events. The main one is the Segmentation panel, where you can see the volume of Events (top 12 by default) per unit of time (hour/day/week). Of course, you can filter the graph and see only the volume of the Events you’re interested in.

MixPanel界面有多种方式可视化接收到的事件。 最主要的是“细分”面板,您可以在其中查看每单位时间(小时/天/周)的事件量(默认情况下排名前12位)。 当然,您可以过滤图形并仅查看您感兴趣的事件的数量。

Another way to visualize Events is the Live View panel, which consists of a live feed of the incoming events, showing for each one the city and country the user who triggered the event is in (this is an example of how MixPanel interprets the raw data (IP Address) captured originally by Segment), browser, and referring domain, among others.

可视化事件的另一种方法是“实时查看”面板,该面板由传入事件的实时提要组成,每个事件触发事件的用户所在的城市和国家(这是MixPanel如何解释原始数据的示例(IP地址)最初是由细分),浏览器和引荐域捕获的。

In both these panels, and others available, you can also and in a very easy way, query the data. That is basically, filtering results by imposing restrictions to the desired Event’s properties, in a really approachable way for non-technical users.

在这些面板以及其他可用的面板中,您也可以以非常简单的方式查询数据。 基本上,通过对非技术用户真正可行的方式对所需事件的属性施加限制来过滤结果。

漏斗 (Funnels)

Funnels are a great MixPanel feature for measuring engagement. A funnel is an ordered list of Events, which need to be chosen carefully in order for the funnel to make sense. For example, if you have a form where the user needs to fill personal data, and then click a submit button, you can set up the following funnel:

漏斗是一种出色的MixPanel功能,可用于测量参与度。 渠道是事件的有序列表,需要对其进行仔细选择,以使渠道有意义。 例如,如果您具有用户需要填写个人数据的表单,然后单击“提交”按钮,则可以设置以下渠道:

Filled Field A, Filled Field B, …, Filled Field N, Click on Submit Button.

填充字段A,填充字段B,…,填充字段N,单击“提交”按钮。

Having done that, you can see what percentage of the users, reach every step of the “life cycle” of the form.

完成此操作后,您可以看到达到表单“生命周期”每一步的用户百分比。

This is, in my opinion, one of the most valuable features MixPanel provides, since it directly tackles the third part of the problem at hand: Improve the application based on available information.

我认为,这是MixPanel提供的最有价值的功能之一,因为它直接解决了手头的问题的第三部分: 根据可用信息改进应用程序。

Funnel’s example in Mixpanel

混合面板中的漏斗示例

(People)

On MixPanel you can keep track of your users and the Events they trigger. You can also query users by their activity, and by their Events’ properties. For example, “Show all the female users older than 35 years that triggered a certain event at least a certain amount of times”.

在MixPanel上,您可以跟踪用户及其触发的事件。 您还可以通过用户的活动及其事件的属性来查询用户。 例如,“显示所有触发特定事件至少35次的35岁以上的女性用户”。

Then you can for example send a customized email or notification automatically, based on a predefined query.

然后,您可以例如基于预定义的查询自动发送自定义的电子邮件或通知。

打包(TL; DR) (Wrapping up (TL;DR))

Segment is a great tool for developers/maintainers (us) of applications to integrate to projects since it provides libraries in multiple programming languages for backend, frontend and mobile. It is as easily integrable as it can be, fitting perfectly with companies working in an agile manner, and it provides al incredible wide spectrum of destinations where to send your data (virtually assuring that one of them will work for our clients).

Segment是供应用程序的开发人员/维护人员(我们)集成到项目中的出色工具,因为它为后端,前端和移动设备提供了多种编程语言的库。 它尽可能地易于集成,非常适合以敏捷方式开展工作的公司,并且它为发送数据提供了令人难以置信的广泛目的地(实际上确保了其中一个服务于我们的客户)。

MixPanel can receive all the data from segment, interpret it and help non-technical users visualize it, gain insight on their product and user base, and ultimately improve their product.

MixPanel可以接收来自细分市场的所有数据,对其进行解释并帮助非技术用户对其进行可视化,以了解其产品和用户群,并最终改善其产品。

In our experience, both tools are awesome and altogether solve the problem of tracking user actions and making sense of them.

根据我们的经验,这两种工具都很棒,并且完全解决了跟踪用户操作并弄清它们的问题。

They both offer a whole of a lot more than what I exposed here, so check out their documentations and try them for yourselves!

他们俩都提供比我在这里展示的更多的东西,所以请查阅他们的文档并自己尝试!

翻译自:

segment:?co?

转载地址:http://ozhwd.baihongyu.com/

你可能感兴趣的文章
UVA 11346 Probability 概率 (连续概率)
查看>>
linux uniq 命令
查看>>
Openssl rand命令
查看>>
HDU2825 Wireless Password 【AC自动机】【状压DP】
查看>>
BZOJ1015: [JSOI2008]星球大战starwar【并查集】【傻逼题】
查看>>
HUT-XXXX Strange display 容斥定理,线性规划
查看>>
mac修改用户名
查看>>
一道关于员工与部门查询的SQL笔试题
查看>>
Canvas基础
查看>>
[Hive - LanguageManual] Alter Table/Partition/Column
查看>>
可持久化数组
查看>>
去除IDEA报黄色/灰色的重复代码的下划波浪线
查看>>
Linux发送qq、网易邮件服务配置
查看>>
几道面试题
查看>>
【转】使用 WebGL 进行 3D 开发,第 1 部分: WebGL 简介
查看>>
js用正则表达式控制价格输入
查看>>
chromium浏览器开发系列第三篇:chromium源码目录结构
查看>>
java开发操作系统内核:由实模式进入保护模式之32位寻址
查看>>
第五讲:单例模式
查看>>
Python编程语言的起源
查看>>