1.0.3 • Published 6 years ago

react-keenio-simple v1.0.3

Weekly downloads
4
License
ISC
Repository
github
Last release
6 years ago

##React Keenio Simple

A ligghtweight wrapper around the Keenio javascript package that enables functionality through config

First create a new Keen.IO project at https://keen.io/

In your React/Javascript project import this package into your app.

Create a "keen-config.json" at your project root with your Keen project details. This is where the package will look for your Keen configuration. For example...

{
     "projectId": "PROJECTID",
     "writeKey": "WRITEKEY",
     "readKey": "",
     "browserAnalyticsEnabled": true,
     "screenAnalyticsEnabled": true,
     "windowAnalyticsEnabled": true
 }

Now you can use your KeenApiClient to record events from your React App.

Recording events in Keen.

keenApiClient.recordEvent("buttonClick", {
    text: "sometext"
});
1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago