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
- Host: GitHub
- URL: https://github.com/clevertap/clevertap-fxos
- Owner: CleverTap
- License: mit
- Created: 2017-12-30T00:28:40.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-08-23T09:16:14.000Z (almost 2 years ago)
- Last Synced: 2024-08-24T08:34:11.439Z (almost 2 years ago)
- Language: JavaScript
- Size: 941 KB
- Stars: 0
- Watchers: 16
- Forks: 4
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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
}
});
```