← AMPscript & Personalization case study

A/B test: one offer, two versions

A Gap Factory A/B test rebuilt from the original June 2023 assets. The offer is the same in both versions. What changes is the subject line, the preheader and the hero image.

Where
Gap Inc, as Email Developer
Offer
Up to 75% off, free shipping with code GFSHIP
Testing
Subject line, preheader, hero image
Tools
Salesforce Marketing Cloud, AMPscript

Both versions use the original Gap Factory images and footer. The test setup is an example. Results aren’t shown.

In the inbox

What each customer sees first

The subject line and preheader decide whether the email gets opened. Version B uses AMPscript to put the customer’s first name in the subject line, with a fallback when the name is missing.

Inboxpreview
AGap Factory9:02 AMUp to 75% off + free shippingStyles up to 75% off, plus free shipping with code GFSHIP.
BGap Factory9:02 AMMarcello, 1000s of styles are up to 75% offFree shipping with code GFSHIP. Exclusions apply.
BGap Factory9:02 AM1000s of styles are up to 75% offFree shipping with code GFSHIP. Exclusions apply.
What changesA vs B
Version AVersion B
Subject lineThe offerPersonalized with first name
PreheaderRepeats the offer and codeCode and exclusions
Hero image“Up to 75% off + free shipping”“Up to 75% off, 1000s of styles”
Everything elseSame offer, nav, copy, button, links and footer

Last row of the inbox: Version B for a customer with no first name on file.

The emails

Version A and Version B

Both emails are built from the same template. Only the hero image and the preheader text differ in the body.

AFree shipping hero

Open Version A →

B1000s of styles hero

Open Version B →
The setup

How the test runs

Part of the audience gets each version. Opens show which subject line and preheader worked; clicks show which hero image worked. Every version is checked on a test send before the split goes out.

  1. 01BuildOne template, two versions
  2. 02SplitTest audience divided evenly between A and B
  3. 03MeasureOpens for subject and preheader, clicks for the image
  4. 04SendThe winning version goes to everyone else

Where it carries over

Any email program tests the same way: change one or two things, keep the rest identical, split the audience and let opens and clicks decide. Personalizing the subject line with a safe fallback works with any customer data.