Skip to content

Optional logging and expose sendbeacon

Latest
Compare
Choose a tag to compare
@mickey mickey released this 07 Feb 10:53
· 4 commits to master since this release

Kill logging unless debug: true is specified with the options
Return the sendbeacon method so additional custom events may be triggered by the user leveraging the library:

var analytics = player.ga();
analytics.sendbeacon('MyEvent', true, 'foobar');

Thanks to @jakiestfu for this PR