谷歌分析用户资源管理器获取用户报告 [英] Google analytics user explorer get user report

查看:77
本文介绍了谷歌分析用户资源管理器获取用户报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用GA API从用户资源管理器获取用户报告。未能在此处找到任何有关它的信息 https://developers.google.com/analytics/。例如,在用户资源管理器(受众群体部分)中,您可以看到一个ID列表为11111111111.2222222222的记录列表,我希望通过GA API获取有关用户在网站上记录的信息11111111111.2222222222。


  ga(function(){
var trackers = ();
trackers.forEach(function(tracker) $ b});

在pageview之前,将这个客户端ID写入您的自定义维度,索引为1(您需要通过属性 - >自定义定义中的界面预先创建)。还应该在同一页面上使用多个跟踪器。



这当然不会帮助您处理已收集的数据。


How do I get user report from user explorer, using GA API. Didn't manage to find any information about it here https://developers.google.com/analytics/. For instance in user explorer (audiences section) you can see a list of records having ids like 11111111111.2222222222 and I want to get information about user activity on the website for record with id 11111111111.2222222222 using GA API

解决方案

While the latest GA release notes says the client ids have been "surfaced" (i.e. made visible) it is (at least currently) not available as a dimension via the API. So if you want to use it you'd have to add the client id as a custom dimension to your reports yourself. Off the top of my hat this should look something like this:

ga(function() {
  var trackers = ga.getAll();
  trackers.forEach(function(tracker) {
    tracker.set('dimension1',tracker.get('clientId'));
  });
});

Put before the pageview this would write the client id to your custom dimension with the index 1 (which you need to create in advance via the interface in properties->custom definitions). Should also work with multiple trackers on the same page.

This will of course not help you with data that's already been collected.

这篇关于谷歌分析用户资源管理器获取用户报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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