> 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/lovable.md).

# Lovable

Add Humblytics to your Lovable app in about 3 minutes.

{% hint style="info" %}
**You need:** a Lovable project you can publish. Humblytics tracks the published site, not the editor preview.
{% endhint %}

## 1. Copy your tracking code

In Humblytics, open **Site settings → Install** and click **Copy tracking code**. Adding a new site? The code appears in step 2 of **Add Site**.

## 2. Add it to your Lovable project

Lovable apps have one `index.html`, so adding the script there tracks every page.

**Option A: Ask Lovable (easiest).** Send this in your project chat, with your snippet pasted in:

```
Add this tracking code to the <head> of index.html, exactly as written:

[paste your Humblytics snippet here]
```

**Option B: Edit the code yourself.** Open the **Code** view, open `index.html`, and paste the snippet just before `</head>`.

<mark style="background-color:pink;">ADD GIF HERE</mark>

## 3. Publish and verify

1. Click **Publish** (or **Update** if the site is already live).
2. Back in Humblytics, click **Verify install**.
3. Open your published site 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 published URL (`yourapp.lovable.app` or your custom domain), and make sure it matches the domain in Humblytics.

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