Lightweight, privacy-first analytics for WaveformPlayer. Track meaningful audio engagement — real listens, not bounces — and send it anywhere.
npm install @arraypress/waveform-tracker @arraypress/waveform-playerimport WaveformTracker from '@arraypress/waveform-tracker';
WaveformTracker.init({
endpoint: '/api/listens',
events: { play: 3, listen: 30, complete: 90 }
});Version 2 needs @arraypress/waveform-player 2.0 and a browser from 2023 or
later (Chrome/Edge 111, Firefox 114, Safari 16.4). TypeScript declarations are
included. The package is ES modules only; on Node 22.12+ require() loads it
too (require('@arraypress/waveform-tracker').default). For a <script> tag,
load dist/waveform-tracker.min.js after the player; it sets
window.WaveformTracker.
Full configuration, payload shape and privacy notes live in the docs.
Configuration · Payload · Privacy
MIT © ArrayPress