Skip to content

Instantly share code, notes, and snippets.

Last active August 5, 2020 15:43
What would you like to do?
Google Analytics Netlify Function
//create jwt object
const jwt = new google.auth.JWT(process.env.GA_CLIENT_EMAIL, null, process.env.GA_PRIVATE_KEY, '');
//authorize using jwt object
await jwt.authorize()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment