0.1.8 • Published 8 years ago

jibo-analytics v0.1.8

Weekly downloads
13
License
ISC
Repository
github
Last release
8 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

8 years ago

0.1.7

8 years ago

0.1.6

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago