Neurotic Pantaloon Maker

    hubot-active-users

    1.0.6 • Public • Published

    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

    Install

    npm i hubot-active-users

    DownloadsWeekly Downloads

    3

    Version

    1.0.6

    License

    MIT

    Unpacked Size

    7.57 kB

    Total Files

    12

    Last publish

    Collaborators

    • skbrown333