> For the complete documentation index, see [llms.txt](https://docs.humblytics.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.humblytics.com/how-to-get-started/replit.md).

# Replit

Add Humblytics to your Replit app in about 3 minutes.

{% hint style="info" %}
**You need:** a Replit app you can deploy. The workspace preview won't verify; Humblytics tracks the deployed `.replit.app` URL or your custom domain.
{% endhint %}

## 1. Copy your tracking code

In Humblytics, open **Site settings → Install** and click **Copy tracking code**. Adding a new site? Click **Add site** on **Home** and the code appears in the install step.

## 2. Add it to your app

**Option A: Ask Replit Agent (easiest).** Send this with your snippet pasted in:

```
Add this tracking code to the <head> of every page, exactly as written.
Put it in the main HTML file or shared template:

[paste your Humblytics snippet here]
```

**Option B: Edit the code yourself.** Paste the snippet just before `</head>` in the file that renders every page:

| App type                            | File                                                                              |
| ----------------------------------- | --------------------------------------------------------------------------------- |
| Static HTML, or React/Vue with Vite | `index.html`                                                                      |
| Flask                               | Your base template, such as `templates/base.html`                                 |
| Express                             | The HTML template or `index.html` you serve                                       |
| Next.js                             | See the [Next.js guide](https://docs.humblytics.com/how-to-get-started/nextjs.md) |

## 3. Deploy and verify

1. Click **Deploy** (or redeploy if the app is already live).
2. Back in Humblytics, click **Verify install** (during first-time setup, **Check my site now**).
3. Open your deployed URL in a private window and click around. Your visit appears in **Observe → Analytics → Overview** under **Live Activity** within about a minute.

**Not verifying?** Test the deployed URL, not the workspace preview, and make sure it matches the domain in Humblytics.

Still stuck? See [Verify & Troubleshoot Tracking](https://docs.humblytics.com/how-to-get-started/verify-and-troubleshoot-tracking.md).
