detect-buffer-share

v1.0.0
Detect Buffer Social Shares.

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');
});
npm i detect-buffer-share

Metadata

  • MIT
  • Whatever
  • Brendon Boshell
  • released 10/29/2016

Downloads

Maintainers