Skip to content

v2 Changes from 1.x

padams edited this page Nov 27, 2026 · 13 revisions

This is the documentation for OWA 2.0, which has not been released yet. 2.0 pages start at v2 Home. For the current release, see Home.

This page lists the major differences between OWA 1.x and 2.0, area by area, with a link to the page that covers each one. To upgrade an installation, see Upgrading from 1.x, which covers the migration and what it changes in your saved reports, goals and settings.

How data is stored and reported

1.x kept a star schema: a fact table per kind of event, joined to dimension tables, read by each report at request time. 2.0 writes every event to one table and reports from a table built from it.

1.x 2.0
Tracking data A fact table per event type (owa_request, owa_session, owa_click, owa_action_fact, …) and dimension tables Every event in one table, owa_event_raw, with each visitor's acquisition in owa_visitor_acquisition
What reports read The fact and dimension tables, joined when the report is requested A reporting cube per Property, owa_event_<property id>, built by the scheduler every five minutes
Sessions A session row, written when a page view arrived A session id on every event. The event that starts a session gets a session_start event beside it at ingest, and any event can start one, not only a page view
Breaking a metric down Each report had the dimensions its fact table carried Any metric by any dimension, because every one reads the same cube
Your own values Action group and label Custom dimensions: any key the tracker sends, given a column in a Property's cube once registered
Disk space — About twice as much per event, since every event is in raw and in its cube

See Data Model, Reporting Cubes and Custom Dimensions.

Reports are of a Property. A 1.x report covered one Observation Profile. A 2.0 report covers a Property and every Profile in it. The Profile ID and Profile Name dimensions break it out by Profile. See Organizations, Properties and Profiles.

Data appears after the next cube build. A new event is in the reports within about five minutes. Realtime reads incoming events directly. A report says how current it is under Data as of.

Tracking

1.x 2.0
The tag Loads the generic owa.tracker.js and sets its options in the tag Loads the Profile's tracking bundle, a static file holding the tracker and the Profile's tag settings. A setting changed in OWA reaches your pages without editing the tag
What the tag records Set by commands in the tag Set on the Profile's Tracking Tag screen, which also shows when each kind of event last arrived
Events Page requests, clicks, actions, ecommerce transactions, feed requests, ad impressions and page interaction recordings, each its own kind of row Events with a name and properties, all in one table. OWA's own include page_view, click, scroll, form_start, form_submit, file_download, exception, view_search_results, user_engagement, purchase and refund. Any other name is a custom event
Engagement Visit length from the times of its page views Engagement time sent by the tracker, and Engaged Sessions and Engagement Rate metrics
Privacy signals Do Not Track honoured Do Not Track and Global Privacy Control honoured, and both can be turned off with honorPrivacySignals. Automated browsers are not tracked
Spam and robots Log Requests From Known Robots (log_robots) A spam score for every request. One whose score reaches the Spam Threshold is not recorded

Tags copied from 1.x keep working. They load the generic tracker, so they do not read the Profile's bundle or its tag settings.

See Tracking Tag, Javascript Tracker, Event Properties and Spam Detection.

Reports

1.x 2.0
Navigation A list of reports down the left A rail of sections, each listing its reports in a column beside it, with Settings at the foot of the rail. On a phone it opens from the menu button
Choosing what to report on A site picker A Property chooser, and a date range panel of presets and a custom range
Report pages A layout per report Overview reports of cards, and detail reports of a trend chart above a table whose dimension and filters can be changed in place
Table rows Links to other reports Row actions, such as opening a page's heatmap
Custom reports Built from 1.x metric and dimension names, seen from every site One list of custom reports and funnels, each belonging to one Property, with a Shared tag for those in everyone's list
Funnel steps A page or a goal An event, with optional conditions

Some 1.x reports have no 2.0 equivalent, and Action Tracking and Action Groups are replaced by Events. Upgrading from 1.x lists them.

Metrics and dimensions have new names. A saved 1.x custom report is rewritten to them during the upgrade. See Reports and Metrics and Dimensions.

Sources and attribution

1.x 2.0
Source, medium, campaign Recorded once, as the visit arrived Recorded as the visit claimed them, then classified at each cube build. A corrected rule reaches history when the affected days are rebuilt
Channel None Each session gets a channel, from rules an installation can change
Crediting a visit The session's own source Three ways: by the session, by the visit that first acquired the visitor, and by the last non-direct visit within a lookback window

See Channels and Attribution.

Goals

1.x 2.0
What a goal is A goal with a number, in a goal group, per Profile A goal event definition on the Property: a name, a trigger event, optional conditions, how it counts and its value
What a match records A completion on the session A goal event: a row of its own, named by the definition
How it counts Once per session Once per session, or every matching event
Start conditions and goal groups Supported Removed. Use a funnel to see where visitors begin a path

See Event Properties and Upgrading from 1.x.

Running an installation

1.x 2.0
Database server MySQL 5.7 or later, or a compatible server MySQL 8.0.21 or later, or MariaDB 10.11 or later
Cron Optional Required: the one schedule-run entry, every minute. Without it, no cube is built and reports stay empty
Checking on an install cmd=instance-info The same command, and the System Health and Reporting Cubes screens
Settings Main Configuration and a settings screen per Profile One Settings area, with screens grouped from the server down to a Profile
owa-config.php Constants, and $this->set() / $this->addCapabilityToRole() for everything else Constants only, OWA_ROLE_CAPABILITIES for roles. A file using $this stops OWA until it is changed. See Configuration
E-commerce reports view_reports_ecommerce view_reports, as any report
Credentials for the REST API One API key per user, signed with OWA_AUTH_KEY Application passwords: any number per user, each named and revocable, sent in the Authorization header. The 1.x key is refused
Upgrading Schema updates from the browser or cmd=update From 1.14 only, with a one-time migration of 1.x history run from the command line
New releases Downloaded and installed by hand Patch and minor releases install themselves from the scheduler, in a window you set. See Automatic Updates
Overrides of conf/ files, such as searchengines.php, and refreshed user-agent patterns In the data directory, owa-data/ In owa-data/conf/, and run only when nobody but the owner of OWA's files can write them. Files left in owa-data/ are not read, and System Health names them. See File System Permissions
cli.php as root Runs Refused unless given --allow-root
The file queue owa-data/logs/, written by the web server and the cron user owa-data/queue/, written by the cron user only. The web server writes beacons to an inbox, owa-data/logs/incoming-tracking-events/, which the drain copies in. Drain 1.x's queue before upgrading: see Upgrading from 1.x
Command names cmd=update, cmd=update-ua-regexes, cmd=update-geoip-db cmd=core-update-schema, cmd=ua-update-definitions, cmd=geoip-update-db. The old names run nothing and say the new one, such as "cmd=update is now cmd=core-update-schema."

See Technical Requirements, Settings, Command Line Interface and Application Passwords.

Queues, jobs and partitions

1.x added the job scheduler, date partitioning of the fact tables, and a file queue for incoming beacons. 2.0 depends on all three.

1.x 2.0
Scheduled jobs Two: rotate-partitions monthly and fetch-notifications daily. Draining the event queue was left for the administrator to schedule Eight, among them the cube build every five minutes, the tracker-ingest drain every minute and rotate-partitions daily, and a ninth, refresh-geoip-db, weekly while the Maxmind GeoIP module is active. Without the scheduler, reports do not update
One-off jobs None The owa_job_queue table, for work to run once: republishing tracking bundles after a change that affects several Profiles, or rebuilding a cube after its retention window was lengthened. schedule-run runs each job, retries a failed one with back-off, and collapses duplicates into one. cmd=jobs lists it
Incoming beacons Written at once, or to an optional file queue that processEventQueue drained when the administrator scheduled it. An event whose handler failed waited in a database retry queue, owa_queue_item Written at once, or to the tracker-ingest queue when OWA_QUEUE_TRACKING_EVENTS is set. The queue is on disk, or in AWS SQS when OWA_SQS_QUEUE_URL is set. A server whose role is collector queues every beacon, with no database: see Server Roles. A beacon whose write fails goes to the queue and is retried with back-off, six attempts over about seven hours, then kept in a dead-letter queue that replay-tracker-ingest tries once more each day. owa_queue_item is gone
Partitioned tables The seven fact tables, on MySQL. An installation from before partitioning converts with a command owa_event_raw and every reporting cube, with no conversion
How long data is kept Everything, unless a keep value is added to rotate-partitions in OWA_SCHEDULED_JOBS Everything, unless a Data retention window is set on screen: one for event data, and one for each Property's reports. rotate-partitions applies them by dropping whole partitions

See Scheduled Jobs, Reporting Cubes, Settings and Upgrading from 1.x.

Removed in 2.0

1.x Why
Resolve Host Names (resolve_hosts) and the Domains report 2.0 does not look up or store the visitor's network host
Default Page (default_page) /store/index.html and /store are one page on every site, by an install-wide list of directory index names
Feed and ad impression tracking Not carried into 2.0. Their 1.x rows are not migrated
processEventQueue, flush-processed-events, clear-field-values, rederive-dimension-ids, backfill-visitor-acquisition, repair-geo-encoding and update-document Each worked on 1.x's tables or its event queue
The owa_* class names (owa_coreAPI, owa_entity, owa_module and the rest) 1.x still resolved them through an alias bridge. Code that uses one gets "class not found" on 2.0: use the namespaced class, such as \OWA\Core\CoreAPI. On 1.14, define('OWA_DISABLE_COMPAT_BRIDGE', true); shows which names a module or integration still uses
queue.php and the RemoteQueue module Replaced by the tracker-ingest queue on AWS SQS: a server whose role is collector queues beacons and a worker drains them. See Server Roles
The path and version constants: OWA_PATH, OWA_DIR, OWA_BASE_DIR, OWA_BASE_CLASSES_DIR, OWA_BASE_CLASS_DIR, OWA_BASE_MODULE_DIR, OWA_MODULES_DIR, OWA_PLUGIN_DIR, OWA_THEMES_DIR, OWA_CONF_DIR, OWA_VENDOR_DIR, OWA_VERSION Code that reads one gets an undefined-constant error on 2.0. Use \OWA\Core\Env: Env::root(), Env::modulesDir(), Env::confDir(), Env::vendorDir(), Env::dataDir(), Env::VERSION. OWA_DATA_DIR and OWA_MAXMIND_DATA_DIR remain, set in owa-config.php only
The API key (apiKey, X-API-KEY) and request signature (signature, X-SIGNATURE), and the API Key row on the user edit screen Replaced by application passwords, sent in the Authorization header. A request that carries a key or a signature is refused with a 401 naming them
OWA_SCHEDULER_ENABLED A server's role decides: full and worker run the scheduler
The periods last_half_hour, last_hour, last_24_hours, time_range, same_day_last_week, same_week_last_year and same_month_last_year A report link naming one of the last three opens on the default period. Any other request naming one is refused. The periods 2.0 offers are on Reports
The File Cache and Memcached modules, OWA_CACHE_OBJECTS, OWA_CACHE_DIR and cmd=flush-cache The cache was off by default, saved about a third of a millisecond a lookup, and could serve a row up to a week out of date. 2.0 keeps looked-up rows for the rest of the request only. The upgrade removes the modules' stored settings

Clone this wiki locally