I'm trying to set up an analytics dashboard of my site for my leadership to view site usage. I don't want them to have to have a google account or to add them individual to see the results.
I've set up a service account and OAuth2 access. All the tutorials I find show code like this:
gapi.analytics.auth.authorize({
clientid: 'Service account client ID',
serverAuth: {
access_token: 'XXXXXXXXXXXXXXXXX'
}
And all the documentation talks about ...once you recieve your access token.... But none of them actually say how to get that! I see Certificate Fingerprints, Public key fingerprints. I also see how to generate JSON and P12 keys. I don't see how to generate the access token.
Can someone explain how to do this?
I found this. It explains that I need the key file and that it is a bad idea, but doesn't say how to actually do it.
I also found this. But I don't know anything about Node.js and I'm hoping that is just one possible route?