1.0.6 • Published 6 years ago

hubot-active-users v1.0.6

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

hubot-active-users

A simple function that allows hubot to interact with Google Analytics.

See src/analytics.js for full documentation.

Installation

Follow these instructions for setting up your .pem key https://www.npmjs.com/package/gapitoken.

You will need an environment variable called GOOGLE_SERVICE_EMAIL to store a path to your .pem file, one called SITE_NAME to store the name of your site, GOOGLE_ANALYTICS_ID to store the view id, and another environment variable GOOGLE_KEY_PATH to store the path to your keyfile.pem

export HUBOT_GOOGLE_SERVICE_EMAIL=''
export HUBOT_GOOGLE_KEY_PATH=''
export HUBOT_SITE_NAME=''
export HUBOT_GOOGLE_ANALYITCIS_ID=''

In hubot project repo, run:

npm install hubot-active-users --save

Then add hubot-active-users to your external-scripts.json:

[
  "hubot-active-users"
]

Sample Interaction

user1>> hubot users
hubot>> SomeWebSite has 1 active user

NPM Module

https://www.npmjs.com/package/hubot-active-users

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago