1.0.0 • Published 8 years ago

detect-buffer-share v1.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

Detect Buffer Share

This is a small script that detects when the user clicks the Buffer share button in their browser. You can use this script to track these events in Google Analytics for example.

Example Usage

Browser Globals

See test.html

detectBufferShare.onBuffer(function () {
  ga('send', 'event', 'Buffer', 'Share');
});

CommonJS

var detectBufferShare = require("detect-buffer-share");

detectBufferShare.onBuffer(function () {
  ga('send', 'event', 'Buffer', 'Share');
});