clevertap-react
Wrapper to integrate Clevertap with ReactJS Applications.
Technically it should work with Any SPA like Angular, Vue, etc. It should also support React Native. (untested)
PR and Issues are welcomed
Usage
- Installation
npm install --save clevertap-react
- Initialize in your root
; ClevertapReact;
API
First import library in your component
import ClevertapReact from 'clevertap-react';
- Push Event
var payload = "Product name":"Casio Chronograph Watch" "Category":"Mens Accessories" "Price":5999 ClevertapReactevent"Product Viewed" payload // Payload is optional, if you dont want to pass it, you can just do ClevertapReactevent"Product Viewed"
- Profile Push
var payload = "Site": "Name": "Jack Montana" // User's name "Age": 28 ClevertapReactprofilepayload
- Logout
ClevertapReact
TODO
- Documentation
- Examples
- Support for Push Notifications.