Google Analytics for Bespoke.js
Download the production version or the development version, or use a package manager.
This plugin is shipped in a UMD format, meaning that it is available as a CommonJS/AMD module or browser global.
For example, when using CommonJS modules:
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:
bespoke.from('#presentation', [
// Use your Google Analytics Tracking ID instead of 'UA-XXXXX-X'
bespoke.plugins.ga({trackingId: 'UA-XXXXX-X'})
]);
$ npm install bespoke-ga
$ bower install bespoke-ga
This plugin was built with generator-bespokeplugin.