1.0.0 • Published 8 years ago
angular-ganalytics v1.0.0
angular-gAnalytics
Consuming Google Analytics Core Reporting Service (Server - Server) Auth to display Reports & dashboards with angularJS, NodeJS & Google Charts.
Server NodeJs Backend
Follow these steps before deploying your server:
- Register an application in Google API console center.
- Enable Analytics API.
- Create a service account Manage Service Account.
- Register the newly created service account email into the Google Analytics property in permission section under property administration.
- Create New Credentials (Service Account private Key .p12) Manage Credentials.
- Transform your .p12 key to .pem to sign yours JWT, in order to achieve that you should have openSSl installed on your machine
> openssl pkcs12 -in YOUR_PRIVATE_KEY_FILE.p12 -out demo_certificate.pem -nodes
7. You should store your **pem** key in safe place on your server.
8. Update **config.js** file
```javascript
'GA_SERVICE_ACCOUNT': 'GOOGLE SERVICE ACCOUNT',
'GA_KEY_PATH': "PEM KEY PATH",
1.0.0
8 years ago