Skip to content

Latest commit

 

History

History
59 lines (38 loc) · 1.51 KB

README.md

File metadata and controls

59 lines (38 loc) · 1.51 KB

Build Status Coverage Status

bespoke-ga

Google Analytics for Bespoke.js

Download

Download the production version or the development version, or use a package manager.

Usage

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'})
]);

Package managers

npm

$ npm install bespoke-ga

Bower

$ bower install bespoke-ga

Credits

This plugin was built with generator-bespokeplugin.

License

MIT License