# What is an anonymous ID?

> An anonymous ID is a random ID that an analytics SDK creates for a browser or a game install, so reports can count returning players without a login.

By Yos Riady. Updated 2026-11-18. Published 2026-11-18. Canonical URL: https://manalens.dev/glossary/anonymous-id

An anonymous ID is a random identifier that an analytics SDK creates for a browser or a game install before the player signs in. It lets reports count returning players and join sessions across days without a name or an email. A new device or a cleared cookie gets a new ID.

## Key points

- The web SDK keeps a random UUID in a first-party cookie for 1 year, refreshed on each event.
- The Godot and Unity SDKs keep the player ID in a file in the game data folder.
- The EDPB says an SDK that sends a stored ID gains access under Article 5(3) of the ePrivacy Directive.

## Where does the anonymous ID live?

The web SDK creates a random UUID and stores it in a first-party cookie, with localStorage and memory as fallbacks. It lasts 1 year and is refreshed on each event. It is never derived from the IP address or the user agent.

The Godot SDK keeps its UUID in user://manalens.cfg, and the Unity SDK keeps it in Application.persistentDataPath. Godot's user:// folder and Unity's persistent data path are the folders each engine gives a game for data that must last between runs.

Sources: Manalens data collection, Godot SDK and Unity SDK documentation; Godot and Unity engine documentation.

## What does an example look like?

Example numbers: one player plays your game on a desktop PC and on a Steam Deck. That is 2 anonymous IDs, so an anonymous report counts 2 players. When the game calls identify with the same user ID on both devices, reports that follow users count 1.

Sources: worked example; Manalens core concepts documentation.

## Why does the anonymous ID matter for indie PC and web games?

Most players never make an account in a premium PC game or a web game. The anonymous ID is what makes D1 and D7 retention, funnels and returning players possible for them.

It is also stored information on the device. The EDPB says software that sends stored information to an API endpoint is gaining access under Article 5(3) of the ePrivacy Directive. So ask your legal adviser whether you need consent. In consent mode, the web SDK sends events without an anonymous ID until consent.

- [Privacy friendly game analytics and GDPR](https://manalens.dev/blog/privacy-friendly-game-analytics-gdpr)
- [Privacy-first analytics](https://manalens.dev/features/cookieless-analytics)
- [Retention calculator](https://manalens.dev/tools/retention-calculator)

Sources: EDPB Guidelines 2/2023; Manalens consent documentation.

## Frequently asked questions

### How long does an anonymous ID last?

In the web SDK, the ID lasts 1 year and is refreshed on each event. A cleared cookie, a private window or a second device creates a new ID. In the Godot and Unity SDKs, the ID is kept in a file in the game's data folder.

### Is a random player ID enough to avoid consent?

Not by itself. The EDPB says Article 5(3) covers information stored on a device, and an SDK that sends a stored ID gains access to it. Whether an exemption applies depends on your purpose and on national rules. This is not legal advice.

### Can one player have more than one anonymous ID?

Yes. One player on a desktop PC and on a Steam Deck has 2 anonymous IDs, so an anonymous report counts 2 players. A cleared cookie or a private window also creates a new ID. When the game calls identify with the same user ID on both devices, reports that follow users count 1.

## Sources

- [EDPB: Guidelines 2/2023 on Technical Scope of Art. 5(3) of ePrivacy Directive, version 2.0 (adopted 7 October 2024)](https://www.edpb.europa.eu/system/files/documents/2024-10/edpb_guidelines_202302_technical_scope_art_53_eprivacydirective_v2_en_0.pdf)
- [Godot Engine documentation: File paths in Godot projects (read 19 November 2026)](https://docs.godotengine.org/en/stable/tutorials/io/data_paths.html)
- [Unity documentation: Application.persistentDataPath (read 19 November 2026)](https://docs.unity.com/en-us/engine/current/script-reference/unityengine/application/persistentdatapath)

## Related guides

- [Privacy friendly game analytics and GDPR](https://manalens.dev/blog/privacy-friendly-game-analytics-gdpr)
- [Privacy-first analytics](https://manalens.dev/features/cookieless-analytics)
- [Retention calculator](https://manalens.dev/tools/retention-calculator)
- [Identity stitching](https://manalens.dev/glossary/identity-stitching)
- [Visitor](https://manalens.dev/glossary/visitor)
