browserslist / browserslist-ga

🦔 Target browsers tailored to your audience using Google Analytics
MIT License
303 stars 18 forks source link

Google blocks the app #26

Open CyberAP opened 4 years ago

CyberAP commented 4 years ago

For some reason the app is blocked by Google, I am getting this error when trying to connect the app to my Google account:

Logging with Google account is temporary blocked for this application You can't log into the app using Google account because the app has not yet been verified

Or something like that, I have the warning in Russian, so it's not worded exactly like that.

dmfrancisco commented 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).

dmfrancisco commented 4 years ago

@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).

image

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
CyberAP commented 4 years ago

@dmfrancisco, thanks, will try!

pierremanceaux commented 4 years ago

Any news from Google so far? :))

dmfrancisco commented 4 years ago

@pierremanceaux Not yet… 😕

carloscuesta commented 4 years ago

Can't wait for Google to approve this 🙏

pierremanceaux commented 4 years ago

Np @dmfrancisco , thanks for the heads up! Looking forward too, amazing feature 👍

melfa commented 4 years ago

As i see, app is working now.

keithws commented 4 years ago

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.

mauriciabad commented 4 years ago

Not working for me neither

melfa commented 4 years ago

This is strange, but is works for me, both npm version 0.0.12 and github version run as npx github:browserslist/browserslist-ga

dmfrancisco commented 4 years ago

I haven't heard from Google yet unfortunately… it has been like this since December:

image

And because of that, it quickly reaches the limit every month:

image

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.

CyberAP commented 4 years ago

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.

dmfrancisco commented 4 years ago

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.

oboxodo commented 3 years ago

@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?

dboulet commented 3 years ago

@oboxodo: take a look at browserlist-ga-export. I’ve been using it as a workaround with good success.

oboxodo commented 3 years ago

Thank you @dboulet! That's exactly what I was looking for.

saltyandsmiling commented 3 years ago

Can anyone elaborate or put a link here to where you "create a google app"? Those instructions are a little vague.

ghost commented 2 years ago

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

edward-simpson commented 2 years ago

Yup #26 (comment) doesn't work anymore, I get an invalid request with a correct and working client ID

Error 400: invalid_request

allypalanzi commented 1 year ago

same issue as above.

brookjordan commented 11 months ago

I’m getting this:

Screenshot 2024-01-02 at 11 44 48 AM