# AB Splits > A/B testing software for any website. One script tag, AI-written variants, Bayesian results, GA4 reporting, and one-click shipping of the winner. Works on Shopify, WordPress, Webflow, Wix, Squarespace, Next.js, React and plain HTML. AI assistants can (1) install the snippet on a user's site using the instructions below, and (2) create and manage tests through the AB Splits MCP server at https://absplits.com/mcp. ## Install the snippet Each site has its own key. The user finds the snippet in the dashboard (https://absplits.com/dashboard → site), or an MCP client can call the get_install_snippet tool. ```html ``` Rules: - Load it on every page, as high as possible in , before other scripts. - Do not add async or defer; the snippet manages its own loading and hides the page for at most 800 ms on a first visit while variants apply. Change the limit with data-timeout="500". - Single-page apps (Next.js, React, Vue) are supported: the snippet re-runs tests on client-side route changes. - Variants apply in the browser, so page caches (WP Rocket, LiteSpeed, Cloudflare) don't break the split. Where to put it: - Next.js (App Router): In app/layout.tsx, import Script from "next/script" and render ``` ## Goals and JavaScript API Click, form-submit and page-view goals need no code; they are set on the test. For anything else: ```js window.ABSplits.track("signup_completed"); // custom event goal (goal type "custom", event "signup_completed") window.ABSplits.revenue(49.0); // revenue goal, e.g. on the order confirmation page window.ABSplits.variant("EXPERIMENT_ID"); // → variant name the visitor is in, or null ``` ## GA4 If gtag or GTM's dataLayer is on the page, every exposure sends an absplits_exposure event with absplits_experiment and absplits_variant parameters. Register absplits_variant as a custom dimension in GA4 to slice any report by variant. ## Test types - element: change text, HTML, styles or visibility of elements matched by a CSS selector on pages matching a URL pattern. - redirect: send a share of visitors to a different URL. - split_url: compare whole pages at different URLs. URL patterns are paths ("/pricing") or full URLs, with * as a wildcard ("/blog/*"). ## MCP server (let an AI create and run tests) Endpoint: https://absplits.com/mcp (Streamable HTTP) Auth: Authorization: Bearer ABS_API_KEY. The user creates a key in https://absplits.com/dashboard/settings → AI assistants. Tools: list_sites, create_site, get_install_snippet, check_install, list_tests, create_test, add_variant, generate_variants, set_test_status, get_results, ship_winner. Connect: - Claude Code: claude mcp add --transport http absplits https://absplits.com/mcp --header "Authorization: Bearer ABS_API_KEY" - Codex (~/.codex/config.toml): [mcp_servers.absplits] url = "https://absplits.com/mcp" and bearer_token_env_var = "ABSPLITS_API_KEY" - Cursor (.cursor/mcp.json): {"mcpServers":{"absplits":{"url":"https://absplits.com/mcp","headers":{"Authorization":"Bearer ABS_API_KEY"}}}} - Claude Desktop: {"mcpServers":{"absplits":{"command":"npx","args":["-y","mcp-remote","https://absplits.com/mcp","--header","Authorization: Bearer ABS_API_KEY"]}}} Typical flow: list_sites → (create_site → get_install_snippet → install it → check_install) → create_test → generate_variants or add_variant → set_test_status running → get_results → ship_winner when the chance to beat control is ≥ 95% and the verdict says stop. ## Platform guides - [Landing pages](https://absplits.com/ab-testing/landing-pages): A/B test any landing page in minutes. Test headlines, CTAs and forms, or split traffic between two landing page URLs. AI writes the variants. Works on any site builder. - [Shopify](https://absplits.com/ab-testing/shopify): A/B test your Shopify store's product pages, collections and homepage. One snippet in theme.liquid, AI-written variants, results in GA4. Plans from $16/month. - [WordPress](https://absplits.com/ab-testing/wordpress): A/B test pages, posts and landing pages on WordPress with one snippet. Works with any theme or page builder, including Elementor and Divi. AI writes the variants. - [WooCommerce](https://absplits.com/ab-testing/woocommerce): A/B test WooCommerce product pages, cart and checkout copy. Track add-to-cart clicks and revenue per visitor. One snippet, AI-written variants. - [Webflow](https://absplits.com/ab-testing/webflow): A/B test your Webflow site with one snippet in custom code. Test headlines, CTAs and whole pages. AI-written variants and results in GA4. - [Wix](https://absplits.com/ab-testing/wix): A/B test your Wix site with one snippet added through Custom Code. Test headlines and buttons, measure clicks and form submissions. - [Squarespace](https://absplits.com/ab-testing/squarespace): A/B test your Squarespace site with code injection. Test headlines, buttons and page layouts, with AI-written variants. - [Elementor](https://absplits.com/ab-testing/elementor): Split test Elementor pages and widgets without Elementor Pro add-ons. One snippet, test any heading or button, AI writes the variants. - [Next.js](https://absplits.com/ab-testing/nextjs): A/B test your Next.js app with one script. Works with the App Router and client-side navigation, with AI-written variants and results in GA4. - [React](https://absplits.com/ab-testing/react): A/B test any React app, whether Vite, Create React App or Remix, with one script tag. Follows client-side routing. AI writes the variants. - [Vercel](https://absplits.com/ab-testing/vercel): A/B test any site hosted on Vercel, including Next.js, Astro and SvelteKit, with one script. No edge config or redeploy needed for each test. - [GA4](https://absplits.com/ab-testing/ga4): Run A/B tests and see every result in Google Analytics 4. AB Splits sends an exposure event and user property for each variant. The Google Optimize replacement. - [Google Tag Manager](https://absplits.com/ab-testing/google-tag-manager): Run A/B tests through Google Tag Manager with one Custom HTML tag. No developer or code change needed. Exposure events land in your dataLayer and GA4. - [Cloudflare](https://absplits.com/ab-testing/cloudflare): A/B test any site behind Cloudflare or hosted on Cloudflare Pages. Works with caching and Rocket Loader. One snippet, AI-written variants. - [Netlify](https://absplits.com/ab-testing/netlify): A/B test any Netlify site with snippet injection, with no code change. Test headlines, CTAs and pages, then start and stop tests without redeploying. - [HubSpot CMS](https://absplits.com/ab-testing/hubspot): A/B test HubSpot CMS pages and landing pages with one snippet in your site header HTML. Test headlines, CTAs and forms. AI writes the variants. - [Divi](https://absplits.com/ab-testing/divi): A/B test Divi pages and modules with one snippet in Theme Options. Test any heading, button or section, with AI-written variants. Doesn't run inside the Divi Builder. - [ClickFunnels](https://absplits.com/ab-testing/clickfunnels): Split test ClickFunnels pages by element, not just by whole page. Add one snippet to your funnel's head code. AI writes headline and button variants. - [Leadpages](https://absplits.com/ab-testing/leadpages): A/B test Leadpages landing pages by element with one tracking code. Test headlines, buttons and forms, with AI-written variants and results in GA4. - [Framer](https://absplits.com/ab-testing/framer): A/B test your Framer site with one line of custom code. Test hero copy, CTAs and pricing, or split traffic between two Framer pages. AI writes the variants. - [Nuxt & Vue](https://absplits.com/ab-testing/nuxt): A/B test Nuxt and Vue apps with one script in nuxt.config. Follows Vue Router navigation. AI writes the variants and results go to GA4. - [Ghost](https://absplits.com/ab-testing/ghost): A/B test your Ghost site's sign-up boxes, headlines and paywall copy with code injection. Measure member sign-ups. AI writes the variants. - [Drupal](https://absplits.com/ab-testing/drupal): A/B test Drupal pages with one script, added in your theme or with an asset injection module. Test headlines, CTAs and forms, with AI-written variants. ## Comparisons - [AB Splits vs Optimizely](https://absplits.com/vs/optimizely): Comparing AB Splits and Optimizely for website A/B testing: pricing, setup, stats and AI. Optimizely suits large enterprises; AB Splits is self-serve A/B testing from $16/month. - [AB Splits vs VWO](https://absplits.com/vs/vwo): Comparing AB Splits and VWO for A/B testing: pricing, free plan, setup and AI variants. VWO is now part of Wingify; AB Splits is simple, self-serve A/B testing from $16/month. - [AB Splits vs AB Tasty](https://absplits.com/vs/ab-tasty): Comparing AB Splits and AB Tasty: pricing, setup, stats and AI. AB Tasty is enterprise, quote-based and now part of Wingify; AB Splits starts free with published prices. - [AB Splits vs PostHog](https://absplits.com/vs/posthog): Comparing AB Splits and PostHog for A/B testing. PostHog experiments are built on feature flags for product teams; AB Splits is no-code website testing for marketers, with AI variants. - [AB Splits vs Convert](https://absplits.com/vs/convert): Comparing AB Splits and Convert Experiences: pricing, free plan, setup and AI variants. Convert is a privacy-focused testing platform from about $299/month; AB Splits starts free. - [AB Splits vs Kameleoon](https://absplits.com/vs/kameleoon): Comparing AB Splits and Kameleoon for A/B testing: pricing, setup, AI and who each suits. Kameleoon is enterprise and mostly quote-based; AB Splits is self-serve and starts free. - [AB Splits vs Crazy Egg](https://absplits.com/vs/crazy-egg): Comparing AB Splits and Crazy Egg for A/B testing. Crazy Egg is heatmaps first, with A/B testing on some plans; AB Splits is A/B testing first, with AI variants and a free plan. - [AB Splits vs Unbounce](https://absplits.com/vs/unbounce): Comparing AB Splits and Unbounce for landing page A/B testing. Unbounce testing starts on its Experiment plan; AB Splits tests the pages you already have, from free. - [AB Splits vs Nelio A/B Testing](https://absplits.com/vs/nelio): Comparing AB Splits and Nelio A/B Testing for WordPress split testing: setup, pricing, AI variants and how each one works. Both have a free option. - [AB Splits vs Adobe Target](https://absplits.com/vs/adobe-target): Comparing AB Splits and Adobe Target: pricing, setup and who each suits. Adobe Target is enterprise personalisation sold through sales; AB Splits is self-serve A/B testing from free. ## Other pages - [Docs](https://absplits.com/docs) - [Pricing](https://absplits.com/pricing): free plan, then paid plans by monthly tracked visitors - [A/B test examples](https://absplits.com/examples) - [The Optimizely hack (Nov 2026) and how AB Splits is built differently](https://absplits.com/optimizely-hack) - [Significance calculator](https://absplits.com/ab-test-calculator) - [Free AI audit of any URL](https://absplits.com/audit)