Soon to be released
Ablit SuperEasyAB is a simple, yet powerful AB testing tool for Astro. It allows you to create and deploy AB tests in minutes.
1
2
npm install @ablit-lib/astro
3
The page needs to be in SSR-mode. With Astro 2.0 you can use hybrid rendering to only dynamically render the page with the experiment.
---
import { VariantA, VariantB, ClickEvent } from '@ablit-lib/astro';
---
<VariantA>
<h1>The old headline</h1>
</VariantA>
<VariantB>
<h1>The risky headline, you always wanted to try</h1>
</VariantB>
<ClickEvent>
<a href="/somewhere">Subscribe now</a>
</ClickEvent>
About Ablit
We plan to release an in-depth article about the technical details of SuperEasyAB in the future.
Short version: We hash the user's IP address and user-agent on your Astro server and based on that we divide the users into two groups.
When an event occurs (or pageview) we send the event to our server and then again we hash the user's IP address and user agent and determine in which group the user is.
In our dashboard you set targets. Events are counted automatically and you can add specific pages as targets (e.g. '/success-page').
When a target is significantly better, you will be informed via mail.
Important: We do not store any personal data. We only store the hashed address and user agent (not separately but together -> that way it is really anonymized). We do not store any cookies on the user's device.
I'd love to hear from you! Please contact me at leonferon@icloud.com or write me via twitter @leonferon.