# web changelog

## 1.2.0 (2026-12-02)
- Minor, for Direct Booking Funnel: new optional table `bookings` (one booking with its day, channel, status and the
  acquisition source its booking engine recorded; NULL = unattributed, never guessed; no guest details; `reservation_id`
  links a rental@1 stay) and vocabularies `booking_channels` and `booking_statuses` (rental@1's channel and status
  values). The board moves its bookings out of its own `d_booking` table.
- New check `bookings_valid` at fail, reading only the new table (a 1.1 database cannot fail it).
- Fixtures: four bookings (attributed, cancelled with UTM tags, unattributed, and an Airbnb stay linked to a reservation).
  Migration `migrations/1.1-to-1.2.sql`. Search & Traffic and Direct Booking Funnel re-pinned to 1.2.0.

## 1.1.0 (2026-12-02)
- Add optional creator account, content, audience, content performance, retention and campaign tables.
- Add optional email campaign and ad campaign performance tables. Facts carry their reporting period, source
  and source reference. Ad spend is independent of the attribution view used for conversion credits and value.
- Add controlled vocabularies for creator channels, audience and content kinds, editorial status, campaign kind
  and attribution basis. Add warning checks for creator links, row grain, periods, values, provenance and currency.
- Preserve web 1.0 datasets. Search & Traffic pins the additive 1.1 schema; its search and site metrics continue
  to read the same tables. The optional tables start empty in a migrated web database.

## 1.0.0 (2026-11-30)
- First published version. Changes from the launch plan's field list, made while building Search & Traffic on real export
  layouts:
  - `search_daily` and `traffic_daily` became `search_performance` and `traffic`, with an explicit period
    (`date_from`..`date_to`) and grain (`dims`). The Search Console UI export gives each table (Queries, Pages, Countries,
    Devices) as totals for the export's dates and only Dates per day, and Plausible's dashboard export does the same; a
    daily-only table could not hold them without guessing.
  - Stored sums instead of averages: `position_sum` (position x impressions) instead of `position` and `ctr`; `bounces` and
    `visit_duration_s` (total) instead of `bounce_rate` and an average duration. Visitors stay as delivered and are
    documented as not additive.
  - `exports`: one row per export table or API request with its period, grain, filters and row cap (`capped`), so a board
    can tell "absent" from "zero" under the Search Console 1,000-row and Plausible 300-row cuts.
  - `conversions` (optional goals), `sites.search_property` / `analytics_site` / `tz`, `pages.url`.
  - Page rule: normalised path; another host keeps it as `//host/path`.
- Vocabularies: countries (alpha-2 with alpha-3 for the Search Console API and English names for the UI export), devices,
  search types, dims, export kinds, severities.
- Conformance checks: periods, dims, sites known, counts not negative, weighted positions, provenance, one grain per export
  (fail); clicks within impressions, bounces within visits, one source per site, capped flag (warn).
