Google Analytics-使用客户ID作为自定义维度 [英] Google Analytics - Using Client ID as a custom dimension

查看:113
本文介绍了Google Analytics-使用客户ID作为自定义维度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以在报告中使用客户ID作为维度吗?客户端ID在维度和指标"资源管理器中未显示为维度,但我相信可以创建一个自定义维度来存储客户端ID.我的最终目标是每个客户/日期+时间有一行,其中包含在特定时间与特定客户相关的事件,例如网页访问,特定事件等

Can I use client ID as a dimension in my reports? Client ID does not appear as a dimension in the Dimensions and Metrics Explorer, but I believe I can create a custom dimension that will store the Client ID. My end goal is to have a row per customer/date+time containing the incidents associated with the particular customer at the particular time, e.g. page visits, particular events etc

推荐答案

在GA中创建了自定义维度后,您就可以通过analytics.js使用以下代码开始对其进行跟踪:

Once you've created the custom dimension in GA, you can start tracking it via analytics.js with the following code:

ga(function(tracker) {
  // Assumes dimension is at index 1.
  tracker.set('dimension1', tracker.get('clientId'));
});

这篇关于Google Analytics-使用客户ID作为自定义维度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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