Skip to content

Google Analytics Scripts for Panic's Status Board

Notifications You must be signed in to change notification settings

jaspertandy/status-board-ga

Repository files navigation

Google Analytics for Status Board

Scripts to generate the files for presenting Google Analytics for Panic's Status Board app.

  • 7 Day Visitor Graph (Center right)
  • Top Pages (Bottom Left)
  • 24 hourly window of visits (Bottom right)

Installation

To install, see the detailed instructions at Google Analytics for Status Board.

You will need a copy of Status Board, a DropBox account and some Ruby-fu to make this all work.

Quick install:

Install the json gem:

$ sudo gem install json

Build and install the gattica gem:

$ git clone git://github.com/chrisle/gattica.git
$ cd gattica/
$ bundle install
$ gem build gattica.gemspec
$ sudo gem install gattica-0.6.2.gem

Update each script, replacing email, password, title, file_name and dropbox_path. Test run each to see that they work.

Share the files on Dropbox and email the links to your device.

Schedule the scripts to run by modifying the sample .plists for launchd or create a crontab entry. Then:

$ cp com.hiltmon.status_board_ga.plist ~/Library/LaunchAgents
$ launchctl load -w ~/Library/LaunchAgents/com.hiltmon.status_board_ga.plist

Add the linked files as graphs or tables in Status Board

Source can be viewed or forked via GitHub: http://github.com/hiltmon/status-board-ga.git.

Config

Everything is configured by config.yaml. Add in your GMail username and password. Each type of report is also configure here. The file variable should be used without extension, as the appropriate one is added automatically. dir should be full and absolute when running by a cron. If you only have one profile in your analytics account, you can remove profile entirely. Leaving any trace of the variable will probably cause this to fail, currently.

License

(The MIT License)

Copyright (c) 2013 Hilton Lipschitz, http://www.hiltmon.com, hiltmon@gmail.com.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Google Analytics Scripts for Panic's Status Board

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages