Getting started
Integrations
Tag Manager, WordPress, Google Analytics 4, single-page apps, your backend, webhooks and AI providers, with the plan each needs.
freeabtest.com connects through one script tag, a REST API and webhooks. This page lists what works today and where each one is documented.
| Integration | What it does | Plan | Guide |
|---|---|---|---|
| Google Tag Manager | Add the snippet as a Custom HTML tag. Test views are pushed to dataLayer. | Every plan | Tag Manager |
| WordPress | The FreeABTest plugin adds the snippet for you. On any plan you can paste it with a header code plugin or your theme. | Plugin on paid plans | WordPress |
| Google Analytics 4 | An experience_impression event for each test version a visitor sees. | Every plan | GA4 |
| Single-page apps | Call ABTest.bootstrap() after a route change. Works with React and other frameworks. | Every plan | Single-page apps |
| Your backend | Assign visitors and record events from your server with a secret key. | Every plan | Server-side testing |
| REST API | List tests, read results, change traffic and roll out a winner. | Every plan | REST API |
| AI providers | Bring your own key from OpenAI, Google Gemini, DeepSeek or Claude for test ideas, copy and result summaries. | Growth and Enterprise | AI suggestions |
| Webhooks | A signed POST when a test finds a winner, finishes, shows a sample ratio warning or a plan limit is reached. | Paid plans | Webhooks |
Google Tag Manager#
Paste the script tag into a Custom HTML tag that fires on Initialization - All Pages. With Tag Manager on the page, the snippet pushes each test view to dataLayer, so a GA4 event tag can forward it. Step by step: Install with Google Tag Manager.
WordPress#
On paid plans, download the plugin from the WordPress page, paste your public SDK key and turn it on. On the free plan, add the script tag with a header code plugin or a child theme. Both are in Install on WordPress.
Google Analytics 4#
With gtag.js or Tag Manager on the page, the snippet sends experience_impression once per page with the test and version ids. Register variation_name as a custom dimension to compare versions in GA4, or build one audience per version. To turn it off, add data-analytics="off" to the script tag. Details: Google Analytics 4.
Single-page apps#
The snippet checks the page when it loads. In an app that changes the URL without a page load, call ABTest.bootstrap() after each route change. Visitors keep their version.
useEffect(() => {
window.ABTest?.bootstrap();
}, [pathname]);Your backend and the REST API#
A secret key lets your server assign visitors and send page views and conversions, so the change can live in server code. The same key reads results and manages running tests. Experiments are created in the dashboard. See Server-side testing and the REST API reference.
Webhooks#
On paid plans, add an endpoint under Webhooks in the dashboard to get test.winner, test.completed, test.srm_warning and quota.reached events, for example to post in a chat channel. Each delivery is signed so you can check it came from us. See Webhooks.
AI providers#
On Growth and Enterprise, add an API key from OpenAI, Google Gemini, DeepSeek or Claude (Anthropic) to get test ideas, hypotheses, copy suggestions and plain-words result summaries. You pay the provider directly. The verdict always comes from the statistics. See AI suggestions.
Not available yet
There is no npm or React package yet, and no store platform apps. The script tag works on any site, and the REST API covers everything else.