# hourBucketStart

**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#L112)

Compute the start of the hour bucket containing `date`. Used by the
session-dedup logic in the analytics service so that multiple page-view
beacons from the same session+slug within the same hour collapse into
a single row instead of stacking up.

## Signature

```ts
function hourBucketStart(date: Date): Date
```

## Parameters

| Name | Type |
|---|---|
| `date` | `Date` |

**Returns:** `Date`
