> ## Documentation Index
> Fetch the complete documentation index at: https://docs.crxbase.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Quickstart

> Add analytics to your extension and website.

Use one project ID across your extension and website.

1. Create or select your extension project in crxbase and copy its project ID.
2. Install `@crxbase/analytics` and initialize the extension SDK in your extension's background script.
3. Add the website SDK to your landing and welcome pages. The pages must share an origin for install attribution.
4. Call `analytics.attributeInstall()` on your welcome page. Optionally, add uninstall reporting to your own uninstall page.
5. Add `analytics.view()` and `analytics.track()` where you want to measure views and features.

For example, record a view when your popup opens and an event when an export completes:

```typescript theme={null}
import { analytics } from "@crxbase/analytics/extension";

await analytics.view("popup");
await analytics.track("export_completed", { format: "csv", count: 12 });
```

The SDK records installs and extension updates automatically. The dashboard shows activity after events are received.

See [Setup](https://docs.crxbase.com/analytics/setup.md) for the integration, [Events](https://docs.crxbase.com/analytics/events.md) for tracking, and [Acquisition](https://docs.crxbase.com/analytics/acquisition.md) for attribution.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.