0.1.8 • Published 10 years ago

jibo-analytics v0.1.8

Weekly downloads
13
License
ISC
Repository
github
Last release
10 years ago

Overview

Basic wrapped around Google Analytics APIs. Should work for both Node and Electron apps.

Installation

npm install --save jibo-analytics

Usage

analytics.event(eventCategory, eventAction, extraParameters optional)

ParameterTypeDescriptionExampleOptional
eventCategoryStringCategory of the event"toolbar"false
eventActionStringName of the event action"play"false
extrasParametersObjectIf you want to track extra meta data for the event add the fields/values here.{mode: "local"}true

Example:

import analytics from 'jibo-analytics';

analytics.init('UA-*', "<unique-user-id>");
analytics.event('toolbar', 'play', {
    mode: 'local'
});

Reference

0.1.8

10 years ago

0.1.7

10 years ago

0.1.6

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago