# Best analytics tools for three.js games in 2026

> Eight analytics tools for three.js and React Three Fiber games compared by bundle size, cookies, tab close delivery, portal rules and price.

By Yos Riady. Updated 2026-11-19. Published 2026-11-19. Canonical URL: https://manalens.dev/blog/best-threejs-analytics-tools

three.js has no analytics module, so a three.js game uses a browser SDK. We compare 8 tools: Manalens for games on your own domain, GameAnalytics for free game reports, PostHog, Mixpanel and Amplitude for product analytics, Google Analytics 4 and Plausible for page views, and Sentry for errors. Portals add their own rules.

## Key points

- No tool in this list has a three.js plugin, so each one is a JavaScript SDK that you call from your game code.
- Measured script sizes run from about 1.3 KB gzip for the Plausible script to 122 KB gzip for the posthog-js bundle.
- Poki blocks external requests by default and says that Google products cannot be approved, so check the portal before the SDK.

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

| Tool | Package | Script size | Without cookies | On tab close | Main 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 build | Consent mode sends events with no ID and stores nothing. By default it sets a first-party cookie. | fetch with keepalive when the page hides | Game, website and Steam analytics |
| GameAnalytics | gameanalytics 5.0.0, MIT | 22 KB gzip (92 KB), GameAnalytics.min.js | Yes: localStorage, no cookies in the package source | A beforeunload handler ends the session. No sendBeacon or keepalive in the source. | Game analytics, A/B tests |
| PostHog | posthog-js 1.451.2 | 122 KB gzip (381 KB), dist/array.js | Optional: cookieless_mode. The default is localStorage and a cookie. | navigator.sendBeacon | Product analytics, flags, replay |
| Mixpanel | mixpanel-browser 2.86.0, Apache 2.0 | 39 KB gzip (121 KB), mixpanel.min.js | Not 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, MIT | 66.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 keepalive | Product analytics |
| Google Analytics 4 | Google tag (gtag.js), loaded from Google | Not stated | No: first-party cookies for 2 years by default. Consent mode can deny analytics_storage. | Not stated | Web analytics with a Google Ads link |
| Plausible | Script tag from plausible.io | 1.3 KB gzip (2.8 KB), plausible.io/js/script.js | Yes: no cookies and no persistent identifiers | Not stated | Page level web analytics |
| Sentry | @sentry/browser 11.14.0, MIT | 33 KB gzip (96 KB), CDN bundle.min.js | Not stated | Not stated | Errors |

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.

- [Manalens pricing](https://manalens.dev/pricing)

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.

- [Manalens vs GameAnalytics](https://manalens.dev/compare/gameanalytics)
- [6 GameAnalytics alternatives for indie game studios](https://manalens.dev/compare/gameanalytics-alternatives)

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.

- [Manalens vs PostHog](https://manalens.dev/compare/posthog)
- [PostHog alternatives for games: 6 tools compared](https://manalens.dev/compare/posthog-alternatives)

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.

- [Manalens vs Mixpanel](https://manalens.dev/compare/mixpanel)
- [Mixpanel alternatives for games: 6 tools compared](https://manalens.dev/compare/mixpanel-alternatives)

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.

- [Manalens vs Amplitude](https://manalens.dev/compare/amplitude)
- [Amplitude alternatives for games: 6 tools compared](https://manalens.dev/compare/amplitude-alternatives)

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.

- [Manalens vs Google Analytics 4](https://manalens.dev/compare/google-analytics)
- [Google Analytics alternatives for games](https://manalens.dev/compare/google-analytics-alternatives)

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.

- [Manalens vs Plausible](https://manalens.dev/compare/plausible)

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.

- [Manalens vs Sentry](https://manalens.dev/compare/sentry)

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.

- [Install the web SDK on your game website or browser game](https://manalens.dev/integrations/javascript)
- [How to add analytics to a Phaser game](https://manalens.dev/blog/phaser-analytics)

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

- [Game tracking plan generator](https://manalens.dev/tools/game-tracking-plan-generator)
- [What events to track first in your game](https://manalens.dev/blog/game-tracking-plan-first-events)
- [Event](https://manalens.dev/glossary/event)
- [Event property](https://manalens.dev/glossary/event-property)
- [Session](https://manalens.dev/glossary/session)

*Events and properties for a three.js game, from the Manalens event conventions.*

| Event | Properties | When |
| --- | --- | --- |
| game_open | is_first_open, first_open_at | Each launch |
| session_start | none | A session starts |
| session_end | duration_s | The page hides, or after 30 minutes idle |
| level_start | level, attempt | The player starts a level |
| level_complete | level, attempt, score | The player completes a level |
| level_fail | level, attempt, score | The player fails a level |
| resource | flow (source or sink), currency, amount, item | The player gains or spends an in-game resource |
| purchase | amount_cents, currency, store | A real-money purchase |
| error | severity, message, error_type, handled, fingerprint | A game error, such as a lost WebGL context |
| game_updated | previous_version, previous_build | The 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.

- [Sampling](https://manalens.dev/glossary/sampling)
- [Game analytics pricing compared: MAU vs event based plans](https://manalens.dev/blog/game-analytics-pricing-mau-vs-events)

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.

- [Web game analytics for Poki, CrazyGames and itch.io HTML5](https://manalens.dev/blog/web-game-analytics-poki-crazygames-itch)
- [Ship an HTML5 web game on Steam](https://manalens.dev/blog/html5-web-game-on-steam)
- [Best itch.io analytics and attribution tools in 2026](https://manalens.dev/blog/best-itch-io-analytics-tools)

*What web game portals give you and what they allow for third-party analytics. Sources read 19 November 2026.*

| Portal | What the portal gives you | Third-party analytics |
| --- | --- | --- |
| Poki | Game Events through the measure() function of the Poki SDK, with funnels | Blocked by default. Each external URL needs approval, reviewed case by case, with a privacy policy linked in the game. Google products cannot be approved. |
| CrazyGames | A dashboard with players, average playtime, gameplay conversion, retention and revenue | If 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.io | A GA4 measurement ID for your account and for each project | The 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.

- [Privacy friendly game analytics and GDPR](https://manalens.dev/blog/privacy-friendly-game-analytics-gdpr)
- [Cookieless analytics](https://manalens.dev/glossary/cookieless-analytics)
- [Consent for game analytics](https://manalens.dev/glossary/gdpr-consent-games)

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.

- [Best free game analytics tools in 2026](https://manalens.dev/blog/best-free-game-analytics-tools)
- [Best crash reporting tools for indie games in 2026](https://manalens.dev/blog/best-crash-reporting-tools-indie-games)
- [Best game telemetry tools in 2026](https://manalens.dev/blog/best-game-telemetry-tools)

*Needs where another tool fits a three.js game better than Manalens. Sources read 19 November 2026.*

| Need | Manalens | Better fit |
| --- | --- | --- |
| A free plan | No. A 7-day trial. | GameAnalytics, PostHog, Mixpanel, Amplitude, Google Analytics 4 |
| A package on npm today | Not yet. On request during early access. | Every other SDK in this list |
| A three.js or React Three Fiber plugin | No | None in this list. Each tool is a JavaScript SDK. |
| The web SDK inside an itch.io or portal iframe | No. 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 capture | No. You send error events. | Sentry, PostHog |
| The smallest script | No | Plausible, for page views only |
| Feature flags, A/B tests or session replay | No | PostHog, GameAnalytics (A/B tests), Mixpanel, Amplitude |
| Events that survive a closed tab | No. 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.

- [Install the web SDK on your game website or browser game](https://manalens.dev/integrations/javascript)

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

- [GameAnalytics pricing (read 19 November 2026)](https://gameanalytics.com/pricing)
- [PostHog pricing (read 19 November 2026)](https://posthog.com/pricing)
- [Mixpanel pricing (read 19 November 2026)](https://mixpanel.com/pricing/)
- [Amplitude pricing (read 19 November 2026)](https://amplitude.com/pricing)
- [Google Analytics (read 19 November 2026)](https://marketingplatform.google.com/about/analytics/)
- [Plausible plans and prices (read 19 November 2026)](https://plausible.io/)
- [Sentry pricing (read 19 November 2026)](https://sentry.io/pricing/)
- [GameAnalytics JavaScript SDK docs: Setup (read 19 November 2026)](https://docs.gameanalytics.com/event-tracking-and-integrations/sdks-and-collection-api/open-source-sdks/javascript)
- [GameAnalytics JavaScript SDK docs: Event tracking (read 19 November 2026)](https://docs.gameanalytics.com/event-tracking-and-integrations/sdks-and-collection-api/open-source-sdks/javascript/event-tracking)
- [gameanalytics on npm (version 5.0.0) (read 19 November 2026)](https://www.npmjs.com/package/gameanalytics)
- [PostHog JavaScript web SDK docs (read 19 November 2026)](https://posthog.com/docs/libraries/js)
- [PostHog JavaScript web SDK configuration (read 19 November 2026)](https://posthog.com/docs/libraries/js/config)
- [posthog-js on npm (version 1.451.2) (read 19 November 2026)](https://www.npmjs.com/package/posthog-js)
- [Mixpanel JavaScript SDK docs (read 19 November 2026)](https://docs.mixpanel.com/docs/tracking-methods/sdks/javascript)
- [mixpanel-browser on npm (version 2.86.0) (read 19 November 2026)](https://www.npmjs.com/package/mixpanel-browser)
- [Amplitude Browser SDK 2 docs (read 19 November 2026)](https://amplitude.com/docs/sdks/analytics/browser/browser-sdk-2)
- [@amplitude/analytics-browser on npm (version 2.49.3) (read 19 November 2026)](https://www.npmjs.com/package/@amplitude/analytics-browser)
- [Google Analytics: Set up events (read 19 November 2026)](https://developers.google.com/analytics/devguides/collection/ga4/events)
- [Google Analytics cookie usage (read 19 November 2026)](https://support.google.com/analytics/answer/11397207)
- [Google tag platform: Set up consent mode (read 19 November 2026)](https://developers.google.com/tag-platform/security/guides/consent)
- [Google Analytics Help: BigQuery Export (read 19 November 2026)](https://support.google.com/analytics/answer/9358801)
- [Plausible docs: Custom event goals (read 19 November 2026)](https://plausible.io/docs/custom-event-goals)
- [Sentry for JavaScript (read 19 November 2026)](https://docs.sentry.io/platforms/javascript/)
- [Sentry JavaScript: GlobalHandlers integration (read 19 November 2026)](https://docs.sentry.io/platforms/javascript/configuration/integrations/globalhandlers/)
- [@sentry/browser on npm (version 11.14.0) (read 19 November 2026)](https://www.npmjs.com/package/@sentry/browser)
- [Poki for Developers: External resources policy (read 19 November 2026)](https://developers.poki.com/guide/external-resources-policy)
- [Poki for Developers: HTML5 SDK guide (read 19 November 2026)](https://developers.poki.com/guide/sdk-html5)
- [Poki: Game Events, the new tool for understanding your players (25 August 2026) (read 19 November 2026)](https://poki.com/blog/game-events-new-tool-for-understanding-your-players)
- [CrazyGames documentation: Requirements introduction (read 19 November 2026)](https://docs.crazygames.com/requirements/intro/)
- [CrazyGames documentation: Technical requirements (read 19 November 2026)](https://docs.crazygames.com/requirements/technical/)
- [itch.io documentation: Uploading HTML5 games (read 19 November 2026)](https://itch.io/docs/creators/html5)
- [itch.io: Google Analytics 4 update guide (read 19 November 2026)](https://itch.io/t/2864151/google-analytics-4-update-guide)
- [three.js docs: WebGLRenderer (read 19 November 2026)](https://threejs.org/docs/pages/WebGLRenderer.html)
- [three on npm (version 0.187.0) (read 19 November 2026)](https://www.npmjs.com/package/three)
- [React Three Fiber documentation: Introduction (read 19 November 2026)](https://r3f.docs.pmnd.rs/getting-started/introduction)
- [MDN Web Docs: Navigator.sendBeacon() (read 19 November 2026)](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/sendBeacon)
- [MDN Web Docs: HTMLCanvasElement webglcontextlost event (read 19 November 2026)](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/webglcontextlost_event)
- [MDN Web Docs: Crypto.randomUUID() (read 19 November 2026)](https://developer.mozilla.org/en-US/docs/Web/API/Crypto/randomUUID)

## Related guides

- [Game marketing measurement guide](https://manalens.dev/blog/game-marketing-measurement-guide)
- [How to add analytics to a Phaser game](https://manalens.dev/blog/phaser-analytics)
- [Web game analytics for Poki, CrazyGames and itch.io HTML5](https://manalens.dev/blog/web-game-analytics-poki-crazygames-itch)
- [Ship an HTML5 web game on Steam](https://manalens.dev/blog/html5-web-game-on-steam)
- [Best game analytics tools for indie developers in 2026](https://manalens.dev/blog/best-game-analytics-tools-indie-developers)
- [Best game telemetry tools in 2026](https://manalens.dev/blog/best-game-telemetry-tools)
- [Engine analytics compared](https://manalens.dev/blog/game-engine-analytics-compared)
- [Game tracking plan generator](https://manalens.dev/tools/game-tracking-plan-generator)
- [Player analytics guides](https://manalens.dev/blog/topic/player-analytics)
- [Build vs buy a game analytics pipeline](https://manalens.dev/blog/build-vs-buy-game-analytics-pipeline)
- [Best free game analytics tools in 2026](https://manalens.dev/blog/best-free-game-analytics-tools)
- [Best Unity analytics tools in 2026](https://manalens.dev/blog/best-unity-analytics-tools)
- [How to move from Unity Analytics to Manalens](https://manalens.dev/blog/migrate-from-unity-analytics)
