---
title: "Windows Desktop SDK: Track events"
description: "Track custom events and attach event properties with the Gleap Windows Desktop SDK. Follow the integration code examples."
url: https://docs.gleap.ai/en/articles/618-windows-desktop-sdk-track-events
collection: "Windows Desktop (Beta)"
updated: 2026-11-01
language: en
---

# Windows Desktop SDK: Track events

Track custom events and attach event properties with the Gleap Windows Desktop SDK. Follow the integration code examples.

Gleap custom events allow you to log events at certain key positions in your application. This is super useful to get an even better understanding of what's happening within an application. Custom events have a name and can contain event-specific data as well.

## Track an event

The following sample logs an event with the name "User signed in".

```csharp
Gleap.TrackEvent("User signed in");
```

## Track an event with attached data

It's possible to attach data to custom events. The data can be viewed later in the bug report.

```csharp
Gleap.TrackEvent(
    "User signed in",
    new Dictionary<string, object> { ["userId"] = 1242, ["name"] = "Isabella" });
```

Your events will appear in the activity log of the bug report.

## Related

- [Windows Desktop SDK setup](https://docs.gleap.ai/en/articles/616-windows-desktop-sdk-setup.md)
- [Windows Desktop SDK: User identity](https://docs.gleap.ai/en/articles/617-windows-desktop-sdk-user-identity.md)
- [Windows Desktop SDK: Track pages](https://docs.gleap.ai/en/articles/619-windows-desktop-sdk-track-pages.md)
- [Windows Desktop SDK: Forms](https://docs.gleap.ai/en/articles/620-windows-desktop-sdk-forms.md)
- [Windows Desktop SDK: Frontend tools](https://docs.gleap.ai/en/articles/621-windows-desktop-sdk-frontend-tools.md)
