clevertap-fxos
v1.1.1
Published
CleverTap Firefox OS SDK
Downloads
6
Keywords
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:
<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
}
});