1.0.10 โข Published 5 years ago
react-epotion v1.0.10
react-epotion ๐งช
Simple component for managing Epotion tracking.
Views ๐
| Disabled View | Disabled Minimized View | Enabled View | Enabled Minimized View |
|---|---|---|---|
![]() | ![]() | ![]() | ![]() |
Install ๐ง
use NPM:
npm i -S react-epotionuse Yarn:
yarn add react-epotionExample ๐ค
import Epotion from 'react-epotion';
const YourComponent = () => <Epotion />;
export default YourComponent;Options โ๏ธ
| Name | Description | Default | Type | Required |
|---|---|---|---|---|
| minimized | Specifies if the window for Epotion is minimized. User has possibility to maximize it. | false | bool | โ |
| text | Text that's displayed when tracking is disabled. | 'Allow us to track your emotions while you browse the page so we could provide you with better user experience. Data is collected anonymously.' | string | โ |
| readMoreText | Text for Read More button. | 'Click here to read more.' | string | โ |
| readMoreUrl | Url for Read More button. | 'https://marcinxkaminski.github.io/epotion-api/epotion.html' | string | โ |
| startTrackingText | Text for Start Tracking Button. | '๐ start tracking' | string | โ |
| stopTrackingText | Text for Stop Tracking Button. | 'โ๐ป stop tracking' | string | โ |
| customReporter | Specifies the reporter that will be used for reporting data. If you set your own reporter, default (Epotion's) reporter will be skipped. For more info check Epotion docs here. | undefined | function | โ |
| enableReporting | Specifies if the reporting feature should be enabled. | true | bool | โ |
Future Work ๐ฎ
- Test the component
- Add more views, e.g. statistics view, to display averages of already gathered data or page statistics view
Development ๐ท๐ผโโ๏ธ
git clone https://github.com/marcinxkaminski/react-epotion.git
cd react-epotion
npm ci
npm run startContribution
Feel free to contribute - every help is welcome ๐๐ป



