Google analytic“GET A CONFIGURATION FILE”不让我选择我的帐户 [英] Google analytic "GET A CONFIGURATION FILE" doesn't let me to select my account

查看:145
本文介绍了Google analytic“GET A CONFIGURATION FILE”不让我选择我的帐户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从最新的v4文档中完成了可用的谷歌分析集成。我们需要从

解决方案

site ,您可以使用您想要使用的属性ID从您的第一个帐户修改json文件。这是他们的答案:


尽管目前看起来并不如此,但它目前仍在按预期工作。可能有更新来解决这个问题,但同时您可以复制现有的配置文件并对其进行编辑。例如,在配置JOSN文件中,您会看到类似以下内容的条目:
您必须更改的是Google Analytics跟踪ID值。服务:{
analytics_service:{
status:2,
analytics_property:{
tracking_id:UA-XXXXX-YY
}
},



将UA-XXXXX-YY值替换为要使用的属性ID(对于GA帐户)。您可以使用帐户资源管理器查找正确的资产ID: https:// ga-dev -tools.appspot.com/account-explorer/



请注意,Tracking ID和Property ID的含义相同。


希望这有助于您!


I've a working google analytics integration done from the latest v4 documentation. Where we need to GET A CONFIGURATION FILE from here

But facing the following issue

I've two different tracking id for two separate apps on my google analytics account. For first app I got the google-services.json file which I placed inside the root directory and everything is working fine.

When I follow the steps to create the google-services.json for second app it doesn't let me to switch my account (see the attached pic - it takes the first account from my google analytics)

How I should create a separate google-services.json file for separate property id?

解决方案

From what is said on this site by Google, you can modify the json file from your first account with the property Id you want to use. Here is their answer:

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.

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" } },

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/

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

Hope this helps!

这篇关于Google analytic“GET A CONFIGURATION FILE”不让我选择我的帐户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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