Skip to content

Data Model

padams edited this page Dec 2, 2026 · 1 revision

Data Model

OWA 2.0 keeps tracking data in three kinds of table:

Table What it holds Written by Read by
owa_event_raw Every tracked event, as received Ingest, one beacon at a time Cube builds and the realtime screen
owa_visitor_acquisition One row per visitor: how they first arrived, their last non-direct touch, and user-scoped properties Ingest, and advanced by builds Cube builds, and ingest itself
owa_event_<property id> The reporting cube for one Property: raw's events plus values a build derives The scheduler's cube builds, only Reports and the REST API

Raw and the visitor store are shared by every Property in the installation. Each Property has its own cube.

A build derives values from raw, such as which source a session came from or whether it was engaged, and stores them only in the cube. A changed rule reaches past data when the cube is rebuilt from raw.

Raw events: owa_event_raw

One row is one event: a page view, a click, a download, a purchase, a custom event. Rows are appended and never updated.

One beacon, several rows

The tracker sends one event per beacon, carrying flags such as "this starts a new session". Ingest expands it into the events it stands for:

The beacon Rows written
A page view that starts a session page_view, session_start
A page view that starts a visitor's first session page_view, session_start, first_visit
Any other event that event
Any of the above, where an event meets one of the Property's goal event definitions the rows above, plus a goal event per definition met: a row named by the definition, with is_goal_event = 1. A definition that counts once per session adds none when the session already has one.

The event that met a definition stays an ordinary row with is_goal_event = 0. A definition's goal events are the rows under its name.

All of a beacon's rows, its visitor store write and its user properties go in one transaction. If any part fails, nothing from that beacon is stored.

An event that cannot say which site, visitor, session and instant it belongs to is refused.

Ids

A row's id is a hash of the site id, visitor id, session id, ts, event name and event_seq. A beacon delivered twice derives the same ids and is stored once. The primary key is (id, yyyymmdd).

event_seq is the tracker's count of events within the session, and tells apart two beacons that reach the server in the same microsecond. An event without one, such as one from an older tracker, derives its id from the other five values.

visitor_id and session_id are 64-bit integers set by the tracker. Ids minted by the current tracker are random. Ids from older trackers begin with a creation time.

Time

Column Description Type Absent Filled from In cube
ts When OWA received the event, as a Unix timestamp in microseconds, stamped by the server. BIGINT 0 ts (request) yes
created_at When the row reached this table, in microseconds. A build compares it with a partition's build time to tell whether anything has arrived since. Not carried into the cube. BIGINT NULL — no
yyyymmdd The date the event was received, as YYYYMMDD in the install's timezone. INT 0 yyyymmdd (event) yes

created_at differs from ts when an event waited in a queue. yyyymmdd is the partition key and the column every date range filters on.

The timezone is set once for the installation. yyyymmdd is fixed when the row is stored, and a change of timezone affects new rows only.

Columns and params

Every property OWA knows the name of has its own column. The JSON column params holds the rest: properties a site defines itself, and nested values such as a purchase's line items. A custom property in params is not reportable until it is registered as a Custom Dimension. Which properties each event carries is on Event Properties.

Where a value was not sent, the column holds NULL, never an empty string or a placeholder. Reports show NULL as (not set).

Raw also keeps the inputs a build derives from: the full page URL and referrer, the user agent, and the campaign tags as collected (tagged_source, tagged_medium, …). Tags are recorded on the first event of a session only.

Column Description Type Absent Filled from In cube
id The event's id, derived from its site, visitor, session, timestamp, event name and sequence number. A beacon delivered twice is stored once. BIGINT key — yes
event_type The event's name: the name of a built-in event or of a custom event. VARCHAR(64) '' event_type (client) yes
site_id The id of the tracked site the event belongs to. An event for a site the install does not have is refused. VARCHAR(64) '' site_id (client) yes
visitor_id The id of the visitor, created by the tracker and kept in its visitor cookie. BIGINT 0 visitor_id (client) yes
session_id The id of the session, created by the tracker. BIGINT 0 session_id (client) yes
user_id The site's own id for a logged-in visitor. VARCHAR(255) NULL user_id (client) yes
ts When OWA received the event, as a Unix timestamp in microseconds, stamped by the server. BIGINT 0 ts (request) yes
created_at When the row reached this table, in microseconds. A build compares it with a partition's build time to tell whether anything has arrived since. Not carried into the cube. BIGINT NULL — no
yyyymmdd The date the event was received, as YYYYMMDD in the install's timezone. INT 0 yyyymmdd (event) yes
visitor_fsts When the visitor was first seen, as a Unix timestamp in seconds from the visitor's clock. BIGINT NULL fsts (client) yes
prior_sessions How many sessions the visitor had before this one; 0 on a first visit. INT NULL num_prior_sessions (client) yes
session_start_ts When the current session started, as a Unix timestamp in seconds from the visitor's clock. BIGINT NULL sts (client) yes
event_seq The event's position within its session, counted by the tracker. Absent from older trackers. INT NULL event_seq (client) yes
beacon_version The format version of the beacon the tracker sent. Absent from trackers older than versioning. INT NULL beacon_version (client) yes
page_location The full URL of the page, its path decoded and its query string as the tracker sent it, without the parameters named in the query_string_filters setting, owa_overlay and owa_state, and without its fragment. At most 1024 characters. VARCHAR(1024) NULL page_location (client) yes
page_path The path of the page's URL, decoded, with a directory index page name, such as index.html, and a trailing slash removed. VARCHAR(1024) NULL page_path (event) yes
page_query The query string of the page's URL as the tracker sent it, without OWA's own parameters or campaign parameters. VARCHAR(1024) NULL page_query (event) yes
page_title The page's title. VARCHAR(512) NULL page_title (client) yes
content_group The content group the site assigned to the page. Absent when the page has none. VARCHAR(255) NULL content_group (client) yes
referer_url The URL of the page that referred the visitor to this page, its path decoded, on every event of the page, without the parameters named in the query_string_filters setting, owa_overlay and owa_state. Absent when the browser sent none. VARCHAR(1024) NULL HTTP_REFERER (client) yes
referer_host The host name of the referring page, empty when it is one of the site's own. VARCHAR(255) NULL referer_host (event) yes
referer_query The query string of the referring page's URL as the tracker sent it, without the parameters named in the query_string_filters setting. VARCHAR(1024) NULL referer_query (event) yes
tagged_source The campaign source the landing page's URL was tagged with, read by OWA from the URL. Absent when the URL carried no source tag. VARCHAR(255) NULL tagged_source (event) yes
tagged_medium The campaign medium the landing page's URL was tagged with, read by OWA from the URL. Absent when the URL carried no medium tag. VARCHAR(64) NULL tagged_medium (event) yes
tagged_campaign The campaign name the landing page's URL was tagged with, read by OWA from the URL. Absent when the URL carried no campaign tag. VARCHAR(255) NULL tagged_campaign (event) yes
tagged_ad The ad the landing page's URL was tagged with, read by OWA from the URL. Absent when the URL carried no ad tag. VARCHAR(255) NULL tagged_ad (event) yes
tagged_search_terms The search terms the landing page's URL was tagged with, read by OWA from the URL. Absent when the URL carried no terms tag. VARCHAR(255) NULL tagged_terms (event) yes
browser_type The browser's name, from the user agent. Absent for an agent the parser does not recognise. VARCHAR(64) NULL browser_type (event) yes
browser_version The browser's version, from the user agent. VARCHAR(32) NULL browser_version (event) yes
os The operating system's name, from the user agent. Absent for an agent the parser does not recognise. VARCHAR(64) NULL os (event) yes
os_version The operating system's version, from the user agent. Absent where a reduced user agent sends the same version for every release: Windows NT 10.0, macOS 10.15.7, ChromeOS 14541.0.0, and Android 10 with the model K. VARCHAR(32) NULL os_version (event) yes
device_type The kind of device, from the user agent: desktop, mobile or tablet. An Android device whose user agent has no Mobile token is a tablet; an iPad whose Safari asks for the desktop site is a desktop. Absent when the device cannot be identified. VARCHAR(32) NULL device_type (event) yes
device_brand The device's manufacturer, from the user agent. Absent when the user agent does not name one, as for a crawler. VARCHAR(64) NULL device_brand (event) yes
device_model The device's model, from the user agent. Absent when the user agent does not name one, such as the K of a reduced Android user agent. VARCHAR(64) NULL device_model (event) yes
language The visitor's preferred language: the first language of the Accept-Language header, as language and region (for example en-US, or zh-TW for zh-Hant-TW), or the language alone when the header names no region. VARCHAR(16) NULL language (request) yes
screen_resolution The device's screen size as WIDTHxHEIGHT in CSS pixels. Dropped if it is not in that shape. VARCHAR(16) NULL screen_resolution (client) yes
country The visitor's country, looked up from their IP address. VARCHAR(64) NULL country (event) yes
country_code The visitor's two-letter country code, looked up from their IP address. CHAR(2) NULL country_code (event) yes
city The visitor's city, looked up from their IP address. VARCHAR(128) NULL city (event) yes
region The visitor's state or region, looked up from their IP address. VARCHAR(128) NULL state (event) yes
host The host name of the page, taken from its URL. VARCHAR(255) NULL host (event) yes
ip_address The visitor's IP address: reading X-Forwarded-For's hops and then the connecting address from the right, the first that is neither private nor a trusted proxy (trusted_proxies); no other header is read. Anonymized when the Profile's anonymize_ips setting is on; a collector queues it unmasked, and the full server masks it when it ingests the queue. VARCHAR(45) NULL ip_address (request) yes
consent_state The consent state the page declared when the event was sent: granted or denied. Absent when the page declared nothing. VARCHAR(32) NULL consent_state (client) yes
click_x The horizontal position of the click, in pixels. INT NULL click_x (client) yes
click_y The vertical position of the click, in pixels. INT NULL click_y (client) yes
page_width The width of the browser window when the click happened, in pixels. INT NULL page_width (client) yes
page_height The height of the browser window when the click happened, in pixels. INT NULL page_height (client) yes
element_anchor The element the click landed on, as a hash of its path from the nearest ancestor with an id. BIGINT NULL element_anchor (client) yes
anchor_x Where across the clicked element the click landed, in thousandths of its width. SMALLINT NULL anchor_x (client) yes
anchor_y Where down the clicked element the click landed, in thousandths of its height. SMALLINT NULL anchor_y (client) yes
target_url The URL of the link that was clicked, its path decoded, without port, user name, password or fragment, and without campaign parameters, OWA's own parameters and the parameters named in the query_string_filters setting. A directory index page name, such as index.html, is removed when no query string is left, and a trailing slash is removed. A URL whose scheme is not http or https is not stored. VARCHAR(1024) NULL target_url (client) yes
target_host The host name of the clicked link's URL. VARCHAR(255) NULL target_host (event) yes
is_outbound Whether the clicked link leads off the site, decided by the tracker. TINYINT(1) 0 is_outbound (client) yes
element_tag The HTML tag of the clicked element, such as a or button. VARCHAR(64) NULL dom_element_tag (client) yes
element_id The id of the clicked element, or of the link containing it. Absent when it has none. VARCHAR(255) NULL dom_element_id (client) yes
file_name The path of the downloaded file on its host, percent-decoded once (/docs/café.pdf). VARCHAR(255) NULL file_name (client) yes
file_extension The extension of the downloaded file, one of the tracker's downloadExtensions. VARCHAR(32) NULL file_extension (client) yes
search_term The site-search term from the results page's URL. VARCHAR(255) NULL search_term (client) yes
scroll_depth The deepest scroll threshold the visitor reached on the page view, as a percentage of the page. TINYINT(4) NULL scroll_depth (client) yes
engagement_msec Time the visitor spent on the page since the tracker last reported it, in milliseconds. INT NULL engagement_msec (client) yes
is_goal_event Whether the event is a goal event. Set by OWA at ingest. TINYINT(1) 0 is_goal_event (event) yes
transaction_id The order's transaction id. Required on a purchase or refund. VARCHAR(255) NULL ct_order_id (client) yes
revenue The order's revenue excluding tax and shipping, in the currency's minor units; on a refund, the amount refunded. Calculated by OWA from the order values. BIGINT NULL revenue (event) yes
tax The tax on the order, sent in major units (12.50) and stored in the currency's minor units (1250). BIGINT NULL ct_tax (client) yes
shipping The shipping charge on the order, sent in major units and stored in the currency's minor units. BIGINT NULL ct_shipping (client) yes
currency The ISO 4217 code of the order's currency, on a purchase or refund. When the tracker sends none: on a refund, its purchase's currency; otherwise the Property's currency setting. On a goal event, the currency of its value. Absent on every other event. CHAR(3) NULL currency (client) yes
value What a goal event is worth, in minor units of its currency: its definition's value, else the revenue of the purchase that met it. Empty on every other event. BIGINT NULL value (event) yes
raw_ua The browser's User-Agent header, as received. Browser, operating system and device are derived from it. VARCHAR(1024) NULL HTTP_USER_AGENT (request) yes
params The event's values that have no column of their own, as a JSON document keyed by name: custom variables and event properties, form and element details, and purchase line items. JSON NULL dom_element_class (client), dom_element_name (client), dom_element_text (client), ct_order_source (client), coupon (client), ct_gateway (client), ct_line_items (client), form_id (client), form_destination (client), form_length (client), first_field_id (client), first_field_name (client), first_field_type (client), first_field_position (client), form_submit_text (client), form_name (client) yes
prior_touch_source The source of the returning visitor's most recent non-direct visit before this session, from the visitor store. Absent when there was none. VARCHAR(255) NULL prior_touch_source (event) no
prior_touch_medium The medium of the returning visitor's most recent non-direct visit before this session, from the visitor store. Absent when there was none. VARCHAR(64) NULL prior_touch_medium (event) no
prior_touch_campaign The campaign of the returning visitor's most recent non-direct visit before this session, from the visitor store. Absent when there was none. VARCHAR(255) NULL prior_touch_campaign (event) no
prior_touch_ad The ad of the returning visitor's most recent non-direct visit before this session, from the visitor store. Absent when there was none. VARCHAR(255) NULL prior_touch_ad (event) no
prior_touch_referer_host The referring host of the returning visitor's most recent non-direct visit before this session, from the visitor store. Absent when there was none. VARCHAR(255) NULL prior_touch_referer_host (event) no
prior_touch_ts When the returning visitor's most recent non-direct visit before this session happened, as a Unix timestamp in microseconds, from the visitor store. Absent when there was none. BIGINT NULL prior_touch_ts (event) no
spam_score The beacon's spam score: the points of the spam rules it met, added up. 0.0 when it met none; empty on rows stored before spam detection. Not carried into the cube. DECIMAL(6,1) NULL spam_score (event) no
spam_rules The spam rules the beacon met, each with its points, highest first, as NAME=points. Empty when it met none. Not carried into the cube. VARCHAR(255) NULL spam_rules (event) no
goal_trigger_event_name On a goal event, the name of the event that met the goal, such as page_view or purchase. Empty on every other event. Not carried into the cube. VARCHAR(64) NULL goal_trigger_event_name (event) no

The visitor store: owa_visitor_acquisition

The visitor store has one row per visitor, unique on visitor_id. It is not split by Property: a visitor has one row across every Property on the installation.

A row holds three things, each with its own write rule:

Part Columns Write rule
Acquisition acq_source, acq_medium, acq_campaign, acq_ad, acq_search_terms, acq_referer_url, acq_referer_host, acq_ts Written once, by the landing of the visitor's first session (the beacon that raises first_visit), and never changed. No other event writes it.
Last non-direct touch last_touch_source, last_touch_medium, last_touch_campaign, last_touch_ad, last_touch_referer_host, last_touch_ts Replaced by every later session that arrives with campaign tags or a referrer, unless a newer touch is already stored.
User-scoped properties properties (JSON) The value with the latest event time wins. A late beacon does not overwrite a newer value.

Acquisition is stored as collected: the tags and the referring host. A build classifies it into the cube's acq_source, acq_medium, acq_channel and other acq_* columns.

When a returning visitor starts a session, ingest copies their last touch onto that session's first raw rows as prior_touch_*, and builds fill the attributed_* columns from there.

A visitor whose first landing was never seen, for example because its beacon was lost, has no acquisition. Their cube rows show (unknown) in the acquisition columns. A first visit with no tags and no referrer is recorded as direct, not as unknown.

When rows are removed

There is no retention setting for the visitor store. Each run of the rotate-partitions job checks it, and deletes a visitor's row only if:

  • raw holds none of their events, and
  • they have not been seen in the last 14 months.

While raw keeps everything (the default), nothing is deleted from the store.

Reporting cubes: owa_event_<property id>

A cube is the table reports read. There is one per Property, named after the Property's id. It does not exist until the first build after the Property has collected data. Reports for a Property with no cube show a notice in place of the report.

A cube row has:

  • every column of raw, in the same order, except created_at, the prior_touch_* evidence, spam_score, spam_rules and goal_trigger_event_name;
  • derived columns, the same in every cube;
  • one column per Custom Dimension the Property has registered, named cd_<key>. These are the only columns that differ between cubes.

The derived columns fall into groups:

Group Columns Read from
The session's attribution source, medium, campaign, ad, search_terms, channel The session's first event
The session's tags, as collected session_tagged_source, session_tagged_medium, session_tagged_campaign The session's first event
The session's landing page landing_page_location, landing_page_path, landing_page_query, landing_page_title The session's first event
The session's shape is_entrance, is_exit, is_engaged_session, new_vs_returning The session's events, in the order the device sent them
The page's place in the session page_depth, previous_page_path, next_page_path The session's page views, in order
The page view's deepest scroll is_deepest_scroll The scroll events of each page view
The visitor's acquisition acq_source, acq_medium, acq_campaign, acq_ad, acq_search_terms, acq_channel The visitor store
Attribution with lookback attributed_source, attributed_medium, attributed_campaign, attributed_ad, attributed_channel The session's own evidence, or the visitor's prior touch within the Property's lookback window
The Profile profile_name The Observation Profile's name when the day was last built
Freshness built_at When the build wrote this partition. Reports show it as Data as of.

Session-level values are stamped onto every row of the session. A session that runs past midnight carries the same session values on both days' rows.

Two values mean "no value" in a cube, and reports label them differently:

Label Meaning
(not set) The event did not carry the value. Stored as NULL.
(unknown) OWA could not work the value out, such as an acquisition that was never captured. Written only by a build, as a control character no URL or tag can contain.
Column Description Kind From Type Unresolved when
source Where the session came from: its tagged source, else the referring site's host without a leading www., else (direct). source session.tagged_source, session.referer_host VARCHAR(255) NOT NULL —
medium How the session arrived: its tagged medium, else (none) with no referrer, ai-agent from an AI assistant, organic from a search engine, or referral from any other site. medium session.tagged_medium, session.referer_host VARCHAR(64) NOT NULL —
campaign The session's tagged campaign. Empty, shown as (not set), when the visit was tagged without one. An untagged visit gets a placeholder named for how it arrived: (direct), (organic), (ai-agent) or (referral). campaign session.tagged_campaign, session.tagged_source, session.tagged_medium, session.tagged_ad, session.referer_host VARCHAR(255) —
ad The ad the session was tagged with. copy session.tagged_ad VARCHAR(255) —
search_terms The session's tagged search terms, else the terms the search engine that referred the session put in its URL, on every row of the session. Empty when neither has them. compute session.tagged_search_terms, referer_host, referer_query VARCHAR(255) —
landing_page_location The complete URL of the page the session landed on. copy session.page_location VARCHAR(1024) —
landing_page_path The path of the page the session landed on. copy session.page_path VARCHAR(1024) —
landing_page_query The query string of the page the session landed on. copy session.page_query VARCHAR(1024) —
landing_page_title The title of the page the session landed on. copy session.page_title VARCHAR(512) —
is_exit 1 on the session's last page view once the session has closed, otherwise 0. is_exit — TINYINT(1) NOT NULL —
acq_source The source of the visitor's first visit, from the visitor store. source visitor.acq_source, visitor.acq_referer_host VARCHAR(255) NOT NULL acquisition.missing
acq_medium The medium of the visitor's first visit, from the visitor store. medium visitor.acq_medium, visitor.acq_referer_host VARCHAR(64) NOT NULL acquisition.missing
acq_campaign The campaign of the visitor's first visit, from the visitor store. campaign visitor.acq_campaign, visitor.acq_source, visitor.acq_medium, visitor.acq_ad, visitor.acq_referer_host VARCHAR(255) acquisition.missing
acq_ad The ad of the visitor's first visit, from the visitor store. copy visitor.acq_ad VARCHAR(255) acquisition.missing
acq_search_terms The search terms of the visitor's first visit, from the visitor store: the tagged terms, else the terms the search engine that referred it put in its URL. copy visitor.acq_search_terms VARCHAR(255) acquisition.missing
built_at When the build that wrote this row ran, in microseconds. One value per partition. literal built_at BIGINT NOT NULL —
new_vs_returning New when the session was the visitor's first, otherwise Returning. new_vs_returning — VARCHAR(16) NOT NULL —
is_engaged_session 1 on every row of an engaged session, otherwise 0. A session is engaged with at least 10 seconds of engagement, at least 2 page views, or a goal event. is_engaged_session — TINYINT(1) NOT NULL —
is_entrance 1 on the session's first page view, otherwise 0. is_entrance — TINYINT(1) NOT NULL —
channel What kind of traffic the session is, from this row's source, medium and campaign by the channel rules (conf/channels.php). channel source, medium, campaign VARCHAR(32) NOT NULL —
acq_channel The channel of the visitor's first visit, from acq_source, acq_medium and acq_campaign. channel acq_source, acq_medium, acq_campaign VARCHAR(32) NOT NULL —
attributed_source The session's source if it arrived with tags or a referrer, else the source of the visitor's last non-direct visit within the Property's attribution lookback, else (direct). attributed session.tagged_source, session.referer_host, session.prior_touch_source, session.prior_touch_referer_host VARCHAR(255) NOT NULL —
attributed_medium The session's medium if it arrived with tags or a referrer, else the medium of the visitor's last non-direct visit within the Property's attribution lookback, else (none). attributed session.tagged_medium, session.referer_host, session.prior_touch_medium, session.prior_touch_referer_host VARCHAR(64) NOT NULL —
attributed_campaign The session's campaign if it arrived with tags or a referrer, else the campaign of the visitor's last non-direct visit within the Property's attribution lookback, else (direct). attributed session.tagged_campaign, session.tagged_source, session.tagged_medium, session.tagged_ad, session.referer_host, session.prior_touch_campaign, session.prior_touch_source, session.prior_touch_medium, session.prior_touch_ad, session.prior_touch_referer_host VARCHAR(255) —
attributed_channel The channel of the attributed source, medium and campaign. channel attributed_source, attributed_medium, attributed_campaign VARCHAR(32) NOT NULL —
attributed_ad The session's ad if it arrived with tags or a referrer, else the ad of the visitor's last non-direct visit within the Property's attribution lookback. attributed session.tagged_ad, session.prior_touch_ad VARCHAR(255) —
profile_name The name of the Observation Profile the event was collected for, as it was when its day was last built. copy profile.name VARCHAR(255) —
page_depth Which page of its session the event happened on: 1 for the landing page. page_depth — INT —
previous_page_path On a page view, the path of the page viewed before it in the session, or (entrance) on the first. previous_page — MEDIUMTEXT —
next_page_path On a page view, the path of the page viewed after it in the session, or (exit) on the last once the session has closed. next_page — MEDIUMTEXT —
session_tagged_source The source the session's landing URL was tagged with, as collected, on every row of the session. copy session.tagged_source VARCHAR(255) —
session_tagged_medium The medium the session's landing URL was tagged with, as collected, on every row of the session. copy session.tagged_medium VARCHAR(64) —
session_tagged_campaign The campaign the session's landing URL was tagged with, as collected, on every row of the session. copy session.tagged_campaign VARCHAR(255) —
is_deepest_scroll 1 on the deepest scroll event of each page view, otherwise 0. A page view shown again after it was hidden can send a second, deeper scroll; counted under this, each page view that scrolled counts once. is_deepest_scroll — TINYINT(1) NOT NULL —

Which cube a Profile's data goes into

Tracking is collected per Observation Profile, and raw records each event's Profile as site_id. A cube belongs to a Property, and a build fills it with the raw rows of every Profile under that Property.

The Profile-to-Property mapping is read at build time, not stored on raw rows. A Profile moved to another Property takes its history with it on the next rebuild of the affected days. Likewise, a renamed Profile's new profile_name appears on the days rebuilt after the rename.

Raw rows whose site_id matches no Profile belong to no cube. cmd=cube-rebuild counts them and prints the number.

Other tables

These tables hold no tracking data. Each is declared by an entity of the module named.

Table Module Holds
owa_organization Base The Organization. An installation has one
owa_property Base One row per Property
owa_site Base One row per Observation Profile, keyed by its site_id
owa_site_user Base Which users are granted which Profile. A grant to any Profile of a Property grants the Property
owa_user Base User accounts
owa_app_password Base Application passwords: a hash of each, never the password
owa_setting Base Every stored setting, one row per setting and scope
owa_goal_event_definition, owa_goal_event_definition_condition Base Goal event definitions and their conditions
owa_custom_dimension Base The custom dimensions each Property has registered, and whether each column is on the cube yet
owa_custom_report, owa_custom_report_favorite Base Custom reports, funnels and users' own versions of shipped reports, and which users starred them
owa_notification, owa_notification_state Base The notifications bell: each notification, and what each user has read or dismissed
owa_spam_block Base Beacons spam detection blocked, per day, Profile and rule. The only record that a blocked beacon arrived. Never pruned
owa_scheduled_job Base One row per scheduled job, once the scheduler has run it: the occurrence its last run satisfied, when it last ran and finished, the outcome and message, and run and failure counts. Schedules and arguments are not stored; they come from the code and OWA_SCHEDULED_JOBS
owa_job_lock Base One row per scheduled job running now, keyed by the job's name. The row is the lock: a second run cannot start until its lease expires
owa_job_queue Base One-off jobs for the scheduler to run once: the command and its arguments, status, attempts and back-off, lease and last error. Finished ones are deleted by the prune-job-queue job
owa_domstream_chunk, owa_domstream_payload Domstream Session recordings: one row per chunk the recorder sent, and its samples, compressed. Partitioned by yyyymmdd, as raw is

How the scheduler uses its three tables is on Scheduled Jobs.

Related

Changes from 1.x

  • 1.x's fact tables (owa_request, owa_session, owa_click, owa_action_fact, owa_commerce_transaction_fact, …) and their dimension tables are not used. The upgrade's migration reads their history into owa_event_raw and the visitor store, and cubes are built from raw.
  • The migration never writes to 1.x's tables. They stay until you drop them with cmd=v1-drop --drop; until then, putting the 1.14 code back gives a working 1.x installation.
  • owa_migration_progress, owa_migration_tally and owa_migration_day_visitor (Base) record how far the migration got and what it wrote, for checking.
  • Migrated history has no event_seq, and its visitor and session ids begin with a creation time.
  • A visitor who first arrived before 2.0 and whose 1.x history was not migrated has no acquisition, and shows (unknown).

How much history to migrate, and the disk space it needs: Upgrading from 1.x. Everything else that changed: Changes from 1.x.

Clone this wiki locally