Google Analytics(分析)V3 - 如何为API服务帐户创建自定义细分 [英] Google Analytics V3 - How to create custom segments for API Service Accounts

查看:149
本文介绍了Google Analytics(分析)V3 - 如何为API服务帐户创建自定义细分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要通过报告API访问Google Analytics中的自定义细分。除了自定义细分不能在Google Analytics中设置的多个配置文件/用户之间共享外,没有任何问题,因此必须为每个配置文件创建细分。



在使用通过Google API控制台生成的服务帐户的情况下,必须为该帐户创建分段。如何使用具有客户ID,电子邮件地址和公钥指纹的服务帐户登录Google Analytics以便能够为其设置细分?



目前尚未您可以使用Google AnalyticsManagement API创建细分受众群。



编辑:

截至2013年7月9日,Google Analytics(分析)添加了对自定义维度和指标的访问权限。现在可以查询自定义维度而无需创建额外的分段,所以我的问题根源已经消失。

目前无法为服务帐户创建细分。正如您所建议的,您需要能够登录GA帐户才能创建该帐户,这对于服务帐户来说是不可能的。现在唯一的选择是使用动态细分查询Core Reporting API。

I need to access custom segments in Google Analytics via reporting the API. There is no trouble with it, except that custom segments are not shareable across multiple profiles/users set in Google Analytics, so a segment has to be created for each profile.

And in the case of using a Service Account generated through Google API's Console, segments have to be created for that account – how do I log in to Google Analytics with a Service account having Client ID, email address and public key fingerprint to be able to set segments for it?

It is not currently possible to create segments with the Google Analytics Management API.

Edit:

As of July 9, 2013 Google Analytics added access to custom dimension and metrics. Now it is possible to query custom dimensions without the need to create additional segments, so the roots of my problem have disappeared.

解决方案

It currently is not possible to create segments for a service account. As you suggested you'd need to be able to login to the GA account to create it, which is not possible with a service account. The only option right now is to use dynamic segments when querying the Core Reporting API.

这篇关于Google Analytics(分析)V3 - 如何为API服务帐户创建自定义细分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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