Google Analytics能够跟踪Mixpanel等多个事件参数吗? [英] Is there any way for Google Analytics to track multiple event parameters like Mixpanel?

查看:141
本文介绍了Google Analytics能够跟踪Mixpanel等多个事件参数吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

鉴于:

  _trackEvent(类别,操作,opt_label,opt_value,opt_noninteraction)

我尝试使用opt_label,但它似乎只是一个字符串,并且不接受像Mixpanel那样的不同参数的散列。



我怀疑其中一项工作是使用自定义变量?但文件似乎令人困惑。欣赏任何建议。

虽然您当然可以在Google Analytics中完成此项工作,但其他分析服务(如Mixpanel,KISSmetrics,Kontagent,等专门从事事件分析,给你更多的灵活性。话虽如此,您可以破解Google Analytics(分析)事件模型以获取您要查找的内容。



如果您想在Google Analytics I中跟踪每个事件的多个参数'd建议将你想跟踪的参数填入事件标签。这是可行的,原因有两个:事件标签可能非常长(实际上可笑的是很长),Google Analytics提供了灵活的过滤和分段选项。 所以,在前面的答案中讨论过,你可以有一个跟踪视频播放细节的事件,如下所示:

  _gaq.push([ '_trackEvent','Videos','Play','title:MoreCatLolz,
percentPlayed:63,adShown:true,res:480p,fullScreen:false']);

我们所做的只是将一些任意参数放入事件标签字符串中,我们可以稍后再拖出来。要分析结果,您可以过滤事件报告,以显示MoreCatLolz视频的广告展示次数: b
$ b



或者,使用高级细分和正则表达式,您可以统计用户观看至少90%任何视频的访问次数: b $ b



要跟踪持久用户数据,例如名称,加入日期,级别,购买次数等,我建议使用访客级自定义变量,这些变量会自动包含在每个跟踪调用(包括事件)中,并允许您应用许多相同的分析技术。


Given:

_trackEvent(category, action, opt_label, opt_value, opt_noninteraction)

I tried with opt_label but it seems like it's just a string and doesn't accept a hash of different parameters like Mixpanel do.

I suspect one of the the work around is using custom variables? But the docs seems confusing. Appreciate any advice.

解决方案

While you can certainly make this work in Google Analytics, other analytics services like Mixpanel, KISSmetrics, Kontagent, etc specialize in event analysis and give you more flexibility. Having said that, you can hack the Google Analytics event model to get what you’re looking for.

If you want to track multiple parameters for each event in Google Analytics I’d suggest cramming the parameters you want to track into the event label. This is workable for two reasons: Event labels can be really long (ridiculously long, actually) and Google Analytics provides flexible filtering and segmentation options.

So, to extend an example discussed in an earlier answer, you could have an event for tracking video play details that looks like this:

_gaq.push(['_trackEvent', 'Videos', 'Play', 'title:MoreCatLolz, 
    percentPlayed:63, adShown:true, res:480p, fullScreen:false']);

All we've done is toss a few arbitrary parameters into the event label string in such a way that we can pull them out later. To analyze the results you could filter your event reports to show, say, the number of times the ‘MoreCatLolz’ video was shown with ads:

Alternately, using advanced segments and regex, you could count the number of visits in which users watched at least 90% of any video:

To track persistent user data, such as name, join date, level, purchase count, etc., I’d suggest using visitor-level custom variables which are automatically included with every tracking call (including events) and allow you to apply many of the same analysis techniques.

这篇关于Google Analytics能够跟踪Mixpanel等多个事件参数吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆