我目前在分析中有大约100个站点,跨越几个不同的Google账户,而一个单一的账户拥有每个站点的完全权限。如果可能的话,我想避免手动为Google服务账户添加每个分析配置文件的权限。
我正在使用Google Analytics PHP Interface。
当尝试使用$delegate_email参数模拟用户时,我会得到以下异常:
我正在使用Google Analytics PHP Interface。
当尝试使用$delegate_email参数模拟用户时,我会得到以下异常:
GAPI: Failed to authenticate user. Error: "{
"error": "unauthorized_client",
"error_description": "Unauthorized client or scope in request."
}
我在其他地方读到过需要使用Google Apps管理控制台'委派域范围的权限给服务帐户'。但是我们根本没有使用Google Apps。有什么解决办法吗?
tl;dr 是否有一种方法可以使用服务帐户并模拟用户而无需使用Google Apps来获得对Google Analytics的只读访问权限?