在为谷歌分析生成配置文件时,不能选择不同的谷歌分析帐户吗

时间:2022-01-29 14:57:16

I have two Google Analytics accounts A and B, each with their own properties which I am attempting to generate configuration files for (more specifically, google-services.json files) in order to use Google Analytics with my Android app. I'm using the Enable Google Services for your app wizard.

我有两个谷歌分析帐户A和B,每个帐户都有自己的属性,我正在尝试为它们生成配置文件(更具体地说,是Google -services)。为了在我的Android应用程序中使用谷歌分析。我正在为您的应用程序向导使用Enable谷歌服务。

When you reach the Choose and configure services step, it should allow you to choose both a Google Analytics account and an Analytics Property from their associated selection boxes every time you run this wizard. The problem is that the selection box for choosing a Google Analytics Account only appears on the first run of this wizard, and afterwards becomes a pre-filled field that cannot be modified.

当您到达选择和配置服务步骤时,它应该允许您在每次运行该向导时从其关联的选择框中选择谷歌分析帐户和分析属性。问题是,用于选择谷歌分析帐户的选择框只出现在该向导的第一次运行中,然后成为无法修改的预填充字段。

This means that if I generate a configuration file for a Property using Account A, I cannot generate another configuration file for a Property using Account B since the wizard pre-fills a non-modifiable text box with Account A, and only Account A's Properties appear in the next selection box.

这意味着,如果我使用Account a为一个属性生成一个配置文件,我就不能使用Account B为一个属性生成另一个配置文件,因为向导用Account a预先填充了一个不可修改的文本框,并且只有Account a的属性出现在下一个选择框中。

How can I generate a google-services.json configuration file for a Property under a Google Analytics Account I cannot switch to?

如何生成google服务。我无法切换到谷歌分析帐户下属性的json配置文件?

I have admin access to both of these accounts, so this is not an issue.

我对这两个账户都有管理权限,所以这不是问题。

The configuration file is necessary for Google Analytics to work once the app is released to the public (as described here).

配置文件对于谷歌分析来说是必要的,一旦应用程序发布给公众(如本文所述)。

Similar unsolved questions have been asked here for Android and here for iOS (both platforms use the same wizard to enable the Google Analytics service).

Android和iOS也有类似的未解决的问题(这两个平台都使用相同的向导来启用谷歌分析服务)。

3 个解决方案

#1


16  

Managed to figure out a very simple workaround to solve my own question: remove yourself from the account you're stuck on, so the wizard is then forced to let you choose another account.

设法找到一个非常简单的解决方法来解决我自己的问题:从你被困的账户中删除你自己,这样向导就*让你选择另一个账户。

To achieve this:

为实现这一目标:

  • Log into Google Analytics and choose the Admin tab.
  • 登录谷歌Analytics并选择Admin选项卡。
  • In the ACCOUNT column, from the drop-down box, choose the account you were bound to (in the Enable Google Services wizard).
  • 在ACCOUNT列中,从下拉框中选择要绑定的帐户(在Enable谷歌Services向导中)。
  • In the same column, choose User management.
  • 在同一列中,选择用户管理。
  • Click the Remove myself from this account button.
  • 从这个帐户按钮中点击删除。

Then go back to the Enable Google Services wizard again and you should now be able to select another account.

然后再次回到启用谷歌服务向导,现在应该可以选择另一个帐户。

I hope this helps others at least until Google fixes the site, as this was a rather annoying problem to solve!

我希望这至少能帮助其他人,直到谷歌修复站点,因为这是一个相当烦人的问题。

#2


5  

I figure out the solution for this issue is that we can move the account to trash. After we create an config file, restore the account.

我想出了解决这个问题的办法,那就是我们可以把这个账户变成垃圾。创建配置文件后,恢复帐户。

Hope this may help

希望这可以帮助

#3


3  

On this page Google staff gave an answer to this bug:

在这页谷歌的工作人员给出了这个错误的答案:

This is currently working as intended even though it may not seem so. There may be an update to fix this but in the meantime you can just copy an existing Configuration file and edit it. The only thing you need to change is the Analytics tracking ID value.

这是目前工作的预期,尽管它可能看起来不是。可能会有更新来修复这个问题,但与此同时,您可以复制一个现有的配置文件并对其进行编辑。唯一需要更改的是分析跟踪ID值。

For example, in the configuration JOSN file you'll see an entry like: "services": { "analytics_service": { "status": 2, "analytics_property": { "tracking_id": "UA-XXXXX-YY" } },

例如,在配置JOSN文件中,您将看到这样的条目:“services”:{“analytics_service”:{“status”:2,“analytics_property”:{“tracking_id”:“ua - xxxx - yy”},

Replace the UA-XXXXX-YY value with the property ID (for the GA Account) you want to use. You can use the Account Explorer to find the correct property ID: https://ga-dev-tools.appspot.com/account-explorer/

用要使用的属性ID(用于GA帐户)替换ui - xxxx - yy值。您可以使用Account Explorer找到正确的属性ID: https://ga-dev-tools.appspot.com/account-explorer/

Note that Tracking ID and Property ID mean the same thing.

注意,跟踪ID和属性ID的含义是相同的。

#1


16  

Managed to figure out a very simple workaround to solve my own question: remove yourself from the account you're stuck on, so the wizard is then forced to let you choose another account.

设法找到一个非常简单的解决方法来解决我自己的问题:从你被困的账户中删除你自己,这样向导就*让你选择另一个账户。

To achieve this:

为实现这一目标:

  • Log into Google Analytics and choose the Admin tab.
  • 登录谷歌Analytics并选择Admin选项卡。
  • In the ACCOUNT column, from the drop-down box, choose the account you were bound to (in the Enable Google Services wizard).
  • 在ACCOUNT列中,从下拉框中选择要绑定的帐户(在Enable谷歌Services向导中)。
  • In the same column, choose User management.
  • 在同一列中,选择用户管理。
  • Click the Remove myself from this account button.
  • 从这个帐户按钮中点击删除。

Then go back to the Enable Google Services wizard again and you should now be able to select another account.

然后再次回到启用谷歌服务向导,现在应该可以选择另一个帐户。

I hope this helps others at least until Google fixes the site, as this was a rather annoying problem to solve!

我希望这至少能帮助其他人,直到谷歌修复站点,因为这是一个相当烦人的问题。

#2


5  

I figure out the solution for this issue is that we can move the account to trash. After we create an config file, restore the account.

我想出了解决这个问题的办法,那就是我们可以把这个账户变成垃圾。创建配置文件后,恢复帐户。

Hope this may help

希望这可以帮助

#3


3  

On this page Google staff gave an answer to this bug:

在这页谷歌的工作人员给出了这个错误的答案:

This is currently working as intended even though it may not seem so. There may be an update to fix this but in the meantime you can just copy an existing Configuration file and edit it. The only thing you need to change is the Analytics tracking ID value.

这是目前工作的预期,尽管它可能看起来不是。可能会有更新来修复这个问题,但与此同时,您可以复制一个现有的配置文件并对其进行编辑。唯一需要更改的是分析跟踪ID值。

For example, in the configuration JOSN file you'll see an entry like: "services": { "analytics_service": { "status": 2, "analytics_property": { "tracking_id": "UA-XXXXX-YY" } },

例如,在配置JOSN文件中,您将看到这样的条目:“services”:{“analytics_service”:{“status”:2,“analytics_property”:{“tracking_id”:“ua - xxxx - yy”},

Replace the UA-XXXXX-YY value with the property ID (for the GA Account) you want to use. You can use the Account Explorer to find the correct property ID: https://ga-dev-tools.appspot.com/account-explorer/

用要使用的属性ID(用于GA帐户)替换ui - xxxx - yy值。您可以使用Account Explorer找到正确的属性ID: https://ga-dev-tools.appspot.com/account-explorer/

Note that Tracking ID and Property ID mean the same thing.

注意,跟踪ID和属性ID的含义是相同的。