react-native-piwik-pro-sdk
React Native wrapper for the native Piwik PRO SDKs.
Installation
npm install react-native-piwik-pro-sdk
Usage
import * as PiwikProSdk from 'react-native-piwik-pro-sdk';
await PiwikProSdk.init(
'https://demoaccess.piwik.pro/',
'3e7e6ab9-d605-42b0-ac1b-cdf5bb5e216f'
);
await PiwikProSdk.trackScreen(
'main/list',
{
1: 'first',
}
);
await PiwikProSdk.trackEvent(
'app',
'launch',
'notification',
1.04,
{
1: 'first',
2: 'second',
}
);
For more details, see the code in src/index.tsx
.
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT