What telemetry does: stores usage locally in telemetry.json, and can optionally batch or stream events to your server. ✅
Configure in learn.json ⚙️
Each LearnPack course includes a learn.json file for exercise testing, compiler selection, and more. The telemetry key lets you streamline data tracking.
| UI action | Event name |
|---|---|
| Press the Next button | open_step |
| Click Run | compile |
| Click Run tests | test |
| Ask the AI tutor | ai_interaction |
How often telemetry is sent ⏱️
1
Batch
After executing learnpack start, telemetry is sent for the first time if it is configured.
When opening a new step, the next step is marked as started and the current copy of telemetry is sent to the configured batch URL.
When opening a new step, the next step is marked as started and the current copy of telemetry is sent to the configured batch URL.
2
Stream
For each new event, if the stream URL is configured, LearnPack sends a webhook with the event to the specified endpoint.
Reminder: configure both batch and stream URLs to ensure events are received as expected. Endpoints must accept POST requests.
What telemetry stores
Telemetry includes information about opened exercises and timestamps, compilation and test results, work sessions, the first start time, the environment where it runs, and identifiers for telemetry and the student if it is a 4Geeks student.Privacy: only non-sensitive usage data is collected to enhance performance and user experience.

