✦ What's new: Concurrent players on the Game KPIs board
☰
All featuresAttributionRetentionAudienceAnalyticsIntegrationsGrow Steam wishlistsSteam Next FestCreator marketingLaunch on SteamAsk AIFor game developersFor game studiosFor game publishersComparisonsPricingSecurityDocumentationFree toolsBlogGlossary

Game analytics for HTML5 games.

HTML5 game analytics shows who plays your game, where players stop, whether they come back, and which posts and creators brought them. An HTML5 game sends events with the Manalens JavaScript SDK, @manalens/web, from your own game code. The SDK is open source under the MIT license.

Updated

The questions Manalens answers

What does Manalens track in a HTML5 game?

The web SDK counts visitors, sessions and page views, and game: true marks the events as game events. When the game state changes, such as level_complete, call track(). Never call it in the animation loop.

Custom events →

Does it work on itch.io and game portals?

Yes. Every project allows *.itch.zone by default. Other portals need the host of their game frame in Allowed origins. Inside a portal iframe the SDK sees the portal host, not the portal page, so that page's referrer is not visible.

HTML5 install guide →

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 →

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 →

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 →

How to set up HTML5 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, or add the script tag from the setup page of your project.
  2. Create one SDK instance with your Publishable key and game: true.
  3. On a game portal other than itch.io, add the host of the game frame to Allowed origins.

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,
});

analytics.track('level_complete', { level: 3 });

How to track an HTML5 game →

See it in Manalens

Read the guides

Free tools

Keep players

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

  1. Game tracking plan generator
  2. D1, D7, D30 retention calculator
  3. Crash-free rate calculator
  4. Player LTV calculator

Analytics for other game engines

Built for your team: Game analytics for game developers →

Frequently asked questions

Is there a plugin for PixiJS?

No. The JavaScript SDK is plain browser code with no framework link, so the same code works in PixiJS, Phaser and Three.js. Create one instance and call track() from your game code.

Does the game share players with my website?

Yes, when the game runs on your own domain. The game and the website share the visitor ID, so one player counts once.

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.

Measure what matters

Manalens makes growth simple, so you can focus on making games.

Book a demo