> ## Documentation Index
> Fetch the complete documentation index at: https://docs.manalens.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Identity resolution

> Learn how Manalens links the browsers, game installs, and accounts that one player controls, by shared identity and verified links, and how to review each link.

## Overview

**Identity resolution** answers one question: which of your browsers and game installs belong to the same player?

An anonymous ID is not a player. One player often has several: a browser on the website, the game on a desktop, the game on a Steam Deck, a second browser on a phone. When you treat each one as a separate player, three things go wrong:

* **You overstate your audience.** 1,000 installs and visitors can be 600 players. Retention, lifecycle and conversion numbers look better or worse than the real ones.
* **You lose the path from website to game.** The website visit that brought the player and the game install look like two strangers. So the install gets no source.
* **You misjudge your best players.** The playtime and purchases of one player are spread across several small ones.

Manalens joins the IDs of one player into one profile, shows every ID on the profile, and keeps the rules strict: a link is a direct match on data from your game, your website or Steam. Manalens does not use device fingerprinting, and it never joins two user IDs.

## The IDs

| ID | What it is |
| - | - |
| **Anonymous ID** (`anonymous_id`) | A random UUID that the SDK creates and keeps on the device: a first-party cookie in a browser, or the save data of a game install. One browser or one game install has one anonymous ID until `reset()`. |
| **User ID** (`user_id`) | The ID that your game, website or server sends with [`identify()`](https://docs.manalens.dev/guides/identify-users), for example your account ID or a Steam ID. Manalens never infers it: not from an email, not from a store account. |
| **Player key** | The one key of a player in the app URLs, the API and MCP: `user:<user_id>` for an identified player, or `anon:<anonymous_id>` for an anonymous one. |

## Three ways to join IDs

| | User ID | Cross-domain link | Verified Steam link |
| :- | :- | :- | :- |
| **The IDs share** | A user ID from `identify` | A link from the game to your website | A Steam account that Steam confirmed |
| **Where the signal comes from** | Your `identify` calls and server events | The game SDK (`mn_aid`) and the web SDK | A Steam ticket checked with your Steam Web API key |
| **What it joins** | Every browser and install that sent the user ID | One browser to one game install | Every game install of one Steam account |
| **Needs a sign-in** | Yes | No | No |
| **Identified player** | Yes | No | Only for installs with one user ID |

The three signals add up. Take a browser that opened a cross-domain link from a game install. If that install verified the same Steam account as a Steam Deck install, all three IDs are one player.

```mermaid theme={null}
flowchart LR
  W["Browser<br/>anonymous ID A"] -- "cross-domain link<br/>(mn_aid)" --> G1["Game on desktop<br/>anonymous ID B"]
  G1 -- "verified Steam link" --> S(("Steam account"))
  G2["Game on Steam Deck<br/>anonymous ID C"] -- "verified Steam link" --> S
  G1 -- "identify(user_id)" --> U(("user:player_42"))
  W -. "network match<br/>(attribution only)" .-> G2
  U --> P["One player:<br/>user:player_42<br/>with IDs A, B and C"]
  S --> P
```

### User ID

Every event that has both an anonymous ID and a user ID adds a link (`identity_links`). Any event counts: `identify`, a page view or a custom event.

1. **The user ID on the event wins.** An event with a `user_id` belongs to that user, whatever its anonymous ID is.
2. **One anonymous ID, one user: the anonymous ID goes to that user.** Its events without a user ID belong to that user too. This includes the events from before the first `identify()` and from other date ranges. A player who played anonymously and then signed in is one identified player with the full history.
3. **One anonymous ID, two or more users: the anonymous ID stays anonymous.** A shared browser or a family PC where two players signed in without `reset()`. Its events without a user ID stay with the anonymous player `anon:<id>`, and no user gets them. Each user keeps the events that carry their user ID.

A server event with only a user ID gets a stable project-scoped anonymous ID, and it belongs to the user by rule 1.

Call `reset()` at sign-out, so that the next player on the device gets a new anonymous ID. See [identify users](https://docs.manalens.dev/guides/identify-users.md).

### Cross-domain link from the game

A game can open your website (a news page, a wiki, a store page) with a link that carries its anonymous ID: `get_cross_domain_url()` in [Godot](https://docs.manalens.dev/sdks/godot.md#open-your-website-from-the-game), `GetCrossDomainUrl()` in [Unity](https://docs.manalens.dev/sdks/unity.md#open-your-website-from-the-game) and [Unreal](https://docs.manalens.dev/sdks/unreal.md#open-your-website-from-the-game), or `getCrossDomainUrl()` in the [web SDK](https://docs.manalens.dev/sdks/web.md#a-browser-game-on-another-domain). The SDK adds `mn_aid=<anonymous ID>` to the URL. The web SDK on your website removes the parameter from the address bar. It sends one [`alias`](https://docs.manalens.dev/data/events/alias) event, with the game's anonymous ID as `previous_id`. The browser keeps its own anonymous ID, and Manalens links the two (`anon_links`). No sign-in is needed. Links do not expire.

The browser and the game install are then one player, with the anonymous key of the game install. A link joins nothing when:

* One browser opens links from two or more installs.
* The joined IDs have two different user IDs. Then the anonymous activity gets no user.

A browser game on your own domain (or a subdomain) needs no cross-domain link: it already shares the anonymous ID with your website.

### Verified Steam link

A game that [links Steam](https://docs.manalens.dev/integrations/steam.md#link-steam) sends a Steam ticket. Steam confirms the account with your key. Game installs with a verified link to the same Steam account are one player. An example is the same player on a desktop and a Steam Deck.

* Only verified links count. A `steam_id` trait is a claim, and it never joins players.
* Only trusted links count: the install sent its own events before the link, or your server sent the link with the secret key. See [why the link waits for the first events](https://docs.manalens.dev/integrations/steam.md#why-the-link-waits).
* An install that verified two different Steam accounts joins neither.
* No user ID among the installs: one anonymous player, with the key of the install that linked first.
* One user ID among the installs: every install belongs to that user, also the installs that never sent it.
* Two or more user IDs among the installs: no Steam join. Two user IDs are never joined.

A new link joins the player within about 5 minutes. A verified link never makes a player identified: only a user ID does that. See [one player per Steam account](https://docs.manalens.dev/integrations/steam.md#one-player-per-account).

## Install matching

A game build cannot read your website's cookie. So a first open of the game has no direct link to the website visit that caused it. [Install attribution](https://docs.manalens.dev/attribution/installs.md) matches them with a keyed hash of the network, within 72 hours. It matches only for a network that one to three website visitors share.

A network match is likely, not certain. Two people on one home network can be mixed up. So it credits the install to the visit's source, and it **never joins the two profiles**. A certain link (the same user ID, a cross-domain link, or a browser game on your domain) always comes first.

## Linked accounts

The profile shows the store and community accounts of a player as cards:

| Account | Verified | Claimed |
| - | - | - |
| **Steam** | A Steam ticket that Steam confirmed. Shows a checkmark, the games the account owns, and joins installs. | A `steam_id` trait. Shows **Claimed**. Manalens reads no ownership for it and joins nothing. |
| **itch.io** | An `itch_user_id` trait from your server (a [protected trait](https://docs.manalens.dev/data/traits.md#protected-traits)). The card shows the itch.io games the player bought. See [itch.io](https://docs.manalens.dev/integrations/itch.md). | |
| **Discord** | | A `discord_id` trait. Shows the Discord ID. |

None of them joins players except a verified Steam link.

Your game or backend sends `steam_id` and `discord_id` as [traits](https://docs.manalens.dev/data/traits.md#linked-accounts). The **Linked account** filter finds the players with (or without) a linked Steam, Discord, or itch.io account, verified or claimed.

## How to review the links of a player

**1. Open the player**

Open **Audience** and click a player. Click **Open full page** for the profile at its own URL.

**2. Read the header**

Read the header. An identified player has a user ID. An anonymous player shows **Anonymous** and a short ID.

**3. Open Anonymous IDs**

Open **Anonymous IDs** in the left column. Each row is one browser (globe icon) or one game install (gamepad icon). It shows the browser and OS or the game platform, and its first and last day. **Shared device** marks an ID that links to more than one user.

**4. Check the Steam card**

Check the Steam card: a checkmark means a verified link, **Claimed** means a trait only.

**5. Open Traits**

Open **Traits** to see where each value came from (**Website**, **Game**, **Server**, **API** or **Dashboard**).

On the Players list, the **Devices** column shows every platform of each player, and the **Identified** and **Anonymous** switch splits the list. The **Steam** badge marks players with a verified Steam link.

An anonymous profile URL (`anon:<id>`) of an ID that belongs to one user opens that user's profile.

## Limits

* **No unlink.** No API or dashboard action removes a link. A link stays until you delete the player or the project.
* **No merge of two user IDs.** Two user IDs are two players. This holds for IDs that share an anonymous ID, an email trait, or a Steam account.
* **Shared devices stay anonymous.** Manalens does not split a shared device's history by time.
* **A cross-domain link can be shared.** Anyone who opens a link with a game's `mn_aid` is joined to that player. The ID is only in links the player opens, and it affects analytics data only.

## Privacy

* Links never cross projects. Manalens builds them from the data of one project only.
* Manalens uses no device fingerprinting and no IP address to join players. Install matching stores only a keyed hash of the network, for 72 hours.
* Deleting a player deletes their identity links, cross-domain links and Steam links. See [delete a player](https://docs.manalens.dev/features/profiles.md#delete-a-player).

## FAQ

> [accordion] Why is a player still anonymous after a Steam link?
>
> A link never makes a player identified. Only a user ID from `identify` does that. The installs of one Steam account are still one player, with the key of the install that linked first.

> [accordion] Why does a browser not join the game after a cross-domain link?
>
> The browser opened links from two installs, or the two sides have different user IDs. Also check that the website runs the [web SDK](https://docs.manalens.dev/sdks/web.md#players-who-come-from-your-game) and that redirects keep the `mn_aid` parameter.

> [accordion] Can two user IDs be merged into one player?
>
> No. Manalens never merges two user IDs. This holds for IDs that share a device, an email, or a Steam account. Send the same user ID on the website and in the game to make one player.

> [accordion] Does an install match join the website visitor and the game player?
>
> No. A network match credits the install to a source in [install attribution](https://docs.manalens.dev/attribution/installs.md). It never joins the two profiles.

> [accordion] Do linked IDs change my visitor counts?
>
> Overview counts visitors: one per browser or game install. Players, profiles, lifecycle, retention, funnels and user paths count players, so linked IDs count once there.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.