# Game analytics for Three.js games.

> Game analytics for Three.js games: players, funnels, retention and errors, and the posts and creators that bring players. Set up with the web SDK.

Canonical URL: https://manalens.dev/solutions/threejs-game-analytics

Three.js game analytics shows who plays your game, where players stop, whether they come back, and which posts and creators brought them. A Three.js game sends events with the Manalens JavaScript SDK from your own game code. There is no Three.js plugin, and the same code works in React Three Fiber.

- [Request early access](https://manalens.dev/game-analyzer?tool=for-threejs-game-analytics)
- [See pricing](https://manalens.dev/pricing)

Updated 27 November 2026

## The questions Manalens answers

### What does Manalens track in a Three.js game?

The web SDK counts visitors, sessions and page views. When the game state changes, call track(). Send asset loading failures and lost WebGL contexts as errors.

[Custom events](https://manalens.dev/features/custom-events)

### Is there a complete Three.js example?

Yes. The with-threejs example on GitHub is a complete game built with Vite, with level events and error tracking, so you can copy the setup.

[Three.js install guide](https://manalens.dev/integrations/threejs)

### Where do players stop in the first session?

Funnels show each step from launch to the first level complete, and user journeys show the paths players take. Break any report down by platform, version or build to find the release that broke a step.

[Funnels](https://manalens.dev/features/funnels)

### Do players come back after day one?

Retention shows day 1, day 7, and day 30 returns by the week players started. So you see whether a patch or a demo update held more players.

[Retention](https://manalens.dev/features/retention)

### Which posts and creators bring players?

Give each post and creator a tagged link. Attribution credits players, wishlists and sales to the campaign that brought them, and the Steamworks UTM report import joins Steam wishlists to the same campaigns.

[Attribution](https://manalens.dev/features/attribution)

## How to set up Three.js analytics

The setup takes a few minutes. Use the Publishable key from your project settings. It is safe to ship in a build.

1. Install @manalens/web from npm.
2. Create one SDK instance with your Publishable key and the app option.
3. When a level starts or ends, call track(). Never call it in the render loop.

JavaScript

```
import { init } from '@manalens/web';

export const analytics = init({
  publishableKey: 'YOUR_PUBLISHABLE_KEY',
  app: { platform: 'web', engine: 'other', app_version: '1.0.0', build: '1' },
  game: true,
});
```

[How to add analytics to a Three.js game](https://manalens.dev/integrations/threejs)

## See it in Manalens

- [Funnels](https://manalens.dev/features/funnels): Find the step where players stop, from launch to the first level complete.

- [Retention](https://manalens.dev/features/retention): See whether players come back on day 1, day 7 and day 30, release by release.

## Read the guides

- [Best analytics tools for Three.js games in 2026](https://manalens.dev/blog/best-threejs-analytics-tools)
- [Poki vs CrazyGames vs GameDistribution: pay and rules](https://manalens.dev/blog/poki-vs-crazygames-vs-gamedistribution)
- [Engine analytics compared: Unreal, Godot, GameMaker, Construct, Phaser](https://manalens.dev/blog/game-engine-analytics-compared)

## Free tools

### Keep players

Plan the events, then read retention, stability and lifetime value.

1. [Game tracking plan generator](https://manalens.dev/tools/game-tracking-plan-generator)
2. [D1, D7, D30 retention calculator](https://manalens.dev/tools/retention-calculator)
3. [Crash-free rate calculator](https://manalens.dev/tools/crash-free-rate-calculator)
4. [Player LTV calculator](https://manalens.dev/tools/player-ltv-calculator)

## Analytics for other game engines

- [Godot](https://manalens.dev/solutions/godot-game-analytics)
- [Unity](https://manalens.dev/solutions/unity-game-analytics)
- [Unreal Engine](https://manalens.dev/solutions/unreal-game-analytics)
- [HTML5](https://manalens.dev/solutions/html5-game-analytics)
- [Phaser](https://manalens.dev/solutions/phaser-game-analytics)
- [GameMaker](https://manalens.dev/solutions/gamemaker-game-analytics)
- [Construct 3](https://manalens.dev/solutions/construct-3-game-analytics)
- [RPG Maker MZ](https://manalens.dev/solutions/rpg-maker-mz-game-analytics)
- [Ren'Py](https://manalens.dev/solutions/renpy-game-analytics)

Built for your team: [Game analytics for game developers](https://manalens.dev/solutions/game-developers)

## Frequently asked questions

**Does it work with React Three Fiber?**

Yes. The SDK is plain browser code, so create one instance outside your components and call track() from your game logic.

**Can games from other engines share one project?**

Yes. Every engine sends the same events to the same endpoint, with an engine field. Filter or break down any report by engine, platform or build.

**Is there a free plan?**

Not at this time. However, Growth and Scale come with a 14-day free trial, which you can cancel at any time. The free tools on this site need no account.
