Seamlessly relay user interactions in your application to Lateral for analysis.
npm install @lateral-ai/telemetrySeamlessly relay user interactions in your application to Lateral for analysis.
``bash`
npm install @lateral-ai/telemetry
Before using Telemetry, you need to initialize the library with your API key:
`javascript
import { initTelemetry } from "@lateral-ai/telemetry";
initTelemetry({
apiKey: "YOUR_API_KEY",
userId: "CURRENT_USER_ID",
});
``
This initialization sets up event listeners to monitor user actions and reports them back to Lateral.
Once initialized, the telemetry client will automatically monitor user actions. You don't need to manually record events.
For any issues or questions, please contact support or open an issue in this repository.