# clampScrollDepth

**Kind:** Function

**Source:** [`atloria-monorepo/apps/api/src/analytics/utils/tracking-utils.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/apps/api/src/analytics/utils/tracking-utils.ts#L47)

Clamp scroll depth into the 0–100 range. Some browsers occasionally report
101% on bounce or with sticky footers; clamp instead of dropping the row.

## Signature

```ts
function clampScrollDepth(depth: number | null | undefined): number | null
```

## Parameters

| Name | Type |
|---|---|
| `depth` | `number | null | undefined` |

**Returns:** `number | null`
