# A/B Testing

## Test what works.  No cookies needed.

GhostlyX A/B testing lets you run split tests on any page without cookies, fingerprinting, or personal data collection. Deterministic visitor assignment, Bayesian statistics, and real-time results in a single lightweight script.

## Experiment data

| Metric                           | Value    |
|----------------------------------|----------|
| Total visitors                   | 9.6k     |
| Total conversions                | 576      |
| Probability B beats A           | 97.2%    |
| Control                          | Winner   |

### Visitors and Conversions

| Variant               | Visitors | Conversions | Rate   |
|-----------------------|----------|-------------|--------|
| Blue button (original) | 4.8k     | 241         | 5.0%   |
| Green button          | 4.8k     | 335         | 7.0%   |

Statistical significance reached. The winning variant can be deployed with confidence.

Switch between experiments to explore variant performance and Bayesian probability. All data is simulated.

## Make data-driven decisions without compromising privacy

Most A/B testing tools rely on cookies and third-party scripts to track individual visitors across sessions. GhostlyX takes a fundamentally different approach. Variant assignment is deterministic, based on an anonymous visitor hash and experiment ID.

### Key Features

- **Deterministic variant assignment**: Visitors are assigned to variants using a stable hash function.
- **Bayesian probability engine**: Results use Monte Carlo simulation with 10,000 samples.
- **Automatic conversion attribution**: Conversions are attributed to the correct variant automatically.
- **Multiple variants per experiment**: Run tests with up to 4 variants on Business plans.
- **Pageview and event goals**: Track conversions based on specific URL paths or custom events.
- **Real-time results dashboard**: Watch visitor counts, conversion rates, and probability scores update in real time.

## Privacy at every layer

- **No cookies or local storage**: Variant assignment is computed from a deterministic hash on every page load.
- **No visitor identifiers**: Experiment data is stored with anonymous visitor hashes only.
- **GPC and DNT respected**: Visitors with Global Privacy Control or Do Not Track enabled are excluded from all experiments.
- **Opt-out page available**: Visitors can exclude themselves from GhostlyX tracking.
- **Aggregated statistics only**: Individual visitor behaviour is never exposed.
- **Lightweight on-demand loading**: The experiment script loads only when experiments are active for the current page.

## Set up an A/B test in four steps

1. Enable experiments on your tracking script by adding `data-experiments="true"`.
2. Create an experiment in the dashboard, defining the page and adding variants.
3. Set a conversion goal based on pageviews or events.
4. Monitor results and deploy the winning variant once confident.

## A/B testing plan limits

- **Business**: $29/mo, 10 active experiments, up to 4 variants per experiment.
- **Scale**: $69/mo, unlimited experiments and variants.

## Frequently asked questions

### What is GhostlyX A/B testing?
GhostlyX allows you to run split tests on your website without cookies or personal data.

### Does GhostlyX A/B testing use cookies?
No, it uses a deterministic hashing algorithm based on anonymous visitor identifiers.

### How does variant assignment work without cookies?
It uses a deterministic hash function to map visitors to variants based on stable inputs.

### What statistical method does GhostlyX use?
GhostlyX employs Bayesian statistics with Monte Carlo simulation for clearer results.

### What types of goals can A/B tests track?
Pageview goals and event goals for conversion tracking are available.

### Which plans include A/B testing?
Available on Business and Scale plans only.
