> ## 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.

# Widgets

> Embeddable badges for your website, itch.io page, devlog or GitHub README: live players, players this week, visitors and Steam wishlists.

A **widget** is a small badge that shows one number from your project, for example **128 playing now** during a demo or Next Fest, or **8,200 wishlists** on a devlog. Put it on your website, itch.io page, devlog, press kit or a GitHub README for your game.

Each badge has an icon for its number (a gamepad for players, an eye for visitors, a heart for wishlists), a label, and the number on azure. It comes in a dark and a light theme.

## Create a widget

1. Open the project menu, then **Project settings**, then the **Widgets** tab. The **Embed badge** step of the Getting started checklist in the sidebar opens the same tab.
2. Pick the number to show and click **Create widget**.
3. Copy the **HTML** or **Markdown** snippet and paste it into your page.

Creating, changing and deleting widgets needs an owner or admin with MFA. Every change is in the audit log.

## Numbers you can show

| Widget | Icon | Number | Shown from |
| - | - | - | - |
| **Live players** | Gamepad | Players with a game event (SDK channel `app`) in the last 5 minutes | 5 |
| **Live visitors** | Eye | Website visitors in the last 5 minutes | 5 |
| **Players this week** | Gamepad | Game players in the last 7 days | 10 |
| **Players, 30 days** | Gamepad | Game players in the last 30 days | 10 |
| **Visitors, 30 days** | Eye | Website visitors in the last 30 days | 10 |
| **Steam wishlists** | Heart | Outstanding wishlists from the [Steamworks sync](https://docs.manalens.dev/integrations/steam.md): adds minus deletes, purchases and gifts, for every Steam app in the project | 10 |

Below the "shown from" number, the badge shows the manalens logo and **Analytics by manalens** with no number, so a quiet hour does not look empty. Bots are not counted. Players and visitors are distinct visitor IDs. Counts over a week or 30 days are approximate (about 1%), and large numbers are rounded down, for example `12.3K`.

Widgets show aggregate counts only, never any personal or identifying information. Steam does not publish wishlist counts, so a wishlist widget is a choice to publish yours.

## Embed it

Each widget has two snippets: **HTML** for your site, itch.io page or devlog, and **Markdown** for a GitHub README.

```html HTML theme={null}
<a href="https://manalens.dev/?utm_source=badge&utm_medium=referral&utm_campaign=WIDGET_ID&utm_content=live_players"><img src="https://manalens.dev/w/WIDGET_ID.svg" alt="Live players. Analytics by manalens"></a>
```

```markdown Markdown theme={null}
[![Live players. Analytics by manalens](https://manalens.dev/w/WIDGET_ID.svg)](https://manalens.dev/?utm_source=badge&utm_medium=referral&utm_campaign=WIDGET_ID&utm_content=live_players)
```

The badge is an image inside a plain link, so it works where scripts and iframes do not (itch.io descriptions, GitHub). Steam store pages do not allow custom HTML. The link to Manalens is optional: keep only the `<img>` to remove it.

## The widget ID

`WIDGET_ID` is a random token of 20 characters (`a` to `z`, `0` to `9`). It is not your project ID or a key, and it cannot be guessed. It is public: anyone who sees your page can read the number the badge shows, and nothing more. The URL takes no parameters, so nobody can ask it for another number or date range.

To stop a badge, turn off **Show the number**. To retire an ID, delete the widget and create a new one.

## Privacy and updates

* **Off by default.** A widget exists only after you create it. Turn off **Show the number** to hide the number. Pages already open, and caches such as GitHub's image proxy, update within a few minutes. Deleting a widget does the same.
* **No tracking of your visitors.** The badge sets no cookie and records no event.
* **Refresh.** Live numbers refresh about every minute, the others about every 10 minutes.
* **Plan.** A workspace without an active plan or trial, or a suspended one, shows the badge with no number.

## Static badge and badge maker

Without a project, use the static **Analytics by manalens** badge or the free [game badge maker](https://manalens.dev/tools/game-badge-maker), which draws a badge with any label, number and icon. See [manalens.dev/badge](https://manalens.dev/badge).


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