Which tool should you pick?

Pick by where the game runs and what you must learn. None of these tools has a three.js plugin, ours included: each one is a JavaScript SDK that you call from your game code. The same is true for React Three Fiber. Four of these picks are free where ours is not.

  • three.js game on your own domain, with a Steam or itch.io page too: Manalens. One player across the website and the game, with Steam wishlists and sales next to the game events.
  • Free game reports: progression, resources and design events: GameAnalytics. A free plan with no MAU cap and a JavaScript SDK under the MIT license.
  • Feature flags, experiments and session replay: PostHog. 1M events free each month, and a cookieless mode.
  • Your team already uses Mixpanel or Amplitude: Mixpanel. 1M events a month are free. Amplitude gives 2M and has a smaller lite build.
  • Page views of the game page, with no cookies: Plausible. A very small script that sets no cookies. It is a web analytics tool, not a game tool.
  • JavaScript errors in a WebGL game: Sentry. It captures uncaught errors and unhandled promise rejections by default.

Sources: the pricing and docs pages of each tool, read 19 November 2026; Manalens product documentation.

How do the three.js analytics tools compare?

We compare 8 tools: Manalens, GameAnalytics, PostHog, Mixpanel, Amplitude, Google Analytics 4, Plausible and Sentry. Each row links to a section below with the price, the strengths, the limits and the source.

Analytics tools for three.js games by package, script size, cookies, delivery on tab close and main job. Sizes measured from each npm package on 19 November 2026, unless the cell says other. Sources read 19 November 2026.
ToolPackageScript sizeWithout cookiesOn tab closeMain job
Manalens@manalens/web 0.1.0. Not on npm yet: on request.About 12 KB gzip (42 KB, not minified), measured from the 0.1.0 browser buildConsent mode sends events with no ID and stores nothing. By default it sets a first-party cookie.fetch with keepalive when the page hidesGame, website and Steam analytics
GameAnalyticsgameanalytics 5.0.0, MIT22 KB gzip (92 KB), GameAnalytics.min.jsYes: localStorage, no cookies in the package sourceA beforeunload handler ends the session. No sendBeacon or keepalive in the source.Game analytics, A/B tests
PostHogposthog-js 1.451.2122 KB gzip (381 KB), dist/array.jsOptional: cookieless_mode. The default is localStorage and a cookie.navigator.sendBeaconProduct analytics, flags, replay
Mixpanelmixpanel-browser 2.86.0, Apache 2.039 KB gzip (121 KB), mixpanel.min.jsNot by default: a cookie that lasts 365 days. localStorage is an option.sendBeacon on pagehide (package source)Product analytics
Amplitude@amplitude/analytics-browser 2.49.3, MIT66.1 kB gzip, from its docs. Lite build: 22 KB gzip, measured.Not by default: identity is in cookies. identityStorage can be localStorage.fetch with keepaliveProduct analytics
Google Analytics 4Google tag (gtag.js), loaded from GoogleNot statedNo: first-party cookies for 2 years by default. Consent mode can deny analytics_storage.Not statedWeb analytics with a Google Ads link
PlausibleScript tag from plausible.io1.3 KB gzip (2.8 KB), plausible.io/js/script.jsYes: no cookies and no persistent identifiersNot statedPage level web analytics
Sentry@sentry/browser 11.14.0, MIT33 KB gzip (96 KB), CDN bundle.min.jsNot statedNot statedErrors

Sources: the pricing and docs pages of each tool, read 19 November 2026; Manalens product documentation.

What is Manalens best for?

Best for: three.js games on your own domain that want game, website and Steam data in one project.

In a three.js game: there is no three.js plugin. You use the JavaScript SDK (@manalens/web) inside your app, and you send the game events yourself with track(). The package is not on npm yet. During early access, you ask us for it. The SDK is plain browser code with no dependencies and no link to a framework.

Price: Indie $79 a month for up to 10K MAU. Scale $199 to $999 a month for 20K to 100K MAU. Enterprise above 100K MAU, by contract. A year costs the price of ten months. Hosted checkout is not open yet.

Free plan: No free plan. A 7-day trial with no card.

  • Strength: One player across your website and your game. A browser game on your domain shares the website visitor ID.
  • Strength: The app option adds platform, version and build to every event, so you can read errors and funnels by build.
  • Strength: Batches of 10 events or every 5 seconds, with retries. It sends the queue with keepalive when the page hides.
  • Strength: Consent mode: no cookie and no localStorage until setConsent(true).
  • Strength: A reverse proxy guide, to serve the script and send events through your own domain.
  • Strength: One price by MAU, with no overage charges.
  • Limit: No free plan. A 7-day trial with no card.
  • Limit: No three.js or React Three Fiber plugin. It is the JavaScript SDK inside your app.
  • Limit: Not on npm yet. During early access, the package is available on request.
  • Limit: The page must be on your project domain or a host in Allowed origins. On itch.io (allowed by default) or another portal, the SDK sees only the portal host, so the referrer and UTM tags of the portal page are lost.
  • Limit: No automatic error capture in the web SDK, and no native crash dumps. You send error events with track().
  • Limit: The queue is in memory. Events that are not sent when the tab closes are lost.
  • Limit: It needs a secure context (HTTPS), because it makes IDs with crypto.randomUUID().
  • Limit: No A/B tests, feature flags or session replay.

Sources: Manalens pricing page and product documentation.

What is GameAnalytics best for?

Best for: three.js games that want free game reports and accept its fixed event types.

In a three.js game: npm install gameanalytics, then initialize with your game key and secret key. Version 5.0.0 keeps events in localStorage and sends them every 8 seconds (package source). Its docs say that the SDK expects a browser where the navigator object is defined.

Price: Free plan. AnalyticsIQ Pro is $49 a month billed monthly, or $29 a month billed $348 a year. PipelineIQ starts at $499 a month.

Free plan: Yes, with no MAU cap.

  • Strength: A free plan with no MAU cap.
  • Strength: Game event types out of the box: progression, resource, business, design and error events.
  • Strength: An open source JavaScript SDK under the MIT license, on npm.
  • Strength: setEnabledEventSubmission(false) stops event submission, for consent.
  • Limit: Custom fields on events are available only through raw data export, which is on PipelineIQ.
  • Limit: The initialize call takes a game key and a secret key in the browser.
  • Limit: The package source has no sendBeacon or keepalive call, so the last events of a tab can be late.
  • Limit: Steam and store data are not listed on its pricing page.

Sources: GameAnalytics pricing (read 19 November 2026).

What is PostHog best for?

Best for: three.js games from teams that want flags, experiments and replay next to events.

In a three.js game: npm install posthog-js, then posthog.init() and posthog.capture(). Autocapture reads page elements, and a WebGL canvas is one element, so game events are your own capture() calls. PostHog recommends a reverse proxy so that requests are first-party.

Price: Free each month: 1M analytics events, 5K recordings, 1M feature flag requests and 100K exceptions. Then pay as you go per product.

Free plan: Yes: 1 project and 1-year data retention.

  • Strength: 1M analytics events, 5K recordings and 100K exceptions free each month.
  • Strength: cookieless_mode sets no cookies and uses no session or local storage. You also enable it in the project settings.
  • Strength: It uses navigator.sendBeacon to send events such as the page leave, unless you set disable_beacon.
  • Strength: Opt-out by default with opt_out_capturing_by_default, and exception capture as an option.
  • Limit: The largest script in this list. Its docs call the slim bundle experimental.
  • Limit: Session replay records the page. We did not test it on a WebGL canvas.
  • Limit: Usage is billed per product, so a game that sends many events pays more.
  • Limit: Steam and store data are not listed on its pricing page.

Sources: PostHog pricing (read 19 November 2026).

What is Mixpanel best for?

Best for: Teams that already use Mixpanel for a web product and want the game in the same project.

In a three.js game: npm install mixpanel-browser, then mixpanel.init() and mixpanel.track(). Version 2.86.0 batches requests by default, flushes every 5 seconds, and sends the last batch with sendBeacon on pagehide (package source).

Price: Free up to 1M events a month. Growth starts at $0 and bills by events: for example $259 a month for 2M events on monthly billing.

Free plan: Yes: up to 1M events a month, 10K session replays and up to 10 active feature flags.

  • Strength: Up to 1M events a month free, with 10K session replays.
  • Strength: opt_out_tracking() and opt_out_tracking_by_default for consent.
  • Strength: Its docs show a proxy on your own domain, to reduce the effect of ad blockers.
  • Limit: Billed by events per month, so a game that sends many events per player pays more.
  • Limit: No game event types. Levels and resources are your own event design.
  • Limit: Steam and store data are not listed on its pricing page.

Sources: Mixpanel pricing (read 19 November 2026).

What is Amplitude best for?

Best for: Web games that want a large free event allowance and a small build option.

In a three.js game: npm install @amplitude/analytics-browser, then amplitude.init() and amplitude.track(). Its docs list 66.1 kB gzip for the package and a lite build with no autocapture at about 30% of that. The SDK uploads about one second after the first queued event, in requests of up to 30 events.

Price: Free up to 2M events a month. Plus starts at $0 and scales with events. Growth and Enterprise are custom.

Free plan: Yes: 2M events a month, 10K replay sessions and unlimited feature flags.

  • Strength: 2M events a month free, with 10K replay sessions.
  • Strength: A lite build with no autocapture, which fits a canvas game.
  • Strength: The default fetch transport sends with keepalive.
  • Strength: EU data residency with serverZone: "EU".
  • Limit: Session Replay and Experiment need the Browser Unified SDK, which is a different package.
  • Limit: Billed by events per month.
  • Limit: Steam and store data are not listed on its pricing page.

Sources: Amplitude pricing (read 19 November 2026).

What is Google Analytics 4 best for?

Best for: Free page and campaign reports for the game page, where the portal allows Google.

In a three.js game: load the Google tag, then call gtag("event", "level_complete", { level: 3 }). Call gtag("consent", "default", ...) before any event if you need consent. We did not measure the tag: Google serves it for each property.

Price: Free. Google says that Analytics gives its tools free of charge.

Free plan: Yes. The standard version is free.

  • Strength: Free, with a Google Ads link.
  • Strength: Custom events with gtag("event", name, parameters).
  • Strength: A free BigQuery export of raw events, up to 1 million events a day on standard properties.
  • Strength: itch.io lets you add a GA4 measurement ID to your account and to each project.
  • Limit: It sets first-party cookies (_ga and _ga_<container-id>) that last 2 years by default. Consent mode changes this after a consent choice.
  • Limit: Poki says that Google products, Google Analytics included, cannot be approved for games on its portal.
  • Limit: Built for pages and sessions on a website. Game reports such as level funnels are your own setup.
  • Limit: Steam and store data are not listed in the Google Analytics help pages.

Sources: Google Analytics (read 19 November 2026).

What is Plausible best for?

Best for: Page level numbers only: visits, referrers and campaigns of the game page.

In a three.js game: Plausible counts page views. You can send a custom event with plausible("Level Complete", { props: { level: 3 } }), but it has no players, sessions per player or retention. Use it for the page, not for the game.

Price: Starter $9 a month for up to 10k pageviews and one site. At 10k pageviews, Growth is $14 and Business is $19. Yearly billing saves 2 months.

Free plan: No free plan. A 30-day trial with no card. The self-hosted Community Edition is free under the AGPLv3.

  • Strength: No cookies or other persistent identifiers.
  • Strength: The smallest script in this list.
  • Strength: An open source Community Edition that you can host yourself.
  • Limit: Page level only. No player IDs, no retention by player and no game event types.
  • Limit: Counts a person on two days or two devices as two visitors.
  • Limit: No free plan. A 30-day trial with no card.

Sources: Plausible plans and prices (read 19 November 2026).

What is Sentry best for?

Best for: JavaScript errors in a three.js game, next to an analytics tool.

In a three.js game: npm install @sentry/browser, then Sentry.init(). Its GlobalHandlers integration is on by default and captures errors that reach onerror and unhandled promise rejections. A lost WebGL context is a canvas event, not an error, so you must report it from a webglcontextlost listener.

Price: Developer: free, 1 user, 5K errors. Team: $29 a month, or $26 a month billed yearly. Business: $89 a month, or $80 a month billed yearly. Team and Business include 50K errors.

Free plan: Developer plan: free, 1 user, 5K errors.

  • Strength: Captures uncaught errors and unhandled promise rejections with no extra code.
  • Strength: A free Developer plan for 1 user, with 5K errors.
  • Strength: CDN bundles let you pick only the features that you need.
  • Limit: It does not make player or marketing reports. Use it next to an analytics tool.
  • Limit: A lost WebGL context is not captured by itself. You add the listener.
  • Limit: Billed by errors a month.

Sources: Sentry pricing (read 19 November 2026).

How do you add Manalens to a three.js game?

Create one analytics instance next to your renderer, then call track() when the game state changes. Manalens has no three.js integration: this is the web SDK in a plain browser app. The sample follows the SDK source and our docs. We did not run this exact sample in a browser for this article.

This works when the game page is on your project domain, or on a host in Allowed origins. On itch.io or another portal, the game runs in an iframe on the portal host. itch.io hosts are allowed by default; add the host of any other portal to Allowed origins (project settings have presets), and the collector accepts the events of the web SDK there. Inside the iframe the SDK sees the portal host, not the portal page, so the referrer and UTM tags of that page are not visible; use short links for traffic sources.

The web SDK sends page views by itself. It does not send game events, so session_start, session_end and the level events are your calls. In React Three Fiber, create the instance once outside your components and call track() from event handlers or effects, not from useFrame.

JavaScript (three.js with the web SDK)

import * as THREE from 'three';
import { createAnalytics } from '@manalens/web';

// The game page must be on your project domain or a host in Allowed origins, over HTTPS.
const analytics = createAnalytics({
  publishableKey: 'YOUR_PUBLISHABLE_KEY',
  endpoint: 'https://YOUR_COLLECTOR_ENDPOINT',
  app: { platform: 'web', engine: 'other', app_version: '1.0.0', build: '1' },
});

const scene = new THREE.Scene();
const camera = new THREE.PerspectiveCamera(60, innerWidth / innerHeight, 0.1, 100);
const renderer = new THREE.WebGLRenderer({ antialias: true });
const startedAt = Date.now();
analytics.track('session_start');

// Game state changes: one event each.
function startLevel(level, attempt) {
  analytics.track('level_start', { level, attempt });
}
function endLevel(level, attempt, score, won) {
  analytics.track(won ? 'level_complete' : 'level_fail', { level, attempt, score });
}

// A lost WebGL context is a canvas event, not an exception.
renderer.domElement.addEventListener('webglcontextlost', () => {
  analytics.track('error', {
    severity: 'critical', message: 'WebGL context lost',
    error_type: 'WebGLContextLost', handled: true, fingerprint: 'WebGLContextLost',
  });
});

// The tab closes: end the session and send the queue with keepalive.
window.addEventListener('pagehide', () => {
  analytics.track('session_end', { duration_s: Math.round((Date.now() - startedAt) / 1000) });
  analytics.flush(true);
});

renderer.setAnimationLoop(() => {
  // Update and render only. Do not call track() here: it runs on every frame.
  renderer.render(scene, camera);
});

Sources: Manalens web SDK and app events documentation; three.js docs, WebGLRenderer; MDN, webglcontextlost event; React Three Fiber documentation, read 19 November 2026.

What should a three.js game track?

Start with the launch, the session, the levels and the errors. These names are the event conventions in our docs, so the game reports read them with no setup. Keep names in snake_case and put the level number in a property, not in the event name.

Events and properties for a three.js game, from the Manalens event conventions.
EventPropertiesWhen
game_openis_first_open, first_open_atEach launch
session_startnoneA session starts
session_endduration_sThe page hides, or after 30 minutes idle
level_startlevel, attemptThe player starts a level
level_completelevel, attempt, scoreThe player completes a level
level_faillevel, attempt, scoreThe player fails a level
resourceflow (source or sink), currency, amount, itemThe player gains or spends an in-game resource
purchaseamount_cents, currency, storeA real-money purchase
errorseverity, message, error_type, handled, fingerprintA game error, such as a lost WebGL context
game_updatedprevious_version, previous_buildThe first launch after an update

Sources: Manalens app events documentation.

How often should a three.js game send events?

Send an event when the state changes, never on each frame. An animation loop runs many times a second, so a track() call inside it fills the queue with events that say nothing, and on event-based plans each one is billed.

For values that change all the time, such as frame rate or player position, take a sample. Keep a counter in the loop, and send one event with the average at a fixed interval or at the end of the level. The SDK batches events, so your code only decides what is worth an event.

Sources: three.js docs, WebGLRenderer.setAnimationLoop; Manalens web SDK documentation.

What do Poki, CrazyGames and itch.io allow?

Each portal has its own rules, and they decide which SDK can run. We state only what each portal documents. Our web portal guide has the steps for each one.

What web game portals give you and what they allow for third-party analytics. Sources read 19 November 2026.
PortalWhat the portal gives youThird-party analytics
PokiGame Events through the measure() function of the Poki SDK, with funnelsBlocked by default. Each external URL needs approval, reviewed case by case, with a privacy policy linked in the game. Google products cannot be approved.
CrazyGamesA dashboard with players, average playtime, gameplay conversion, retention and revenueIf the game collects personal data beyond the SDK events, it should show a terms or privacy notice to new players. CrazyGames recommends ByteBrew for more analytics.
itch.ioA GA4 measurement ID for your account and for each projectThe HTML5 build runs in an iframe from the itch.io CDN and runs your own code. Requests to other domains must use HTTPS.

Sources: Poki for Developers, External resources policy and HTML5 SDK guide; Poki, Game Events (25 August 2026); CrazyGames documentation, Requirements; itch.io, Uploading HTML5 games and Google Analytics 4 update guide, read 19 November 2026.

What breaks analytics in a browser game?

Four things: the tab close, the iframe, the ad blocker and the lost WebGL context. A browser gives no sure signal when a tab closes. MDN says that the most reliable way is to send the data on the visibilitychange event with navigator.sendBeacon, and to use fetch with keepalive when a request must change its properties. So an SDK that needs its own header uses fetch with keepalive.

In a portal iframe, the game runs on the host of the portal. Browser storage belongs to that site, so the same player has a different ID on your own domain. Ad blockers can drop requests to an analytics host. PostHog, Mixpanel and Manalens each document a proxy on your own domain for that reason. We give no figure for the share of blocked players, because we have no source for one.

A lost WebGL context fires the webglcontextlost event on the canvas. No tool in this list reports it by itself. Add a listener and send one error event.

Sources: MDN, Navigator.sendBeacon() and webglcontextlost event; PostHog and Mixpanel JavaScript SDK docs; Manalens web SDK documentation, read 19 November 2026.

When does another tool fit better than Manalens?

Often. Manalens fits a three.js game on your own domain that also sells on Steam or itch.io. For the needs below, another tool is the better choice, and most of them can run next to ours.

Needs where another tool fits a three.js game better than Manalens. Sources read 19 November 2026.
NeedManalensBetter fit
A free planNo. A 7-day trial.GameAnalytics, PostHog, Mixpanel, Amplitude, Google Analytics 4
A package on npm todayNot yet. On request during early access.Every other SDK in this list
A three.js or React Three Fiber pluginNoNone in this list. Each tool is a JavaScript SDK.
The web SDK inside an itch.io or portal iframeNo. You post app events over HTTP from your own code.An SDK with no page domain rule, where the portal allows it. Check each one.
Automatic JavaScript error captureNo. You send error events.Sentry, PostHog
The smallest scriptNoPlausible, for page views only
Feature flags, A/B tests or session replayNoPostHog, GameAnalytics (A/B tests), Mixpanel, Amplitude
Events that survive a closed tabNo. The queue is in memory.GameAnalytics, which keeps events in localStorage (package source)

Sources: the pricing and docs pages of each tool, read 19 November 2026; Manalens product documentation.

How did we evaluate these tools?

We read each tool's own pricing and docs pages on 19 November 2026. We do not use review sites, and we leave out any fact that we could not find on those pages. "Not listed" means we did not find the feature on the pages we checked. It may still exist.

For this list, we picked tools with a browser SDK or script that a three.js game can call, plus the analytics that web game portals give. For each one we read the pricing page, the JavaScript SDK docs and the npm package. Script sizes are our own measure on 19 November 2026: the browser build file named in the table, compressed with gzip -9. The Amplitude figure is from its docs. Where we say "package source", we read the code of that npm version and the docs page did not state the fact. We did not run each SDK in a three.js game. Google Analytics 4, Plausible and Sentry are here for the page and for errors, not as game analytics tools.

We make Manalens. It comes first in every list because this is our site, not because it wins every case. We say where another tool is the better fit. Prices are in USD, before tax, and can change.

Sources: the sources list at the end of this article.

How do I try Manalens in my three.js game?

Manalens is the analytics and growth engine built for games. Ask us for the web SDK package, host the game on your project domain and call track() on each level start and end. For an itch.io build, post app events over HTTP as the Phaser guide shows.

Sources: Manalens product documentation.

Frequently asked questions

Does three.js have built-in analytics?

No. three.js is a 3D library and has no analytics module. A three.js game runs in a browser, so you add a JavaScript analytics SDK to the page and call it from your game code. The same is true for React Three Fiber, which is a React renderer for three.js.

Does Manalens have a three.js plugin?

No. Manalens has no three.js or React Three Fiber plugin. You use its JavaScript SDK, @manalens/web, inside your three.js app, and you send game events with track(). The package is not on npm yet. During early access, it is available on request.

How do I track events in a three.js game?

Create the analytics instance once, next to your renderer. Call the track function when the game state changes: a level starts, a level ends, the player buys an item or an error occurs. Do not call it inside the animation loop, because that code runs on every frame.

Which analytics tools work on Poki, CrazyGames and itch.io?

It depends on the portal. Poki blocks external requests by default, reviews analytics tools case by case and says that Google products cannot be approved. CrazyGames asks for a privacy notice if you collect personal data beyond its SDK events. An itch.io HTML5 build runs your own code, over HTTPS.

Can I use Google Analytics 4 for a three.js game?

Yes, on your own site or an itch.io page, with gtag event calls from your game code. GA4 sets first-party cookies that last 2 years by default, so check your consent duties. Poki says that it cannot approve Google products. GA4 is built for pages, so level funnels are your own setup.

How do I catch a lost WebGL context?

Listen for the webglcontextlost event on the canvas of your renderer, and send one error event from the listener. The browser fires this event when the drawing buffer is lost. It is not a JavaScript exception, so error tools such as Sentry do not capture it by default.

Sources and implementation