- This is the repository for React
- For Vue see @utrigg-analytics/vue.
This plugin will help you implement uTrigg analytics to your single page application.
- React.
- uTrigg account. To send data to
Using npm:
npm install @utrigg-analytics/react
import ReactDOM from 'react-dom/client';
import UtriggAnalytics from '@utrigg-analytics/react';
const root = ReactDOM.createRoot(document.getElementById('root'));
UtriggAnalytics.install(root, { alias: 'xxxxxxxxxx' });
Name | Type | Description |
---|---|---|
alias | string | Uniq identifier from uTrigg platform |