=== Spss12 A/B Lite Testing ===
Contributors: spss12
Tags: marketing, a/b test, ab testing
Stable tag: 2.3.14
Requires at least: 5.5
Tested up to: 7.0
Requires PHP: 8.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Lightweight A/B testing for WordPress: run content and headline experiments, assign visitors to variants, and collect events for analysis.

== Description ==

Lightweight A/B testing for WordPress without external analytics services. Test headlines and content variations directly on your site, track conversions, and compare results with a simple workflow inspired by Google Optimize.

**Why use Spss12 A/B Lite Testing?**

* **Privacy-Friendly** — Experiment data stays on your own server instead of being sent to a third-party SaaS platform.
* **No External SaaS Requests** — Runs directly inside WordPress without relying on third-party A/B testing platforms.
* **Developer-Friendly & Extensible** — Includes a robust native REST API
* **Lightweight and WordPress-native** — Designed specifically for WordPress. Works seamlessly with standard themes and plugins out of the box.

**Features**

* **Experiments** — Create and manage A/B tests with traffic distribution and goals.
* **Two experiment types**
  * *Content* — Insert the shortcode `[ab_lite placement="your-placement-key"]` where you want tested content. For a running experiment that matches that placement, the plugin picks a variant, records a view (when applicable), and outputs that variant’s body.
  * *Headline* — On singular posts or pages (and similar), if a running headline experiment is tied to that post and type, the visible title is replaced with the assigned variant’s label for that session.

* **Assignment** — Each visitor gets a stable session identifier.

* **Targeting** — Target experiments by post type, URL, device, or user state.

* **Goals and events** — Goal types include views, clicks, conversions, and orders.

* **Statistics** — Track views, clicks, conversions, and experiment performance.

* **Admin** — An **A/B Experiments** screen in the WordPress admin is used to manage tests and view stats.

* **REST API** — Manage experiments programmatically through the WordPress REST API.

* **Extensible** — Includes WordPress hooks and filters for developers.

== Installation ==

1. Install and activate the plugin.
2. Open A/B Experiments in the WordPress admin.
3. Create your first experiment and variants.
4. Insert the shortcode into your content.
5. Start the experiment and track results.

== Quick Start ==

Create a new content experiment in A/B Experiments with cta "homepage-hero".
Add two variants.
Insert the shortcode into your content:

[ab_lite placement="homepage-hero"]

Start the experiment and track results from the admin dashboard.

== Roadmap ==

- WooCommerce conversion goals
- Advanced targeting
- Improved reporting
- Additional experiment types

== Frequently Asked Questions ==

= Where are experiments stored? =

Experiments, variants, assignments, events, and aggregated stats live in custom tables created on activation (prefix `ab_lite_` under your WordPress table prefix).

= Do I need a separate analytics service? =

The plugin records assignments and events in your database. You can still use external analytics; the front-end script is intended to work with the plugin’s AJAX endpoints for event delivery.

= Does the plugin send data to external services? =

No. Experiment assignments and tracking data stay inside your WordPress installation. So you can manage or remove stored experiment data directly from your db.