Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/svhawks/react-native-woopra
Promise based Woopra library for react-native
https://github.com/svhawks/react-native-woopra
Last synced: 3 months ago
JSON representation
Promise based Woopra library for react-native
- Host: GitHub
- URL: https://github.com/svhawks/react-native-woopra
- Owner: svhawks
- License: mit
- Created: 2015-08-24T10:30:20.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-12-09T14:11:56.000Z (almost 6 years ago)
- Last Synced: 2024-04-24T09:05:51.724Z (7 months ago)
- Language: JavaScript
- Homepage:
- Size: 31.3 KB
- Stars: 15
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-react-native - react-native-woopra ★14 - Promise based Woopra library for react-native (Components / Integrations)
README
## Installation
```
cd myapp
npm install react-native-woopra --save
```## Usage
```js
const Woopra = require('react-native-woopra').shared();
Woopra.domain = 'yourdomain.com';Woopra.client({
app: 'react-native',
}).identify({
email: '[email protected]',
name: 'John Doe',
}).track('login', {
method: 'email',
}).then(() => {
console.log('Event logged');
}).catch(() => {
console.log('Event failed to log');
});
```