we are using a iam.gserviceaccount.com Email adresss to connect our tool with the Google Analytics accounts from our clients.
We have reached the maximum connected accounts, but an upgrade is not possible because we can't response to the emails sent by analytics support.
Is there another way to upgrade it? Or is there another possibility to connect our tool with the analytics API?
We already tried to upgrade the account with the analytics support, but it is not working because of the emailadress.
For normal Google analytics accounts there is a limit to 100 accounts that you can have access to. If you upgraded to a premium account if i remember correctly that number jumps to 250.
You are currently using a service account and granting it access to a number of Google analytics accounts. The service account is going to be bound by the normal user limit of 100 and your not going to be able to increase that.
The problem is that you are using service accounts in correctly. Your not supposed to be giving the service account out to your customers and asking them to add it as a user on their Google analytics account. Service accounts are intended to be used by developers and companies that have access to data and want to share that data with others.
You should be using Oauth2 to gain access to the users data and saving the refresh token in your application which will enable you to request data for the user when ever needed.
By using a service account you are going to be hit with a lot of quota limits because they are shared by the user a user can only make so many requests so fast per day. By using Oauth2 you would be using different users and would not have as many issues with the user based quotas.
Related
I am looking to make a web based app which creates a monthly report that has Google Analytics information in i.e. organic searches etc. Some clients will have their own Google Analytics accounts and wont be own mine.
I managed to get the OAuth 2 authorization working with my account however it wont work for clients as I needed to get the client_secret.json file from Google Developers website. I have seen a service like cyfe.com which just gets the google login information and outs the Google Analytics information in graphs and such.
Does anyone know how they manage this is possible without getting the client_secret.json file ?
oAuth2 is designed to let you access to users data with their permission, without requiring to access their password.
You should use your own client Id and client secret, these identify your application, not your users ("client" here means client of the API).
You then need to create an interface where users can allow your application to access to their data, from this you'll get an access token, allowing to your application to access to Google Analytics data of your user on their behalf.
Read "Using OAuth 2.0 to Access Google APIs", and identify the scenario that matches to what you want to achieve.
I strongly suggest that you use a library managing the authentication flow, you don't need to reinvent the wheel. Here's a list from Google: Google API Client Libraries.
My application needs to fetch Google Analytics data from backend servers.
I am using Google Service Account in my application.
Though I have given all permissions to my service account through Google Developer console, it turns out that my service account cannot access custom segments of my user account.
A way could have been to copy these segments from user account to service account, but there seems like no way to login via service account and be able to copy segments from user account to service account.
So, there seems like no way to be able to fetch custom segments in a web application from backend...
Is there any way to do so?
Can any other account(web application, Installed application account) serve my purpose?
Reading the documentation of above two Google accounts reveals that user would be prompted for authentication (at least once) during authorization in these 2 accounts which is not feasible in backend servers.
I found a similar thread for my query Google Analytics V3 - How to create custom segments for API Service Accounts , but user in this thread resorted to not using segments at all, but I do need to use them in my account.
PS: I am writing my application in RubyOnRails and would be using Ruby Gem for Google Authentication
Answer: No there is no way to add segments to the Service account. Even the Mangment api only allows you to list segments not add them. Segment Management API documentation
An Idea: You could us normal Oauth2 Authenticate it using your account, Save the refresh token someplace and use that in your application to see the data. Then it would be like the Application is always you and would be able to see your segments.
Sorry I don't know ruby so I cant help you with getting the idea working.
Our company is currently developing an application that requires access to multiple Google Analytics accounts via a single Google Developer user. We were successfully able to add this user to approximately 100 Analytics accounts before we ran into the following error:
Unable to add user to account. The user has reached their maximum number of Analytics accounts.
This error has brought our work to a standstill. We would like to know if there is any work around we can implement or upgrade we can purchase in order to raise this account limit.
Okay, we finally got in touch with someone from Google who was able to help us resolve our problem. The first thing we learned is that a single user can be associated with no more than 100 Google Analytics accounts. Next, we learned that there are only two ways around this limit, you can either raise the limit to 1,000 by purchasing Google Analytics Premium ($150,000 per year) or you use a different user for each block of 100 accounts.
I'm accessing the Google Analytics API v3.0 with the .NET client adapter.
This is all working very good, but I'd like to get the account owner e-mail address for a given account that I have access to.
The resource description only has Id, Name, create- and update date.
Is there a way to get more detailed data for this account? Ideally the owner e-mail address or user data would be great. I couldn't find anything in the Analytics API docs, also nothing declaring that this information is NOT possible to get...
Google Analytics account doesn't really have an "owner" per se. Each account can have multiple users with different permissions.
Recently, Google Analytics launched a new permissions model (see this blogpost for more info), and it'll be rolled out to all the users in the coming weeks. Currently, this information is not available though the Analytics API, but feel free to file a feature request here.
I am a web developer, and offer the creation of Google Analytics accounts for clients. To save them messing around with veifying email accounts, I like to create them a gmail account, get it all set up then just send them the password.
However, Google is asking for verification by Mobile and I have now reached the "verification limit".
I kind of understand why Google don't want spam accounts, but is there no way to regsiter as a developer and then create accounts for clients? Something like apps for business, but just for standard Google accounts.
Thanks #CrayonViolent it looks like profiles is the way forward
I would be a mistake to use profiles for multiple clients. For one, each client would be prevented from using more than one profile. And there is a limit of 50 profiles per account.