---
title: "Cordova SDK: Custom data"
description: "Attach custom data to customer feedback with the Gleap Cordova SDK. Follow the integration code examples."
url: https://docs.gleap.ai/en/articles/602-cordova-sdk-custom-data
collection: "Cordova"
updated: 2026-11-01
language: en
---

# Cordova SDK: Custom data

Attach custom data to customer feedback with the Gleap Cordova SDK. Follow the integration code examples.

## Add custom data

In many situations you may want to attach custom data to feedback items in order to better understand the context. You can add custom data incrementally or all at once. Any simple JSON object can be attached.

```js
cordova.plugins.GleapPlugin.attachCustomData({
  test1: "Battle",
  data2: "Unicorn",
});
```

## Append custom data

If you want to attach custom data incrementally you can do so with the `setCustomData` method.

```js
cordova.plugins.GleapPlugin.setCustomData("email", "lukas@bugbattle.io");
```

## Remove custom data

Remove custom data key value pairs by calling the following method.

```js
cordova.plugins.GleapPlugin.removeCustomData("email");
```

## Clear all custom data

It's possible to clear all attached custom data by calling the following method.

```js
cordova.plugins.GleapPlugin.clearCustomData();
```

## 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 events](https://docs.gleap.ai/en/articles/597-cordova-sdk-track-events.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)
