Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google analytic "GET A CONFIGURATION FILE" doesn't let me to select my account

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?

enter image description here

like image 554
Akbarsha Avatar asked Oct 22 '15 11:10

Akbarsha


People also ask

Why can't I access my Google Analytics account?

It may be that the last person who managed your Google Analytics left your company without giving you the account credentials, or you've switched to a new agency and your former agency didn't give you the account login information.

How do I enable my Google Analytics account?

Create an Analytics accountIn Admin, in the Account column, click Create Account. Provide an account name. Configure the data-sharing settings to control which data you share with Google. Click Next to add the first property to the account.


1 Answers

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!

like image 177
Yshanae Avatar answered Oct 30 '22 20:10

Yshanae