---
title: "Flutter SDK: Track events"
description: "Track custom events and attach event properties with the Gleap Flutter SDK. Follow the integration code examples."
url: https://docs.gleap.ai/en/articles/533-flutter-sdk-track-events
collection: "Flutter"
updated: 2026-11-01
language: en
---

# Flutter SDK: Track events

Track custom events and attach event properties with the Gleap Flutter 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 do 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".

```dart
Gleap.trackEvent(name: '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.

```javascript
Gleap.trackEvent(
    name: 'User signed in',
    data: <String, dynamic>{'userId': 1242, 'name': 'Isabella'}
);
```

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

## Related

- [Flutter SDK setup](https://docs.gleap.ai/en/articles/531-flutter-sdk-setup.md)
- [Flutter SDK: User identity](https://docs.gleap.ai/en/articles/532-flutter-sdk-user-identity.md)
- [Flutter SDK: Track pages](https://docs.gleap.ai/en/articles/534-flutter-sdk-track-pages.md)
- [Flutter SDK: Frontend tools](https://docs.gleap.ai/en/articles/535-flutter-sdk-frontend-tools.md)
- [Flutter SDK: Forms](https://docs.gleap.ai/en/articles/536-flutter-sdk-forms.md)
