1.0.3 • Published 6 years ago

ga-reporter v1.0.3

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

ga-reporter

:loudspeaker: Report number of PVs per week

Install

  1. Run npm install

    $ npm install --global ga-reporter
  2. Enable Reporting API v4
    Enable Reporting API v4 and save the authentication information as client_secrets.json.
    For more information.

  3. Add service account to the Google Analytics account
    You can use the mail address of item client_email of the client_secrets.json. Use this email address to add a user to the Google analytics view.
    For more information.

  4. Setup
    Run ga-reporter and Enter the absolute path of client_secrets.json and a View ID.
    You can use the Account Explorer to find a View ID.

    $ ga-reporter                                                                                 
    ? Enter your client_secrets.json's path: /home/username/client_secrets.json
    ? Enter your a viewID: 123456

Usage

$ node index.js --help 

  Usage
      $ ga-reporter <input>

  Options
      --delete, -d Delete settings

Licence

MIT

Author

kanoe