Open CyberAP opened 4 years ago
@CyberAP Thanks for opening this issue 👍
Google updated the user limit for apps that have not been approved. I submitted the app for approval yesterday but it may take some time…
In the meantime, maybe you can create your own Google App? I don't have time to try it out at the moment, but let me know if you have any issues (such as this).
@CyberAP I tried creating a Google App and it seems to work fine. You need to add some metadata in the consent screen section, and then simply create an OAuth Client ID. You need to select "iOS" and you can put any string in the "Bundle ID" field (this is because there's no CLI option anymore, so iOS is the most similar).
Alternatively, I created this temporary app that you can use for now. Hope this helps:
BROWSERSLIST_GA_CLIENT_ID=64751005694-kdnlb8f0miegd0mqrckjhqcq42344l19.apps.googleusercontent.com npx browserslist-ga
@dmfrancisco, thanks, will try!
Any news from Google so far? :))
@pierremanceaux Not yet… 😕
Can't wait for Google to approve this 🙏
Np @dmfrancisco , thanks for the heads up! Looking forward too, amazing feature 👍
As i see, app is working now.
It's not working for me. I get the following error.
Sign in with Google temporarily disabled for this app This app has not been verified yet by Google in order to use Google Sign In.
Not working for me neither
This is strange, but is works for me, both npm version 0.0.12 and github version run as npx github:browserslist/browserslist-ga
I haven't heard from Google yet unfortunately… it has been like this since December:
And because of that, it quickly reaches the limit every month:
Maybe people that have already authorized the app successfully in the past won't get the error. For everyone else I'm afraid the only solution is to create your own app by following the steps above.
Maybe readme should now state that browserslist-ga requires for you to create a Google App (with provided instructions), instead of using a public App for that? And remove public App key completely in that case. That should fix the issue and provide a reliably working guide.
Makes sense, I added a link to this 👍 Still no answer from Google. Best way for now is to create your own free google app.
@dmfrancisco: Creating a custom google app works but... isn't there a way for us to just manually export the google analytics data to a file and have browserslist-ga
parse the data from there offline as a workaround?
@oboxodo: take a look at browserlist-ga-export. I’ve been using it as a workaround with good success.
Thank you @dboulet! That's exactly what I was looking for.
Can anyone elaborate or put a link here to where you "create a google app"? Those instructions are a little vague.
Using temp solution as noted here: https://github.com/browserslist/browserslist-ga/issues/26#issuecomment-568583144
I get the following response:
GaxiosError: Google Analytics API has not been used in project 64751005694 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/analytics.googleapis.com/overview?project=64751005694 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.
at Gaxios.<anonymous> (/home/johan/.npm/_npx/64293/lib/node_modules/browserslist-ga/node_modules/gaxios/build/src/gaxios.js:73:27)
at Generator.next (<anonymous>)
at fulfilled (/home/johan/.npm/_npx/64293/lib/node_modules/browserslist-ga/node_modules/gaxios/build/src/gaxios.js:16:58)
at processTicksAndRejections (internal/process/task_queues.js:95:5) {
response: {
config: {
url: 'https://www.googleapis.com/analytics/v3/management/accounts',
method: 'GET',
paramsSerializer: [Function (anonymous)],
headers: [Object],
params: [Object: null prototype] {},
validateStatus: [Function (anonymous)],
responseType: 'json'
},
data: { error: [Object] },
headers: {
'alt-svc': 'h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"',
'cache-control': 'private',
connection: 'close',
'content-encoding': 'gzip',
'content-type': 'application/json; charset=UTF-8',
date: 'Wed, 01 Jun 2022 06:56:18 GMT',
server: 'ESF',
'transfer-encoding': 'chunked',
vary: 'Origin, X-Origin, Referer',
'x-content-type-options': 'nosniff',
'x-frame-options': 'SAMEORIGIN',
'x-xss-protection': '0'
},
status: 403,
statusText: 'Forbidden'
},
config: {
url: 'https://www.googleapis.com/analytics/v3/management/accounts',
method: 'GET',
paramsSerializer: [Function (anonymous)],
headers: {
'Accept-Encoding': 'gzip',
'User-Agent': 'google-api-nodejs-client/0.7.2 (gzip)',
Authorization: 'Bearer ya29.a0ARrdaM8C_wqbCdx3q-0wEDrJp3gYKUDW3j1r1BmByf6mzazCPmYCuLs4mw-uOtKlTvjcsEXxFWu5ZaogBT-BivN2DfduflNx-22oBPhUZMmBrYqx3qb7W5bQkVxo-YuvtVquS6sS36QaWl3wjHTlzSdS8nS-',
Accept: 'application/json'
},
params: [Object: null prototype] {},
validateStatus: [Function (anonymous)],
responseType: 'json'
},
code: 403,
errors: [
{
message: 'Google Analytics API has not been used in project 64751005694 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/analytics.googleapis.com/overview?project=64751005694 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.',
domain: 'usageLimits',
reason: 'accessNotConfigured',
extendedHelp: 'https://console.developers.google.com'
}
]
Also tried setting up client myself but it complaints it needs secure redirect url
Yup #26 (comment) doesn't work anymore, I get an invalid request with a correct and working client ID
Error 400: invalid_request
same issue as above.
I’m getting this:
For some reason the app is blocked by Google, I am getting this error when trying to connect the app to my Google account:
Or something like that, I have the warning in Russian, so it's not worded exactly like that.