AppFusions 的权限问题 Google Confluence 的分析插件

Permissions Issue with AppFusions Google Analytics plugin for Confluence

我最近安装了 AppFusion 的 Google Confluence 分析插件,但是当我在 space 的页面上时,我点击“查看谁查看了此页面”,我得到一个永远加载的框,说明它正在从 Google Analytics 中获取信息。

检查日志,这是我得到的:

2015-09-16 20:38:33,423 ERROR [http-nio-8090-exec-9] [plugins.googleanalytics.utils.DataFeedUtils] getGaData  ++ Oh heck:  GoogleJsonResponseException -- 403 Forbidden
{
  "code" : 403,
  "errors" : [ {
    "domain" : "global",
    "message" : "User does not have sufficient permissions for this profile.",
"reason" : "insufficientPermissions"
  } ],
  "message" : "User does not have sufficient permissions for this profile."
}
 -- referer: https://confluenceURL | url: /rest/googleanalytics/1.0/content/page/47843376/pageviews/2015-08-16/2015-09-16 | userName: email@email.com

有关设置插件的信息,请参阅此处:https://www.appfusions.com/display/GANLC/Documentation

您通过身份验证的用户无权访问您在代码中设置的 Google Analytics 配置文件。

要么授予您正在验证的用户从该帐户读取的权限。或使用具有访问权限的帐户进行身份验证。

在这种情况下,第 4 步未选择网站配置文件:Select 网站配置文件 在插件配置屏幕中,因此记录的错误是 轻微误导。

Google Analytics Administration 中创建了一个 属性,然后在插件配置屏幕(如下)中选择了一个配置文件,一切又开始工作了。