# Periods and comparisons

> Any period, next to the one before or the same days last year, cut at midnight in your time zone.

Pick any period at the top of the dashboard. Every number is shown next to the period of the same length just before, so you always know whether things are going up or down.

## The periods

| Period | Covers | Compared with |
| --- | --- | --- |
| **Today** | Midnight until now | Yesterday, from midnight to the same time of day |
| **Yesterday** | All of yesterday | The day before |
| **Last 7 days** | The last 7 days, today included | The 7 days before |
| **Last 30 days** | The last 30 days, today included | The 30 days before |
| **Last 90 days** | The last 90 days, today included | The 90 days before |
| **This month** | The 1st of this month until now | The same days last month |
| **Last month** | All of last month | The month before |
| **This year** | January 1st until now | The same days last year |
| **All time** | Since the site was added | The same length of time just before |
| **Custom** | Any dates you choose, up to three years | The same number of days just before |

Today is compared with yesterday **up to the same time of day**, so the morning is never compared with a whole day. Months and years are compared with the same stretch of the calendar, so March 1st to 14th is compared with February 1st to 14th.

## Compare with last year

Under **Compare with** in the period picker, choose **Same days last year** instead of **The period before**. Every number is then shown next to the same dates a year earlier, which is the fairest comparison for anything seasonal, like a shop before Christmas. In the API, add `compare=year`.

## Your time zone

Days start and end at midnight in your site's time zone, not in a server's. When you add a site, Okidoki uses your browser's time zone. To change it, ask your agent or use the API:

```bash
curl -X PATCH https://okidoki.sh/api/v1/sites/mysite.com \
  -H "Authorization: Bearer oks_..." -H "Content-Type: application/json" \
  -d '{"timezone":"America/New_York"}'
```

## In the API

Use `period` with one of `today`, `24h`, `yesterday`, `7d`, `30d`, `90d`, `month`, `last_month`, `year`, `all`, `custom`. For `custom`, add `from` and `to` as dates, like `2026-11-01`. Both days are included. Add `compare=year` to compare with the same dates last year; the default is `compare=previous`.

```bash
curl -H "Authorization: Bearer oks_..." \
  "https://okidoki.sh/api/v1/sites/mysite.com/summary?period=custom&from=2026-10-01&to=2026-10-31"
```

## History

Free shows the last 12 months. Plus shows all of it. Nothing is deleted on Free: older numbers are kept, and come back the day the account moves to Plus. A period that reaches further back is cut at the limit, and the reports say so. See [Plans and pricing](https://docs.okidoki.sh/plans).

## Before your site was added

There is nothing to compare with before your site was added to Okidoki. Changes are then shown as **no earlier data** instead of a percentage.

