# Dashboard access requires sign-in

You can also investigate this project using the Vercel CLI. The commands below require a CLI session with access to the project.

If you don't have the CLI installed, run:

```sh
npm i -g vercel
```

Sign in with `vc login` if needed.

## Web Analytics

### Query daily page views

```sh
vc metrics vercel.analytics.page_view.count --scope zoes-projects-2c16c14a --project documentation-l84t --since 7d --granularity 1d --json
```

### Query daily unique visitors

```sh
vc metrics vercel.analytics.page_view.count --scope zoes-projects-2c16c14a --project documentation-l84t --aggregation unique/visitorId --since 7d --granularity 1d --json
```

### Query top pages

```sh
vc metrics vercel.analytics.page_view.count --scope zoes-projects-2c16c14a --project documentation-l84t --group-by requestPath --since 7d --json
```

### Query custom events by name

```sh
vc metrics vercel.analytics.event.count --scope zoes-projects-2c16c14a --project documentation-l84t --group-by eventName --since 7d --json
```

### Discover Analytics metrics and dimensions

```sh
vc metrics schema vercel.analytics --scope zoes-projects-2c16c14a --json
```

