Install
The published package name is @aurict/web-sdk.
npm install @aurict/web-sdk@1Initialize
Initialization performs a regional handshake and continues safely with local defaults when the network is unavailable.
import { MicroTarget } from '@aurict/web-sdk';
await MicroTarget.initialize('mt_live_YOUR_KEY');
MicroTarget.logEvent('page_view', { path: location.pathname });
await MicroTarget.flush();Consent
Do not enable optional behavioral categories before the user’s consent choice. Keep direct identifiers out of event properties.