Piwik Tracker
A wrapper for the Piwik Tracking HTTP API
Usage
First, install piwik-tracker
as a dependency:
npm install --save piwik-tracker
Then, use it in your project:
var PiwikTracker = ; // Initialize with your site ID and Piwik URLvar piwik = 1 'http://mywebsite.com/piwik.php'; // Optional: Respond to tracking errorspiwik // Track a request URL:// Either as a simple string …piwik; // … or provide further options:piwik;
That's it. For a complete list of options, see Piwik's Tracking HTTP API Reference.