---
title: "Cordova SDK: User identity"
description: "Identify customers and attach user information with the Gleap Cordova SDK. Follow the integration code examples."
url: https://docs.gleap.ai/en/articles/596-cordova-sdk-user-identity
collection: "Cordova"
updated: 2026-11-01
language: en
---

# Cordova SDK: User identity

Identify customers and attach user information with the Gleap Cordova SDK. Follow the integration code examples.

The Gleap Identify call lets you tie a user to their feedback items. It includes a unique User ID and optional meta information such as their email and name.

### Identify your users

To effectively manage your contacts, we advise using `cordova.plugins.GleapPlugin.identify()` each time a user signs in or registers. This practice ensures accurate identification of your contacts from the outset. Additionally, for scenarios where contact information needs to be updated during active usage – such as when a user subscribes to a new plan or modifies their existing data – we recommend utilizing `cordova.plugins.GleapPlugin.updateContact()`. This method allows for seamless real-time updates to contact details.

Identify your user by calling the following method.

```javascript
cordova.plugins.GleapPlugin.identify("user_ID", {
  name: "Franz",
  email: "franz@gleap.ai",
  phone: "+1 (902) 123123",
  value: 199.95,
  customData: {
    plan: "Pro plan",
    company: "ACME inc.",
  },
});
```

> **Info:** When transmitting custom data, only primitive numeric and string values are supported for later use in segment filters. Please note that you can send only 35 custom data keys with an identify call.
>
> We currently only allow JSON strings, numbers and boolean values as custom data.

> **Info:** Gleap defaults to guest sessions when feedback items get reported without calling the identify method first. All feedback items of an existing guest session will be merged with the user session once you've identified it.

### Enforce identity verification

> **Tip:** To also prove the user's email, pass a [signed identity token](https://gleap-developer-docs.gleap.help/en/articles/709-enforce-identity-verification#signed-identity-token-proves-the-email-too) in place of the user hash. Gleap can then [merge earlier conversations](https://gleap-developer-docs.gleap.help/en/articles/709-enforce-identity-verification#merge-contacts) with that email into the user.

Enforce identity verification to prevent third parties from impersonating logged-in users. [Learn how to generate the user hash](https://gleap-developer-docs.gleap.help/en/articles/709-enforce-identity-verification)

```js
cordova.plugins.GleapPlugin.identify(
  "user_ID",
  {
    name: "Franz",
    email: "franz@gleap.ai",
    phone: "+1 (902) 123123",
    value: 199.95,
    customData: {
      plan: "Pro plan",
      company: "ACME inc.",
    },
  },
  "GENERATED_USER_HASH"
);
```

[Click here](https://gleap-developer-docs.gleap.help/en/articles/709-enforce-identity-verification) to learn how to generate the user hash.

### Update contact properties

To effectively manage your contacts, we advise using `cordova.plugins.GleapPlugin.identify()` each time a user signs in or registers. This practice ensures accurate identification of your contacts from the outset. Additionally, for scenarios where contact information needs to be updated during active usage – such as when a user subscribes to a new plan or modifies their existing data – we recommend utilizing `cordova.plugins.GleapPlugin.updateContact()`. This method allows for seamless real-time updates to contact details.

```javascript
cordova.plugins.GleapPlugin.updateContact({
  name: "Franz",
  value: 199.95,
});
```

The updateContact method takes in the same contact parameters as the identify method. Partial updates are possible.

```javascript
cordova.plugins.GleapPlugin.updateContact({
  name: "Franz",
  email: "franz@gleap.ai",
  phone: "+1 (902) 123123",
  value: 199.95,
  customData: {
    plan: "Pro plan",
    company: "ACME inc.",
  },
});
```

### Clear the identity on logout

We recommend to clear the identity once the user logs out. Clearing the identity will automatically detach the current session and create a new guest session.

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

### Get the identification status of a user

With the following method, you can get the status of the current user identity.

```js
cordova.plugins.GleapPlugin.isUserIdentified((status) => {
  console.log(status);
});
```

### Get the current user identity

With the following method, you can get the current user identity.

```js
cordova.plugins.GleapPlugin.getIdentity((userIdentity) => {
  console.log(userIdentity);
});
```

## Related

- [Cordova SDK setup](https://docs.gleap.ai/en/articles/595-cordova-sdk-setup.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)
- [Cordova SDK: Audio recording](https://docs.gleap.ai/en/articles/600-cordova-sdk-audio-recording.md)
