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

# Cordova SDK: Track events

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

Gleap custom events allow you to log events at certain key positions within 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".

```javascript
cordova.plugins.GleapPlugin.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 respective bug report.

```javascript
cordova.plugins.GleapPlugin.trackEvent("User signed in", {
  userId: 1242,
  name: "Isabella",
  skillLevel: "🤩",
});
```

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

## Related

- [Cordova SDK setup](https://docs.gleap.ai/en/articles/595-cordova-sdk-setup.md)
- [Cordova SDK: User identity](https://docs.gleap.ai/en/articles/596-cordova-sdk-user-identity.md)
- [Cordova SDK: Track pages](https://docs.gleap.ai/en/articles/598-cordova-sdk-track-pages.md)
- [Cordova SDK: Forms](https://docs.gleap.ai/en/articles/599-cordova-sdk-forms.md)
- [Cordova SDK: Audio recording](https://docs.gleap.ai/en/articles/600-cordova-sdk-audio-recording.md)
