Coder Social home page Coder Social logo

Comments (22)

CyberAP avatar CyberAP commented on August 18, 2024 12

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.

from browserslist-ga.

dmfrancisco avatar dmfrancisco commented on August 18, 2024 7

@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

from browserslist-ga.

melfa avatar melfa commented on August 18, 2024 3

As i see, app is working now.

from browserslist-ga.

edward-simpson avatar edward-simpson commented on August 18, 2024 3

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

Error 400: invalid_request

from browserslist-ga.

keithws avatar keithws commented on August 18, 2024 2

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.

from browserslist-ga.

dboulet avatar dboulet commented on August 18, 2024 2

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

from browserslist-ga.

pierremanceaux avatar pierremanceaux commented on August 18, 2024 1

Any news from Google so far? :))

from browserslist-ga.

dmfrancisco avatar dmfrancisco commented on August 18, 2024 1

@pierremanceaux Not yet… 😕

from browserslist-ga.

carloscuesta avatar carloscuesta commented on August 18, 2024 1

Can't wait for Google to approve this 🙏

from browserslist-ga.

pierremanceaux avatar pierremanceaux commented on August 18, 2024 1

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

from browserslist-ga.

saltyandsmiling avatar saltyandsmiling commented on August 18, 2024 1

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

from browserslist-ga.

brookjordan avatar brookjordan commented on August 18, 2024 1

I’m getting this:

Screenshot 2024-01-02 at 11 44 48 AM

from browserslist-ga.

dmfrancisco avatar dmfrancisco commented on August 18, 2024

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

from browserslist-ga.

CyberAP avatar CyberAP commented on August 18, 2024

@dmfrancisco, thanks, will try!

from browserslist-ga.

mauriciabad avatar mauriciabad commented on August 18, 2024

Not working for me neither

from browserslist-ga.

melfa avatar melfa commented on August 18, 2024

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

from browserslist-ga.

dmfrancisco avatar dmfrancisco commented on August 18, 2024

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.

from browserslist-ga.

dmfrancisco avatar dmfrancisco commented on August 18, 2024

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.

from browserslist-ga.

oboxodo avatar oboxodo commented on August 18, 2024

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

from browserslist-ga.

oboxodo avatar oboxodo commented on August 18, 2024

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

from browserslist-ga.

johanadivare avatar johanadivare commented on August 18, 2024

Using temp solution as noted here: #26 (comment)

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

from browserslist-ga.

allypalanzi avatar allypalanzi commented on August 18, 2024

same issue as above.

from browserslist-ga.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.