komito-analytics

1.0.6 • Public • Published

Komito Analytics Tweet

Build Status License Website NPM version NPM downloads

Komito Analytics is a free, open-source enhancement for the most popular web analytics software.
It unlocks power of digital analytics with additional insights about visitor's behavior.
For more information please visit Komito Analytics project page.

Install

$ npm install komito-analytics

Usage

const komito = require('komito-analytics');

// The default configuration can be omitted and only changed properties can be included.
// @see https://komito.net/integration/
komito.init({
  'trackTwitter': 1,     // Tracks Twitter events if widget is presented on page.
  'trackFacebook': 1,    // Tracks Facebook events if widget is presented on page.
  'trackLinkedIn': 1,    // Tracks LinkedIn events if plugin is presented on page.
  'trackDownloads': 1,   // Tracks files download links.
  'trackOutbound': 1,    // Tracks outbound links.
  'trackForms': 1,       // Tracks forms submissions.
  'trackUsers': 1,       // Tracks pageviews by users logged in to social networks.
  'trackActions': 1,     // Tracks 'mailto', 'tel', 'sms' and 'skype' actions.
  'trackPrint': 1,       // Tracks page print actions.
  'trackOrientation': 1, // Tracks orientation change on mobile devices.
  'trackAdblock': 0,     // Tracks page views with blocked ads. (Experimental)
  'trackErrorPages': 0,  // Tracks error pages. (Experimental)
  'sendHeartbeat': 0,    // Sends heartbeat event. (Default interval 30 seconds)
  'debugMode': 0,        // Prints all requests to console.
  'trackScroll': [25, 50, 75, 100], // Tracks scroll depth.
  'trackMedia': ['html5', 'vimeo', 'youtube'], // Tracks HTML5 video, audio, Vimeo and YouTube players events.
  'nonInteraction': ['adblock', 'audio', 'form', 'heartbeat',
                     'orientation', 'print', 'scroll', 'video'] // List of non interaction events.
});

Package Sidebar

Install

npm i komito-analytics

Homepage

komito.net/

Weekly Downloads

11,356

Version

1.0.6

License

Apache-2.0

Unpacked Size

4.88 kB

Total Files

3

Last publish

Collaborators

  • vpodk
  • krailo