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

# Vercel v0

Add Humblytics to your v0 app in about 3 minutes.

{% hint style="info" %}
**You need:** a v0 project you can deploy. v0 preview URLs often won't verify; Humblytics tracks the deployed site.
{% 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. Ask v0 to add it

v0 builds Next.js apps, so the script belongs in the root layout. Send this in the v0 chat, with your snippet pasted in:

```
Add this Humblytics tracking code to app/layout.tsx.
Use next/script with strategy="beforeInteractive" for both the inline
script and the external script, and keep the code exactly as written:

[paste your Humblytics snippet here]
```

<figure><img src="https://1281224403-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqZMBn2D7F1lV2hgGTS2X%2Fuploads%2FsQRHdaMtK6sUwA0lxuJw%2Fcustom%20code%20script.gif?alt=media&amp;token=670adf7b-a09d-4d95-888d-848e32016dca" alt=""><figcaption></figcaption></figure>

Want to do it by hand, or not on Next.js? Use the [Next.js guide](/how-to-get-started/nextjs.md), [React Router guide](/how-to-get-started/react-router.md), or [Vue.js guide](/how-to-get-started/vuejs.md).

## 3. Deploy and verify

1. Click **Publish** to deploy to Vercel.
2. Back in Humblytics, click **Verify install**.
3. Open your production 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 production URL (`yourapp.vercel.app` or your custom domain), not a preview URL.
* Each Vercel domain is a separate site in Humblytics. Add the one visitors actually use.

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