An open API service indexing awesome lists of open source software.

https://github.com/clevertap/clevertap-fxos

CleverTap Firefox OS SDK
https://github.com/clevertap/clevertap-fxos

Last synced: over 1 year ago
JSON representation

CleverTap Firefox OS SDK

Awesome Lists containing this project

README

          

## CleverTap Firefox OS SDK

### Installation

- Copy clevertap.js/clevertap.min.js directly into your FireFox app js directory and load in a script tag in your index.html:

``

See [Example](Examples/Simple).

- Install via npm `npm install clevertap-fxos --save` and require/import the module:

`var clevertap = require('clevertap-fxos');`

See [Example](Examples/StartStopAngular).

### Usage

#### Initialization
```
clevertap.setLogLevel(clevertap.logLevels.DEBUG); // optional
clevertap.setAppVersion("1.0.0"); // optional
clevertap.init("WWW-WWW-WWRZ"); // required, pass your CleverTap Account ID
```
#### Record An EVENT
`clevertap.event.push("Product Viewed");`

#### Update A User Profile
```
clevertap.profile.push({
"Site": {
"Name": "Jack Montana",
"Age": 28
}
});
```