# ManaLens Docs > Guides and reference for ManaLens, privacy-friendly web and product analytics with attribution. - [Start here](https://docs.manalens.dev/index.md): Get started with ManaLens, privacy-friendly web and product analytics with attribution. - [Install](https://docs.manalens.dev/install.md): Add the ManaLens Web SDK to your website or app with an HTML snippet or npm, then verify the first event. - [Core concepts](https://docs.manalens.dev/data/concepts.md): How ManaLens defines visitors, sessions, users, people and events, and how anonymous activity joins a known user. - [Demo project](https://docs.manalens.dev/features/demo-project.md): A read-only project with sample data from a made-up game studio. Open it from the intro page or the project menu to see every report before you install the SDK. - [Overview](https://docs.manalens.dev/features/overview.md): See visitors, page views, sessions, bounce rate, session duration and revenue, with breakdowns by page, source, country, device and event. - [Ask AI](https://docs.manalens.dev/features/ask-ai.md): Chat with your analytics in plain language. Each answer comes from an approved report or a chart, and follow-up questions use the earlier turns. - [Audience insights](https://docs.manalens.dev/features/audience-insights.md): See how many people are new, returning, at risk, churned or resurrected, and how often they come back. - [Activity](https://docs.manalens.dev/features/activity.md): Inspect every page view and custom event, with its visitor, page, referrer, campaign, country and device. - [Users](https://docs.manalens.dev/features/users.md): Browse identified and anonymous users, see lifecycle stages and first-touch or last-touch attribution, and open full user profiles. - [Live view](https://docs.manalens.dev/features/live-view.md): Watch active visitors on a live globe with a feed of recent events. - [Filters and segments](https://docs.manalens.dev/features/filters-segments.md): Narrow any report by page, location, technology, event property or acquisition, and save a set of conditions as a reusable segment. - [Search](https://docs.manalens.dev/features/search.md): Find page paths, event names, dashboards and matching events in a project from one search box. - [Dashboards](https://docs.manalens.dev/features/dashboards.md): Build custom dashboards with SQL charts (number, line, area, bar, stacked bar, pie, table) and funnel, retention and user path charts, or start from a template. - [Funnels](https://docs.manalens.dev/features/funnels.md): Build two-to-five-step conversion funnels from page views and custom events, with conversion windows, step order, breakdowns, drop-off and time to convert. - [User paths](https://docs.manalens.dev/features/user-paths.md): See the paths that sessions take between pages and custom events in a Sankey chart, with anchors, a conversion window and drop-offs. - [Retention](https://docs.manalens.dev/features/retention.md): Measure how many people come back with weekly or daily cohort retention, including D1, D7 and D30. Choose the entry and returning events, recurring or rolling retention, and the people. - [Alerts](https://docs.manalens.dev/features/alerts.md): Get a Slack message or a signed webhook when a named event spikes, or when it stops, in a five-minute window. - [Explorer](https://docs.manalens.dev/features/explorer.md): Run read-only SQL queries over your raw events to answer questions that dashboards do not cover. - [Short links](https://docs.manalens.dev/features/short-links.md): Tracked short links for bios, video descriptions and creators. Each click adds your UTMs to the target and records a link_clicked event. - [Typed referral codes](https://docs.manalens.dev/features/referral-codes.md): Codes that players type in game, on a signup form or at checkout. Each code is a referral, like a ?ref= link. - [Attribution](https://docs.manalens.dev/attribution/overview.md): Connect the channel, referrer, referral code, UTM campaign or ad that brought someone to your site with what they do next. - [Attribution models](https://docs.manalens.dev/attribution/models.md): Give conversion and revenue credit to the touches before a conversion with first touch, last touch, last non-direct, linear, position-based or time decay models. - [Install attribution](https://docs.manalens.dev/attribution/installs.md): See which channels, campaigns and creators brought the players who installed your game. - [Revenue](https://docs.manalens.dev/features/revenue.md): Record revenue from custom events, or connect Stripe or Paddle to import invoices, refunds and subscriptions and link them to your users. - [Steam](https://docs.manalens.dev/features/steam.md): Import Steam UTM Analytics to see Steam store visits, wishlists and purchases by source, campaign and creator. The automatic Steam sync of all wishlists and sales (with a Steamworks Financial API key) is in early access. - [Errors and crashes](https://docs.manalens.dev/features/error-tracking.md): Send game errors as events, see crash-free sessions and players, and find the errors that happen most. - [Integrations](https://docs.manalens.dev/integrations/overview.md): Connect ManaLens to billing providers, Steam, itch.io, AI tools, Slack and your own backend. - [itch.io](https://docs.manalens.dev/integrations/itch.md): Connect an itch.io API key to record purchases of your game as revenue for the users who made them, matched by email. - [Identify users](https://docs.manalens.dev/guides/identify-users.md): Link anonymous visitors to known users after signup or login, set traits, and reset identity on logout. - [Consent mode](https://docs.manalens.dev/guides/consent.md): Store nothing in the browser until the visitor gives consent, and still count page views and events. - [Reverse proxy](https://docs.manalens.dev/guides/reverse-proxy.md): Serve the SDK and send events through your own domain so ad blockers do not drop them. Examples for Next.js, Vercel, Cloudflare Workers and nginx. - [How to track DAU, WAU and MAU](https://docs.manalens.dev/guides/dau-tracking.md): Measure daily, weekly and monthly active users from page views and custom events, on the Overview, on a dashboard chart, or with SQL. - [How to build a conversion funnel](https://docs.manalens.dev/guides/funnels.md): Track a journey from a landing page to a conversion event, find where people drop off, and see the users behind each step. - [How to analyze user paths](https://docs.manalens.dev/guides/user-paths.md): Use a Sankey chart to see where sessions go after a landing page or a signup, which paths reach a conversion, and where people leave. - [How to build a custom dashboard](https://docs.manalens.dev/guides/custom-dashboard.md): Create a dashboard from a template or from scratch, add SQL, funnel, retention and user paths charts, and share it with your team. - [How to query your data with SQL](https://docs.manalens.dev/guides/sql-explorer.md): Write read-only ClickHouse SQL on your raw events in the Explorer, start from an example, and turn a query into a dashboard chart. - [How to use Ask AI](https://docs.manalens.dev/guides/ask-ai.md): Ask questions about your analytics in plain language, get a report or a chart, ask follow-up questions, and teach Ask AI the facts of your project. - [How to segment your users](https://docs.manalens.dev/guides/segmentation.md): Narrow reports with filters on acquisition, location, technology, event properties and game builds, and save the conditions as a segment that your team can use again. - [How to measure retention](https://docs.manalens.dev/guides/retention.md): Build a cohort retention chart with D1, D7 and D30 or weekly retention, compare cohorts after a release, and find the people at risk of churn. - [How to monitor game errors and crashes](https://docs.manalens.dev/guides/game-health.md): Send errors and crashes from a Godot game, open the Game health dashboard, and find the errors and builds that hurt players most. - [What we collect](https://docs.manalens.dev/data/what-we-collect.md): The fields that the Web SDK sends, what the collector derives, how country is found on the server, which cookies the SDK sets, and what it never stores. - [Metrics](https://docs.manalens.dev/data/metrics.md): Definitions of the metrics in ManaLens reports: visitors, page views, sessions, bounce rate, session duration, revenue, live visitors, lifecycle, retention, conversion and game KPIs. - [Events overview](https://docs.manalens.dev/data/events/overview.md): The event types that ManaLens accepts, where they come from, and the envelope that they share. - [Page](https://docs.manalens.dev/data/events/page.md): Reference for the page event: a page view on your website, with the page, referrer and campaign fields. - [Track](https://docs.manalens.dev/data/events/track.md): Reference for the track event: a named custom event with your own properties, from a website, a game or a backend. - [Identify](https://docs.manalens.dev/data/events/identify.md): Reference for the identify event: link a visitor to your own user ID and set user traits. - [Game events](https://docs.manalens.dev/data/events/game.md): Reserved track events for games and apps: game_open, session_start, session_end, level events, resource, purchase, error and app_unclean_exit. - [Common fields](https://docs.manalens.dev/data/events/common.md): Reference for the envelope fields that every event shares, the context fields that the SDKs send, and the fields that the collector adds. - [SQL access](https://docs.manalens.dev/data/catalog.md): Query your raw events with SQL in the Explorer, in SQL dashboard charts, or from an AI tool through the MCP server. - [Web SDK](https://docs.manalens.dev/sdks/web.md): Reference for the ManaLens Web SDK: configuration options, snippet attributes, page views and client routing, custom events, identify, consent and campaign capture. - [App and game events](https://docs.manalens.dev/sdks/app-events.md): Send events from a game or app build to the normal events endpoint with context.app and the publishable key. - [Godot SDK](https://docs.manalens.dev/sdks/godot.md): Track sessions, launches and game events from Godot 4 on desktop, mobile and web. - [Unity SDK](https://docs.manalens.dev/sdks/unity.md): Track sessions, launches, game events, errors and crashes from Unity on desktop, mobile and WebGL. - [Server events](https://docs.manalens.dev/sdks/server.md): Send track and identify events from your backend to POST /v0/events with the project secret key. - [Node.js SDK](https://docs.manalens.dev/sdks/node.md): Send events from a backend, a game server or the Electron main process with batching and retries. - [API overview](https://docs.manalens.dev/api/overview.md): The public endpoints of ManaLens, the keys that authorize them, and the error format. - [Authentication](https://docs.manalens.dev/api/authentication.md): The keys and tokens for the public interfaces: the publishable key and the secret key for events, API keys with scopes, and OAuth access tokens. - [Idempotency](https://docs.manalens.dev/api/idempotency.md): Retry event requests safely: reports count each message_id once. - [Errors](https://docs.manalens.dev/api/errors.md): The error format and error codes of the events endpoints and the MCP server, which errors are safe to retry, and how to handle rate limits (429). - [Events API](https://docs.manalens.dev/api/events.md): Request and response reference for POST /v0/events: browser and game events with the publishable key, and server events with the secret key. - [Identify API](https://docs.manalens.dev/api/identify.md): Reference for the legacy POST /v0/identify endpoint and the GET /v0/tracking/config endpoint that the SDKs call. - [Update Properties](https://docs.manalens.dev/api/profiles/update-properties.md): Merge-update the properties of one user profile. Set a Discord ID, Steam ID, email, socials or any custom property, or send null to delete a property, in one PUT request. - [Batch Update Properties](https://docs.manalens.dev/api/profiles/batch-update-properties.md): Set or delete properties for up to 100 user profiles in one request. Each item is a flat object with a required user_id. null deletes a property. Each item gets its own result, so one bad item does not fail the batch. - [Known Properties](https://docs.manalens.dev/api/profiles/known-properties.md): The reserved identity and social property names, such as discord_id, steam_id, email and twitter, with the format each one accepts. - [Alert webhooks](https://docs.manalens.dev/api/alert-webhooks.md): Payload, headers and signature verification for alert webhooks. - [MCP server](https://docs.manalens.dev/mcp/overview.md): Connect Claude, Cursor and other AI tools to your analytics with a project-scoped MCP server: reports, SQL, and dashboard charts. - [Charts and dashboards](https://docs.manalens.dev/mcp/charts.md): Create, preview and edit dashboard charts from an AI tool with the MCP chart tools and the chart spec. - [MCP OAuth](https://docs.manalens.dev/mcp/oauth.md): Connect Claude, ChatGPT and other OAuth-capable MCP clients without pasting a key. - [Security and privacy](https://docs.manalens.dev/security/overview.md): How ManaLens protects visitor data: no stored IP addresses, first-party identity, encrypted secrets, Subresource Integrity and Content Security Policy. - [Single sign-on (SSO)](https://docs.manalens.dev/security/sso.md): Sign in to ManaLens with a work email code, with Google, or with SAML single sign-on through your identity provider, and set up SAML for your email domain. - [Multi-factor authentication (MFA)](https://docs.manalens.dev/security/mfa.md): Protect your account with an authenticator app, and see which actions need a session verified with MFA. - [Role based access control](https://docs.manalens.dev/security/roles.md): Workspace roles (owner, admin, editor, viewer), what each role can do, invitations and the audit log. - [Subresource Integrity (SRI)](https://docs.manalens.dev/security/sri.md): Make sure the Web SDK script on your site has not changed, with a pinned version and an integrity hash. - [Content Security Policy (CSP)](https://docs.manalens.dev/security/csp.md): Allow the Web SDK in your site's Content Security Policy, and see the current CSP of the ManaLens dashboard. This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.