antonmedv / gatsby-source-google-analytics-reporting-api Goto Github PK
View Code? Open in Web Editor NEWGatsby source for Google Anatytics Reporting API
License: MIT License
Gatsby source for Google Anatytics Reporting API
License: MIT License
It's 6+ months out, but Google Analytics v4 is here and starting July 1, 2023, we won't be able to use the current properties:
https://support.google.com/analytics/answer/10089681?hl=en
On July 1, 2023, standard Universal Analytics properties will no longer process data. You'll be able to see your Universal Analytics reports for a period of time after July 1, 2023. However, new data will only flow into Google Analytics 4 properties.
Hi, thanks for making this plugin!
I'm having trouble implementing it. I've read many resources on how to use google APIs before submitting this ticket, I just can't get it to work. My issue is that I keep getting a 403 error when I run gatsby develop
:
Error: Request failed with status code 403
- createError.js:16 createError
[lengjai]/[axios]/lib/core/createError.js:16:15
- settle.js:18 settle
[lengjai]/[axios]/lib/core/settle.js:18:12
- http.js:201 Unzip.handleStreamEnd
[lengjai]/[axios]/lib/adapters/http.js:201:11
- next_tick.js:63 process._tickCallback
internal/process/next_tick.js:63:19
gatsby-config.js
{
resolve: `gatsby-source-google-analytics-reporting-api`,
options: {
email: '[email protected]',
key: '-----BEGIN PRIVATE KEY-----\ there's a lot inside of this key==\n-----END PRIVATE KEY-----\n',
viewId: `000000000`,
startDate: `2017-01-01`,
}
},
So I registered for the google reporting API and downloaded the key info as JSON when it prompted me to. Inside the JSON file I had all the information such as private key and client email. I removed those in my code for privacy. I gathered the viewId from my google analytics page. So I have a couple things that could potentially cause the issue:
Thanks!
Sean
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.