https://github.com/torifat/bespoke-ga
Google Analytics for Bespoke.js
https://github.com/torifat/bespoke-ga
Last synced: 3 months ago
JSON representation
Google Analytics for Bespoke.js
- Host: GitHub
- URL: https://github.com/torifat/bespoke-ga
- Owner: torifat
- License: mit
- Created: 2014-11-02T09:36:25.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-11-03T05:56:20.000Z (over 10 years ago)
- Last Synced: 2025-01-28T01:02:45.588Z (4 months ago)
- Language: JavaScript
- Size: 121 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/torifat/bespoke-ga) [](https://coveralls.io/r/torifat/bespoke-ga)
# bespoke-ga
Google Analytics for [Bespoke.js](http://markdalgleish.com/projects/bespoke.js)
## Download
Download the [production version][min] or the [development version][max], or use a [package manager](#package-managers).
[min]: https://raw.github.com/torifat/bespoke-ga/master/dist/bespoke-ga.min.js
[max]: https://raw.github.com/torifat/bespoke-ga/master/dist/bespoke-ga.js## Usage
This plugin is shipped in a [UMD format](https://github.com/umdjs/umd), meaning that it is available as a CommonJS/AMD module or browser global.
For example, when using CommonJS modules:
```js
var bespoke = require('bespoke'),
ga = require('bespoke-ga');bespoke.from('#presentation', [
// Use your Google Analytics Tracking ID instead of 'UA-XXXXX-X'
ga({trackingId: 'UA-XXXXX-X'})
]);
```When using browser globals:
```js
bespoke.from('#presentation', [
// Use your Google Analytics Tracking ID instead of 'UA-XXXXX-X'
bespoke.plugins.ga({trackingId: 'UA-XXXXX-X'})
]);
```## Package managers
### npm
```bash
$ npm install bespoke-ga
```### Bower
```bash
$ bower install bespoke-ga
```## Credits
This plugin was built with [generator-bespokeplugin](https://github.com/markdalgleish/generator-bespokeplugin).
## License
[MIT License](http://en.wikipedia.org/wiki/MIT_License)