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

# .NET MAUI SDK: Track events

Track custom events and attach event properties with the Gleap .NET MAUI 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

- [.NET MAUI SDK setup](https://docs.gleap.ai/en/articles/640-net-maui-sdk-setup.md)
- [.NET MAUI SDK: User identity](https://docs.gleap.ai/en/articles/641-net-maui-sdk-user-identity.md)
- [.NET MAUI SDK: Track pages](https://docs.gleap.ai/en/articles/643-net-maui-sdk-track-pages.md)
- [.NET MAUI SDK: Forms](https://docs.gleap.ai/en/articles/644-net-maui-sdk-forms.md)
- [.NET MAUI SDK: Frontend tools](https://docs.gleap.ai/en/articles/645-net-maui-sdk-frontend-tools.md)
