Skip to content

Requests and serves JWT service token for read only access to Google Analytics.

License

Notifications You must be signed in to change notification settings

WSDOT/search-analytics-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WSDOT Search Analytics Service for server-side Authorization

Node service for generating auth tokens for a Google Analytics account.

This project uses the google-api-nodejs-client library for authorizing and generating JSON Web Tokens.

IMPORTANT: No steps are taken to protect the JWT this server provides. The token grants read-only privileges and will expire, so this shouldn't be an issue.

Set Up

You will need to set up a service account in the google developer console for this project to generate a JWT. See Service Accounts at https://developers.google.com/analytics/devguides/reporting/core/v4/authorization#service_accounts

Once created, download the service account's public/private key as a JSON file and add it to the root of this project. Make sure update the import path in auth-service.js.

Readings from Google

About

Requests and serves JWT service token for read only access to Google Analytics.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published