View your analytics on Google Glass.
##Prerequisites
- Google Glass w/ access to Mirror API
- Node.js and NPM
npm install
or npm install express googleapis moment
- Create a new Google APIs Project
- Enable the Google Mirror API
- Enable the Google Analytics API
- Create an OAuth 2.0 client ID for a web application
- Enter your server's hostname and port in app.js
- Enter your Mirror API credentials in app.js
- Change
UA-XXXXX-X
to your site's ID in app.js - Add more lines of
updateAnalytics('UA-XXXXX-X');
to track additional sites
node app
or forever start app.js
- Authorize the app by visiting http://hostname:port/ on your computer
- View analytics in your Glass timeline
- Perhaps a settings page to add profiles from the web?