Capture pageviews, custom events, and user properties.
Pageviews are automatic after init. Use track for custom events and identify for user properties.
Analytics.track("signup", { plan: "pro" });
Analytics.identify("user_123", { plan: "pro" });| Field | Type | Description |
|---|---|---|
| event | string | Event name, lowercase with underscores. |
| properties | object | Optional metadata for the event. |
| userId | string | Stable user identifier when known. |