ab-testing

Assigns persisted variants and tracks exposures and conversions via GA4/GTM for AB tests.

4|1|Updated Dec 21, 2025
One-click install
npx skills add https://github.com/Soborbo/claudeskills --skill ab-testing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ab-testing
Source: https://github.com/Soborbo/claudeskills/tree/main/ab-testing
Command: npx skills add https://github.com/Soborbo/claudeskills --skill ab-testing

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

AB testing patterns enable experimentation on lead generation sites to optimize conversion rates by providing a structured, privacy-friendly framework that avoids guesswork.

Core Features & Use Cases

  • Variant system: simple client-side AB test components that assign and persist variants per user.
  • Tracking & analytics: integrates with GA4/GTM for exposures and conversions, with sample-size planning.
  • Use Case: run CTA text or form-length experiments on a landing page to quantify lift and reliability.

Quick Start

Use the ab-testing skill to implement a basic hero-CTA experiment with two variants and track the exposure and conversion events.

Frequently Asked Questions about ab-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run A/B tests on lead generation landing pages to improve conversion rates?

A/B testing for landing page CTAs involves applying a client-side variant system that assigns and persists variants per user to quantify conversion lift. You can implement a basic hero-CTA experiment with two variants and track the exposure and conversion events.

Can I track A/B test exposures and conversions using GA4 and GTM?

Yes, you can track A/B test exposures and conversions using GA4 and GTM. The testing framework integrates with GA4/GTM to monitor variant exposures and conversion events, enabling you to quantify lift and ensure statistical validity for your lead-generation campaigns.

How do I calculate sample size for web analytics A/B experiments?

Calculating sample size for web analytics A/B experiments ensures your conversion optimization results are statistically valid. The framework includes sample-size planning features to determine the required traffic volume before running CTA, form-length, or social proof tests.

Does client-side A/B testing cause page flicker on landing pages?

Client-side A/B testing can cause page flicker on landing pages, but this framework applies rapid pre-paint application to minimize it. This approach ensures a privacy-conscious, persisted variant system that loads quickly enough to prevent users from seeing the original layout flash.

What is the best way to test social proof and form length variations for conversion optimization?

The best way to test social proof and form length variations for conversion optimization is to apply structured A/B experiments across your marketing campaigns. This quantifies the lift from each variant, ensuring statistical validity and reliable lead-generation results.