Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Statamic Ab Tester

Statamic Ab Tester Laravel Package

thoughtco/statamic-ab-tester

A lightweight Statamic addon for A/B testing your content. Create test variants, automatically bucket visitors, and track views and conversions so you can compare performance and make evidence-based decisions—all within Statamic.

View on GitHub
Deep Wiki
Context7

At a glance

Frequently asked questions about Statamic Ab Tester
How do I install the Statamic A/B Tester addon in a Laravel project?
Install it with Composer in your Statamic project using composer require thoughtco/statamic-ab-tester, then follow the repository README for any publish, config, or migration steps. Statamic addons are typically discovered by the framework, but you should confirm the addon is enabled for your site. After installation, create a test in the control panel and render the active variant through the provided helpers.
Which Laravel and Statamic versions does thoughtco/statamic-ab-tester support?
The package's supported Laravel and Statamic versions are defined in its composer.json constraints and README. Check those constraints before installing, especially if you are on an older Statamic 3 or 4 site or a newer Laravel release. If your version is not listed, test in staging before production.
How does the addon assign visitors to A/B test variants?
Visitor assignment is deterministic and stored in a cookie, so a returning visitor with the same cookie remains in the same variant bucket. The addon uses your configured traffic split to decide which variant to serve. This avoids random switching between variants on every request.
How do I create and manage content variants for an entry?
Variants are created and managed per entry from the Statamic control panel, giving you alternate content versions for the same entry. You define the variants, then let the addon handle bucket assignment and rendering. This keeps test setup inside Statamic rather than in separate external tooling.
How do I render the active A/B test variant in Antlers or Blade?
The addon provides Blade and Antlers helpers for rendering the active variant, so you can use the helper that fits your template stack. Replace the hard-coded entry content in your test area with the helper call. The helper should resolve to the variant assigned to the current visitor's cookie.
How are views and conversions tracked in the Statamic control panel?
Views and conversions are recorded and displayed in the Statamic control panel so you can compare variant performance. You will need to trigger conversion tracking at the point in your application that represents a successful goal. Review the package docs for the exact conversion API or template call.
Can I configure the traffic split and test lifecycle?
Yes, the addon has configurable traffic split and test lifecycle settings so you can control how traffic is divided and when a test is active. Exact configuration keys and defaults are documented in the repository README. Keep the lifecycle in mind when caching pages or running time-limited campaigns.
How do I test A/B variants locally or in staging?
In local or staging, clear or set the assignment cookie manually to simulate different visitors and confirm the correct variant renders. Because assignment is deterministic, repeated requests with the same cookie should not switch variants. Also submit a test conversion and verify it appears in the control panel.
What should I consider before using cookie-based A/B testing in production?
Because assignment relies on cookies, review cookie consent, privacy policy, and caching behavior before production use. Full-page caching can interfere with per-visitor variant rendering if the variant is cached without accounting for the assignment cookie. Make sure your analytics and conversion tracking are allowed under your consent setup.
What are alternatives to Statamic A/B Tester?
Alternatives include dedicated experimentation platforms, feature-flag services, or custom Laravel and Statamic logic using cookies and middleware. This addon is a good fit when you want lightweight A/B testing managed inside the Statamic control panel. Compare maintenance status, supported Statamic versions, and tracking needs before choosing.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
abbasudo/artisan-route
mirvan/ippanel
ignibyte/aic-framework
glavweb/data-schema-bundle
glavweb/datagrid-bundle
tacticmedia/scim-server
uni-method/frame
neika-ai/sdk
adachsoft/php-code-style
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
adachsoft/api-version-bundle
cgv/localized-resource
noith/settings
kda/laravel-package