# datacub > datacub is product analytics for websites and mobile apps, built Arabic first. A small SDK (`@datacub/web` for browsers, `@datacub/react-native` for React Native and Expo) sends page views, screens, clicks and the custom events you track; the dashboard answers how people find, use and come back to your product. Tracking starts at the first page view; a project that asks for consent first waits for `datacub.consent.grant()`. Identify users with your own stable internal ID, never an email or phone number. Track outcomes after they succeed, with snake_case object_action names. ## Get started - [Quickstart](https://docs.datacub.to/quickstart.md): Install datacub and see your first event in a few minutes. - [Install the web SDK](https://docs.datacub.to/install-web.md): The web SDK is one file, about 6 KB with gzip, served by datacub. Add it with a script tag; it works with any site or framework. - [Install the mobile SDK](https://docs.datacub.to/install-mobile.md): @datacub/react-native is for React Native and Expo apps. Its logic is fully tested; runs on real Android and iOS simulators in CI are still being brought up. No runtime dependencies, about 5 KB with gzip. - [React, Next.js and TanStack](https://docs.datacub.to/frameworks.md): No framework package is needed. Put the snippet in your HTML head once, and datacub follows every route change on its own. ## Tracking - [Page views and clicks](https://docs.datacub.to/pageviews.md): datacub records page views, time on page, clicks and form submits by itself. - [Custom events](https://docs.datacub.to/custom-events.md): Track the moments that matter in your product with datacub.track(name, properties) . - [Naming events](https://docs.datacub.to/event-naming.md): A handful of well named events answers more than a hundred vague ones. Start with five to eight. ## Users - [Identifying users](https://docs.datacub.to/identify.md): Call datacub.identify(userId) after login and datacub.reset() at logout. The user's earlier activity on that browser or phone is linked to them. - [User properties](https://docs.datacub.to/user-properties.md): Tell datacub who a signed in user is with traits on identify , and describe what they do with properties on events. - [Guests and Registered users](https://docs.datacub.to/guests-and-registered.md): Every user starts as a Guest. After identify , they are Registered, and their Guest history comes with them. - [Subdomains and other domains](https://docs.datacub.to/cross-domain.md): Subdomains of one site share users and sessions on their own. Separate domains link through sign in. ## Privacy and keys - [Asking for consent (optional)](https://docs.datacub.to/consent.md): By default datacub tracks from the first page view. There is no banner to wire and no call to make. If you want to wait for your visitors' consent first, you can turn that on. - [Deleting a person's data](https://docs.datacub.to/deleting-data.md): When someone asks you to delete their data, or to see it, do it in datacub too: from their profile in the dashboard, or from your backend. - [Project keys](https://docs.datacub.to/api-keys.md): Each project has a public key for sending events. It goes in your client code; it cannot read anything. ## Analysis - [Funnels and retention](https://docs.datacub.to/funnels-retention.md): Funnels and retention are built in the dashboard from the events you already send. Nothing extra goes in your code. ## Workspace - [Team](https://docs.datacub.to/team.md): Invite your team to your workspace. Everyone in it can open its projects, with what their role allows. - [Billing and usage](https://docs.datacub.to/billing.md): Billing belongs to your workspace. Its plan sets how many events all its projects can send each month, together. ## AI - [AI coding agents and MCP](https://docs.datacub.to/ai.md): Let Claude Code, Cursor, Codex or ChatGPT set up datacub for you. Paste one prompt; it reads your app, works out what your business does, installs datacub and tracks the few actions that matter. ## Help - [Troubleshooting](https://docs.datacub.to/troubleshooting.md): Most problems show up as a console warning on localhost . Start there. - [SDK reference](https://docs.datacub.to/reference.md): Every public call of the web SDK 0.4.0 (the global datacub from the script tag , typed by datacub.d.ts ) and of @datacub/react-native 0.1.0. No call ever throws; a refused call does nothing. ## Optional - [Everything in one file](https://docs.datacub.to/llms-full.txt): all pages above, in full