=== Splitlab ===
Contributors: splitlab
Tags: ab testing, split testing, conversion optimization, woocommerce, experiments
Requires at least: 5.7
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 0.1.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Run Splitlab A/B tests on WordPress without flicker, and attribute WooCommerce revenue to the winning variant.

== Description ==

Splitlab adds its testing engine to every page of your site, ahead of anything else in `<head>`, so visitors see the variant they were assigned to and never the original first.

* **No flicker.** The page stays hidden until variants are applied, with a timeout so it is never stuck hidden.
* **Works with caching plugins.** The snippet opts out of script delaying and combining in WP Rocket, LiteSpeed Cache, Autoptimize and Cloudflare Rocket Loader, which would otherwise cause flicker or a blank page.
* **WooCommerce revenue.** Paid orders are reported to Splitlab from your server, so revenue is attributed to the right variant even when the shopper's browser blocks tracking scripts.
* **Respects consent.** If your Splitlab project requires cookie consent, nothing is stored or reported until the visitor grants it.

== Installation ==

1. Install and activate the plugin.
2. Go to **Settings → Splitlab** and paste your project key from the Splitlab install snippet.
3. For WooCommerce revenue, create an API key in Splitlab under **Workspace settings → API keys** (choose no expiry) and paste it as the server API key.

== External services ==

This plugin loads the Splitlab engine from `cdn.splitlab.io` on every front-end page. The engine assigns visitors to test variants and records their visits with Splitlab.

When WooCommerce revenue reporting is enabled, the plugin sends each paid order's total, currency, order key and Splitlab visitor ID to `api.splitlab.io`. No customer name, email or address is sent.

Splitlab [privacy policy](https://app.splitlab.io/privacy-policy).

== Changelog ==

= 0.1.1 =
* Order notes now say whether revenue was attributed to a test variant, recorded for the project only, or already reported.

= 0.1.0 =
* First release.
