---
title: Vercel Analytics
description: Add Vercel Analytics to your application layout
---

This plugin mounts the Vercel Analytics client in your app's layout.

## Installation

```bash
bunx chat-js@alpha add vercel-analytics
```

The CLI installs the client source and generates its layout registration. This plugin adds no database tables.

## Usage

The generated layout renders the `Analytics` component. Configure the corresponding service in your Vercel project to view its data.

## Customization

Edit `chatjs/plugins/vercel-analytics/component.tsx` to customize the component. Its `client-plugin.ts` exposes the layout contribution. It does not register server routes or require a ChatJS enable flag.

See [Using plugins](./using-plugins) for installation behavior and the [Plugin API](../reference/plugin-api#client-slots) for the layout contract.
