Socket
Book a DemoInstallSign in
Socket

clevertap-react

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clevertap-react

Wrapper to integrate Clevertap with ReactJS Applications

1.0.0
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

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
import ClevertapReact from 'clevertap-react';

ClevertapReact.initialize("CLEVERTAP_ACCOUNT_ID");

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":59.99,
}

ClevertapReact.event("Product Viewed", payload)

// Payload is optional, if you dont want to pass it, you can just do 
ClevertapReact.event("Product Viewed")
  • Profile Push
var payload = {
  "Site": {
   "Name": "Jack Montana", // User's name
   "Age": 28
 }
}

ClevertapReact.profile(payload)
  • Logout
ClevertapReact.logout()

TODO

  • Documentation
  • Examples
  • Support for Push Notifications.

Keywords

react

FAQs

Package last updated on 18 Jan 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.