bespoke-analytics

1.0.0 • Public • Published

Build Status Coverage Status

bespoke-analytics

Check out the presentation/demo.

Visitor analysis per slide in your Bespoke.js presentation

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:

// You choose either bespoke-hash or bespoke-history.
var bespoke = require('bespoke'),
  // hash = require('bespoke-hash'),
  // history = require('bespoke-history'),
  ga = require('bespoke-ga');
  analytics = require('bespoke-analytics');
 
bespoke.from('#presentation', [
  // hash(),
  // history(),
  ga({
    trackingId: '' // A string like 'UA-12345678-9'
  }),
  analytics()
]);

When using browser globals:

// You choose either bespoke-hash or bespoke-history.
bespoke.from('#presentation', [
  //bespoke.plugins.hash(),
  //bespoke.plugins.history(),
  bespoke.plugins.ga({
    trackingId: '' // A string like 'UA-12345678-9'
  }),
  bespoke.plugins.analytics()
]);

Package managers

npm

$ npm install bespoke-analytics

Bower

$ bower install bespoke-analytics

Credits

Mark Dalgleish for bespoke.js and related tools. This plugin was built with generator-bespokeplugin.

Thanks Hans for the Snow Traces Footprints White (CC0 license) image!

My best friend, bespoke-convenient, for continued support - rain and shine. I love you, man.

License

Copyright (c) 2015, Joel Purra All rights reserved.

When using bespoke-analytics, comply to the MIT license. Please see the LICENSE file for details, and the MIT License on Wikipedia.

Readme

Keywords

Package Sidebar

Install

npm i bespoke-analytics

Weekly Downloads

2

Version

1.0.0

License

none

Last publish

Collaborators

  • joelpurra