clevertap-fxos

1.1.1 • Public • Published

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:

    <script type="text/javascript" src="js/libs/clevertap.js" defer></script>

    See Example.

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

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

    See Example.

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
 }
});

Dependents (0)

Package Sidebar

Install

npm i clevertap-fxos

Weekly Downloads

4

Version

1.1.1

License

MIT

Unpacked Size

262 kB

Total Files

33

Last publish

Collaborators

  • pwilkniss
  • darshanclevertap
  • piyush.kukadiya