Nevertheless Published Mine
Miss any of our Open RFC calls?Watch the recordings here! »

detect-buffer-share

1.0.0 • Public • Published

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

Keywords

none

Install

npm i detect-buffer-share

DownloadsWeekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • avatar