0.0.2 • Published 1 year ago

react-captivated v0.0.2

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

React Captivated

React wrapper package for the Captivated widget integration.

Use this guide to learn how to integrate Captivated's feedback widget into your project and start collecting feedback on Captivated.

Please note that we're constantly updating this project, so always be keen on updating this package to the newest release to stay up-to-date with new features.

Installation

npm install react-captivated

Use / Example

import { init, identify } from "react-captivated";

init("[pid]", callback);

identify({
  "identifier": 1, // optional
  "name": "John Doe", // required
  "picture": "https://...",  // optional
  "properties": { // optional
    "email": "johndoe@gmail.com",
    "phone": "123-456-7890"
  }
});

pid represents your Captivated project ID. This can be found in your settings tab or in the tracking code available in the setup page documentation.