Skip to content

Releases

Release 2.0.0

Choose a tag to compare

@github-actions github-actions released this 02 Dec 08:13

THIS IS A MAJOR NEW RELEASE WITH BREAKING CHANGES

Read these release notes in full before updating.

Breaking changes

2.0 is not a drop-in upgrade. Anything built on 1.x's code, configuration or API has to change:

  • Custom modules written for 1.x do not work in 2.0 and must be rewritten. 2.0 skips them, naming each in the error log; the rest of the installation runs. See Writing a Module.
  • The v1 REST routes are retired, except base/v1/sites. The v2 routes take a JSON body. See REST API.
  • API keys are replaced by application passwords. See Application Passwords.
  • Metric and dimension names have changed. A REST query or report definition uses 2.0's names, with metrics, dimensions, sort and filters as JSON lists. Saved 1.x custom reports are rewritten during the upgrade. See Metrics and Dimensions and Reporting API.
  • owa-config.php takes constants only. A file with $this->set() or $this->addCapabilityToRole() stops every request, tracking included, until changed. cmd=core-update-schema prints the constant that replaces each line.
  • CLI commands are renamed or removed. update, update-ua-regexes and update-geoip-db are now core-update-schema, ua-update-definitions and geoip-update-db; the old names run nothing. processEventQueue and six others are gone. See Changes from 1.x.

Not breaking: 1.x tracking tags keep working. Page views, clicks, transactions and trackAction calls (stored as custom events) are recorded, from tags and from the PHP SDK. A 1.x command that 2.0 no longer has is skipped without an error: setCampaignNameKey and the other campaign key commands (2.0 reads the owa_ and utm_ parameters), setCookieDomainHashing, getCustomVar and deleteCustomVar. A 1.x tag keeps its settings in the page, and ignores the ones made in OWA. To manage tracking from OWA, replace it with the 2.0 tag from the Tracking tag screen. See Tracking Tag.

Upgrading

Upgrade to 1.14 and run its updates first, then deploy 2.0. 2.0 refuses an older installation, but only once its code is in place.

  • Requirements: PHP 8.2, and MySQL 8.0.21 or MariaDB 10.11. A cron entry is now required: * * * * * cd /path/to/owa && php cli.php cmd=schedule-run, replacing any 1.x cron lines.
  • Before deploying: turn off 1.x queueing and drain the queue with cmd=processEventQueue. Back up the database. Have about 3Γ— the size of 1.x's tracking tables free.
  • After deploying: run php cli.php cmd=core-update-schema straight away. It migrates 1.x history into 2.0's tables, about 4 minutes per 100,000 page views and clicks. Choose how much with since=2years (or a date) or --all. Run without either, it applies the updates before the migration, prints the volume per site and year, and asks you to run it again with since= or --all.
  • Tracking during the upgrade. Beacons that arrive before cmd=core-update-schema has run are queued in owa-data/logs/incoming-tracking-events/, and the first schedule-run after it records them with the time they arrived. They are lost when:
    • the web server cannot write owa-data/logs/: check before deploying;
    • owa-config.php still uses $this->set(): log.php drops every beacon until it is changed, so prepare the constants-only file beforehand and put it in place with the code;
    • they are still in 1.x's file queue: 2.0 does not read it, so drain it first.
  • Reports are built by the scheduler. They stay empty until the first cube build, which cmd=cube-rebuild runs straight away.
  • 1.x's tables are kept until cmd=v1-drop --drop. Until then, putting 1.14 back gives a working 1.x installation.

Full steps: Upgrading from 1.x. Area by area: Changes from 1.x.

What's new and changed

  • One fact table, and a reporting cube per Property. 1.x's star schema is replaced: every event is written to one table, owa_event_raw, and each tracked Property's reports read a cube built from it. See Data Model and Reporting Cubes.
  • The REST API has changed. Routes are v2, take a JSON body and authenticate with application passwords; of v1, only base/v1/sites remains. See REST API.
  • The JavaScript tracker is configured from the admin interface and published as a tracking bundle per Profile, carrying its tag settings. A setting changed in OWA reaches your pages without editing the tag. See Tracking Tag.
  • A new event model. 13 built-in events, such as page_view, click, scroll and purchase, sit alongside any number of custom events, each with properties. Goals are goal event definitions; funnel steps are events. See Event Properties and Custom Events.
  • Efficient data updates and fine-grained retention. Cubes are rebuilt a partition at a time, so a corrected rule or a late event reaches history without reprocessing everything. Event data and each Property's reporting data have their own retention windows, set on screen. See Data Retention.
  • Automatic updates. Signed patch and minor releases install themselves from the scheduler, in a window you set. See Automatic Updates.
  • 42 metrics and 97 dimensions, and any metric by any dimension. In 1.x each metric could be broken down only by the dimensions its fact table joined. Custom dimensions add any value the tracker sends. See Metrics and Dimensions.
  • New reporting screens: overview and detail reports, a date range panel with comparison, custom reports and funnels per Property, Realtime. Channels, and attribution by session, first visit and last non-direct visit. Spam scoring; Global Privacy Control honoured.

Every feature 2.0 adds: New in 2.0.

Release 1.14.10

Choose a tag to compare

@github-actions github-actions released this 19 Nov 18:03

Includes security fixes; upgrading is recommended. No schema changes or new cron entries.

OWA now runs only when OWA_NONCE_KEY, OWA_NONCE_SALT, OWA_AUTH_KEY and OWA_AUTH_SALT in owa-config.php are at least 32 characters and not the owa-config-dist.php placeholders. Configs written by the installer already are. If OWA says its configuration needs attention, run php cli.php cmd=reset-secrets, or set each one by hand to 64 random characters. Either signs everyone out.

Release 1.14.9

Choose a tag to compare

@github-actions github-actions released this 16 Nov 05:12

Includes security fixes; upgrading is recommended. No schema changes or new cron entries.

Release 1.14.8

Choose a tag to compare

@github-actions github-actions released this 15 Nov 22:42

Upgrading is recommended. No schema changes or new cron entries.

  • Stylesheets and scripts now load on servers that don't evaluate Apache <If> expressions, such as LiteSpeed (#1401). The build writes public/.htaccess.
  • The installer's last step saves the admin user, first site and settings together, so an interrupted install can be finished by running the step again.
  • cmd=install generates a random admin password and prints it once, unless you pass password=.
  • cmd=clear-field-values counts and clears only fields that hold a value.

Release 1.14.7

Choose a tag to compare

@github-actions github-actions released this 13 Nov 00:36

Includes security fixes; upgrading is recommended. No schema changes or new cron entries.

  • New CLI command cmd=clear-field-values (--dry-run, site_id=, batch=).

Release 1.14.6

Choose a tag to compare

@github-actions github-actions released this 01 Nov 17:54

Upgrading

This is a patch release for 1.14.5 with no schema change. To upgrade, replace the files. php cli.php cmd=update has nothing to apply.

Fixes

  • The Last seven days period covered eight days: today and the seven days before it. It now covers today and the six days before it.
  • The Last week period ended on the Sunday after the week instead of on the Saturday.
  • Every relative period (Yesterday, Last week, Last thirty days and the others) is now counted in calendar days instead of seconds, so a daylight-saving change no longer shifts one by a day.

These are fixed in #1305.

1.14.5

Choose a tag to compare

@github-actions github-actions released this 01 Nov 07:03

Upgrading

A patch release on 1.14.4, with no schema change: replace the files. php cli.php cmd=update has nothing to apply.

Fixes

  • A trend chart shows the last day of its period. It returned one day fewer than the period held, so a chart ending today left today off (#1302).

Release 1.14.4

Choose a tag to compare

@github-actions github-actions released this 01 Nov 01:10

Upgrading

A patch release on 1.14.3, with no schema change: replace the files. php cli.php cmd=update has nothing to apply.

Fixes

  • A heatmap draws its clicks again. Since 1.13.0 its data request was refused, so the overlay opened on the page with nothing on it; 1.14.3 fixed only the link that opens it (#1297).
  • The heatmap link no longer fails when the site is not already cached (#1295).

Release 1.14.3

Choose a tag to compare

@github-actions github-actions released this 31 Oct 21:46

Upgrading

A patch release on 1.14.2, with no schema change: replace the files. php cli.php cmd=update has nothing to apply.

Fixes

  • The Heatmap Overlay link opens the page again. Since 1.10.1 it went to the dashboard instead (#1293).
  • The heatmap opens only a page on the site's own domain, for a user who may see the site (#1293).

Release 1.14.2

Choose a tag to compare

@github-actions github-actions released this 23 Oct 05:43

Upgrading

A patch release on 1.14.1, with no schema change: replace the files. php cli.php cmd=update has nothing to apply.

A page whose URL was cut short by the query-filter bug (#895) is recorded under its full URL from now on, separately from its history.

Fixes

  • Filtering a query parameter out of a page URL no longer drops the parameters after it (#895).
  • A regex goal condition may contain an @ (#909).
  • Behind a reverse proxy on a sub-path, signing in returns to the page you asked for (#863).
  • owa_cmds.push(['OWA.…', …]) no longer creates a stray tracker named OWA (#858).
  • Script tags no longer carry type="text/javascript" (#916).

Thanks

@mpez7, @wernight, @snailwei, @ivan-docflo and @DrOuille9 for the reports.