A/B Test Idea: JPG vs. WebP Banners and Landing Page CTR

Published on June 12, 2024

The Hypothesis: Faster Images, More Clicks

We know that page speed is a critical factor in user experience and conversions. Slow-loading pages lead to higher bounce rates. Since images are often the largest element on a landing page, optimizing them is a top priority.

Modern image formats like WebP offer significantly smaller file sizes than traditional JPEGs at a comparable visual quality. This leads to faster loading times.

Our hypothesis is: By replacing a standard JPG hero banner with a highly optimized WebP version, we will reduce the page’s load time, leading to a better user experience and a measurable increase in the click-through rate (CTR) on the page’s main call-to-action (CTA).

Why This Test Matters

  • Validates Performance Efforts: It provides concrete data to prove that image optimization efforts have a direct impact on user behavior and business goals.
  • Improves Core Web Vitals: A faster-loading hero image will directly improve your page’s Largest Contentful Paint (LCP) score, a key Google metric.
  • Incremental Gains: Even a small lift in CTR (e.g., 0.5%) can lead to significant revenue gains at scale.

How to Set Up the A/B Test

You will need an A/B testing tool like Google Optimize (sunsetting, but principles apply to others), VWO, or Optimizely.

Step 1: Prepare Your Image Assets

  1. Create the Control (JPG): Take your original hero banner and save it as a high-quality JPG. This is your “Version A”.
  2. Create the Variant (WebP): Take the same original banner and convert it to WebP using our Image Converter tool. Adjust the quality settings to get a file size that is at least 30-40% smaller than the JPG, while still looking visually sharp. This is your “Version B”.
  3. Host Both Images: Upload both the JPG and WebP images so they are accessible via a URL.

Step 2: Configure the A/B Test

  1. Set Up Your Experiment: In your A/B testing software, create a new A/B test on your target landing page.

  2. Define Your Variants:

    • Original (Control): This is your current page with the JPG banner. No changes are needed.
    • Variant 1 (WebP): In the editor, change the src attribute of the <img> tag for the hero banner to point to your new WebP image URL.

    Advanced Option: For the most robust test, use the <picture> element in your variant to serve WebP with a JPG fallback. This ensures the test doesn’t fail for users on very old browsers.

    <!-- Code for Variant 1 -->
    <picture>
      <source srcset="your-banner.webp" type="image/webp">
      <img src="your-banner.jpg" alt="...">
    </picture>
  3. Set Your Primary Objective: The main goal is to measure clicks on your primary call-to-action. Configure the test to track clicks on that specific button or link. This will be your primary conversion metric (CTR).

  4. Add Secondary Objectives (Optional but Recommended):

    • Page Load Time: Track the average page load time or LCP for each variant.
    • Bounce Rate: See if the faster-loading page reduces the number of users who leave immediately.

Step 3: Launch and Analyze

  1. Traffic Allocation: Start with a 50/50 split, sending half your visitors to the original page and half to the variant.
  2. Run the Test: Let the experiment run until you have reached statistical significance (usually at least a 95% confidence level). This might take a few days or a few weeks, depending on your traffic volume.
  3. Analyze the Results:
    • Did the WebP variant have a statistically significant higher CTR?
    • Did the page load time decrease for the variant group?
    • Did the bounce rate go down?

Interpreting Potential Outcomes

  • Clear Win: The WebP variant shows a significant increase in CTR and a decrease in load time. Action: Roll out WebP as the new default for all hero images across your site.
  • No Significant Difference: The CTR is roughly the same, even if the page loaded faster. Analysis: This could mean that for your specific audience or page, the load time difference wasn’t noticeable enough to impact behavior. However, the performance benefits (better Core Web Vitals) are still valuable on their own, so switching to WebP is likely still a good idea for SEO and user experience.
  • Loss: The WebP variant performs worse. Analysis: This is highly unlikely but could indicate a problem with the image itself (e.g., you compressed it too much and it looks blurry) or a technical glitch in the test setup.

This simple A/B test is a powerful way to connect the technical work of web performance optimization directly to tangible business results.

Related Guides