> ## Documentation Index
> Fetch the complete documentation index at: https://docs.directgvr.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Launcher event catalog

> The events and properties the DirectGVR Analytics service sends for the launcher, installer and DLM.

The DirectGVR Analytics service turns workflow tasks into events for reporting. The same events are sent to Mixpanel and Keen; the raw S3 and Firehose destinations receive the untransformed tasks instead. Some events come from every client, some only from the launcher and installer (which sync repositories), and some only from the download manager (DLM).

## Events from every client

| Event | When it's sent |
| - | - |
| `ApplicationStart` | The player starts the installer, launcher or DLM. |
| `ApplicationStop` | The installer, launcher or DLM shuts down. |
| `Launch` | The client runs the application it manages, either because the player clicked **Launch** or because an automated task (such as launch after update) ran it. |
| `LaunchComplete` | The application started successfully. |
| `WebGetError` | A request returned an error. Most are non-critical, because the client retries requests indefinitely. |

## Repository events

The launcher and installer send these when they sync a repository. A sync or repair only produces events if at least one piece is written.

| Event | When it's sent |
| - | - |
| `RepositorySyncStart` | The client starts updating a repository. |
| `RepositorySyncComplete` | A repository update finishes: all changed data is received and applied. |
| `RepositorySyncCancel` | The player shuts down the client during an update, before it finishes. |
| `RepositoryRepairStart` | The client starts repairing a repository. |
| `RepositoryRepairComplete` | A repair finishes: all incorrect data is restored. |
| `RepositoryRepairCancel` | The player shuts down the client during a repair, before it finishes. |

## Download events

The DLM sends these when it downloads content. Downloads of 1 KB or less don't produce start, complete or cancel events.

| Event | When it's sent |
| - | - |
| `DownloadStart` | A download starts. |
| `DownloadComplete` | A download finishes successfully. |
| `DownloadCancel` | The player cancels a download. |
| `DownloadSkipped` | A download is skipped, for example because the file is already present. |
| `DownloadExpired` | The download URL returned HTTP 403, usually because a signed URL expired. |

## Custom events

Any workflow task can add its own events with the `mixpanelEvent` argument. The service then sends `<name>Start` when the task starts, `<name>Complete` when it succeeds and `<name>Cancel` when it's cancelled. For example, `mixpanelEvent: Install` produces `InstallStart`, `InstallComplete` and `InstallCancel`.

## Properties

Properties describe what happened during an event.

### Properties on every event

| Property | Description |
| - | - |
| `distinct_id` | Unique ID of the device running the client |
| `sessionId` | A GUID generated when the client session starts |
| `time` | When the event happened |
| `month`, `week`, `year` | Calendar month, week of the year and year of the event |
| `os` | Name and version of the operating system |
| `appVersion` | Version of DirectGVR the client was built with |
| `productType` | The kind of client, such as `launcher` or `installer` |
| `ip` | Public IP address of the device |
| `organization` | Your publisher ID |
| `downloadName` | Name of the download, when there is one |
| `transactionId` | ID that ties events from one transaction together |

### Repository event properties

| Property | Description |
| - | - |
| `repositoryName` | The repository being synced |
| `sourceRelease`, `targetRelease` | The release the device had and the release it's updating to |
| `bytesRead`, `bytesWritten` | Bytes downloaded and written to disk |
| `piecesTotal`, `piecesComplete`, `piecesWritten`, `piecesSkipped`, `piecesMasked` | Piece counts for the sync. A non-zero `piecesMasked` means a delta update path was used. |
| `pieceAverageTime` | Average time per piece |
| `duration`, `aliveTime`, `pauseTime`, `stallTime` | Total time, time running, time paused and time stalled |
| `successful` | Whether the sync succeeded (complete events) |
| `errorCount`, `lastErrorSource`, `lastErrorCode`, `lastErrorCodeEx`, `lastErrorIndex`, `lastErrorType` | Errors during the sync (complete events). See [Troubleshoot client errors](https://docs.directgvr.com/troubleshooting/client-errors.md). |

### Download event properties

| Property | Description |
| - | - |
| `title`, `contentName` | Name shown in the client and name of the file |
| `url` | URL of the content |
| `bytesRead`, `fileSizeBytes` | Bytes downloaded and total file size |
| `averageDownloadSpeed` | Average download speed in bytes per second |
| `duration`, `activeTime`, `timePausedSeconds` | Total time, time actively downloading and time paused |
| `responseCode`, `responseMessage` | Server response |
| `percentCompleteOnCancel` | How far the download got before it was cancelled (`DownloadCancel`) |
| `productName`, `productVersion` | Product the download belongs to |

### Other properties

| Property | Event | Description |
| - | - | - |
| `timeRunning` | `ApplicationStop` | How long the client ran |
| `exitCode`, `productName`, `productVersion`, `fileVersion`, `companyName` | `Launch`, `LaunchComplete` | Details of the launched application |
| `errorCode`, `errorCodeEx`, `url`, `remoteIp`, `remotePort` | `WebGetError` | The error and the server that returned it |

## Related

* [Launcher analytics](https://docs.directgvr.com/analytics/launcher-analytics.md)
* [Tips for using Mixpanel](https://docs.directgvr.com/analytics/mixpanel-tips.md)
* [Analytics workflow reference](https://docs.directgvr.com/reference/client-workflow-engine/analytics.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.