PHPackages                             jholt/craft-wink - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. jholt/craft-wink

ActiveCraft-plugin[Utility &amp; Helpers](/categories/utility)

jholt/craft-wink
================

A/B testing &amp; experimentation plugin for Craft CMS

5.0.3(3w ago)00proprietaryPHPPHP ^8.2CI failing

Since Jun 11Pushed 3w agoCompare

[ Source](https://github.com/justinholtweb/craft-wink)[ Packagist](https://packagist.org/packages/jholt/craft-wink)[ RSS](/packages/jholt-craft-wink/feed)WikiDiscussions main Synced today

READMEChangelog (6)Dependencies (2)Versions (3)Used By (0)

Wink — A/B Testing for Craft CMS
================================

[](#wink--ab-testing-for-craft-cms)

A/B testing and experimentation plugin for Craft CMS 5. Create experiments with content variants, track conversions, and determine winners with statistical significance — all from within the Control Panel.

Requirements
------------

[](#requirements)

- Craft CMS 5.0+
- PHP 8.2+

Installation
------------

[](#installation)

```
composer require justinholtweb/craft-wink
php craft plugin/install wink
```

Features
--------

[](#features)

- **Experiments as Elements** — full Craft element index with statuses, search, and filtering
- **Server-side variant assignment** — deterministic hashing means no flicker and cache-safe
- **Conversion goals** — page views, clicks, form submissions, or custom events
- **Statistical significance** — two-proportion z-test with Wilson score confidence intervals
- **Reports dashboard** — conversion rates, uplift, confidence levels, and time-series charts
- **Twig integration** — functions, block tags, and template variables
- **Frontend tracker** — lightweight JS (~3KB gzipped) with event batching
- **GA4/GTM forwarding** — optional integration with Google Analytics and Tag Manager
- **Privacy-first** — respects Do Not Track, IP anonymization, configurable retention

Usage
-----

[](#usage)

### Twig Functions

[](#twig-functions)

```
{# Output variant content directly #}
{{ winkVariant('headline-test') }}

{# Full control over variant rendering #}
{% set test = winkExperiment('headline-test') %}
{% if test and test.variant.handle == 'variant-a' %}
    Discover Something New
{% else %}
    Welcome
{% endif %}

{# Block syntax with inline variants #}
{% experiment 'headline-test' %}
    {% variant 'control' %}Welcome{% endvariant %}
    {% variant 'variant-a' %}Discover{% endvariant %}
{% endexperiment %}

{# Add tracking script before  #}
{{ winkTrackingScript() }}
```

### Template Variables

[](#template-variables)

```
{# Query experiments #}
{% set experiments = craft.wink.experiments.experimentStatus('running').all() %}

{# Get assigned variant handle #}
{% set variant = craft.wink.variant('headline-test') %}
```

### JavaScript Conversions

[](#javascript-conversions)

```
// Record a conversion
Wink.convert('signup-goal', { plan: 'pro' });
```

License
-------

[](#license)

Proprietary. See LICENSE.md.

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance95

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

23d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/035cb655c55af0e9e5b96754b80fd9703e195c32dbdfc49ae9a43ab9cf8db560?d=identicon)[justinholtweb](/maintainers/justinholtweb)

---

Top Contributors

[![justinholtweb](https://avatars.githubusercontent.com/u/295903?v=4)](https://github.com/justinholtweb "justinholtweb (16 commits)")

---

Tags

ab-testingcraft-plugincraft5craftcmsconversioncmsoptimizationCraftcraftcmssplit testingab-testingexperimentation

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jholt-craft-wink/health.svg)

```
[![Health](https://phpackages.com/badges/jholt-craft-wink/health.svg)](https://phpackages.com/packages/jholt-craft-wink)
```

###  Alternatives

[craftcms/feed-me

Import content from XML, RSS, CSV or JSON feeds into entries, categories, Craft Commerce products, and more.

293952.6k33](/packages/craftcms-feed-me)[verbb/formie

The most user-friendly forms plugin for Craft.

102393.6k70](/packages/verbb-formie)[verbb/comments

Add comments to your site.

13753.9k](/packages/verbb-comments)[verbb/navigation

Create navigation menus for your site.

92705.0k18](/packages/verbb-navigation)[verbb/vizy

A flexible visual editor field for Craft.

4250.4k](/packages/verbb-vizy)[verbb/hyper

A user-friendly links field for Craft.

24147.8k12](/packages/verbb-hyper)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
