docs · v1 · SDK

Web SDK

Install @aurict/web-sdk and initialize the static client.

Install

The published package name is @aurict/web-sdk.

npm install @aurict/web-sdk@1

Initialize

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.