Comments (22)
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.
@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
from browserslist-ga.
As i see, app is working now.
from browserslist-ga.
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.
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.
@oboxodo: take a look at browserlist-ga-export. I’ve been using it as a workaround with good success.
from browserslist-ga.
Any news from Google so far? :))
from browserslist-ga.
@pierremanceaux Not yet… 😕
from browserslist-ga.
Can't wait for Google to approve this 🙏
from browserslist-ga.
Np @dmfrancisco , thanks for the heads up! Looking forward too, amazing feature 👍
from browserslist-ga.
Can anyone elaborate or put a link here to where you "create a google app"? Those instructions are a little vague.
from browserslist-ga.
I’m getting this:
from browserslist-ga.
@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.
@dmfrancisco, thanks, will try!
from browserslist-ga.
Not working for me neither
from browserslist-ga.
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.
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.
from browserslist-ga.
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.
@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.
Thank you @dboulet! That's exactly what I was looking for.
from browserslist-ga.
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.
same issue as above.
from browserslist-ga.
Related Issues (20)
- Object.entries is not a function
- Account for deprecated isMobile dimension
- Stats based on parameters other than usage
- Stats add up to 92% HOT 1
- googleapis needs updating
- Packages need updating in general HOT 3
- Getting error 404 "is not in the npm registry" HOT 1
- Question about data parameters HOT 2
- Expose/document parse method of caniuse-parser as part of API HOT 2
- Everywhere 0 if views > 1000 HOT 1
- Sign in with Google not working HOT 1
- empty ios_saf counts HOT 2
- Publish 0.0.13? HOT 1
- browserslist-ga output does not sum to 100% HOT 1
- Update package-lock.json file to automatically remove the high severity vulnerability introduced by package node-forge
- This app is blocked by Google HOT 5
- Error 400 - The loopback flow has been blocked
- Universal Analytics is deprecated HOT 1
- browserslist: Unknown version 103 of android
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from browserslist-ga.