← Promotional & Lifecycle Email case study

How a GapCash email comes together

A storyboard of how I built GapCash emails at Gap, from the offer sheet to handoff. Each step shows what happens, with an example, and what my part was.

Where
Gap Inc, as Email Developer
Scale
4 brands, 10,247 emails coded by a team of 15
My role
HTML, AMPscript and the test data behind each email
Tools
Salesforce Marketing Cloud, AMPscript, Litmus, Asana

The offer details and images come from Gap Factory emails I built in June 2023. Customer data in the examples is test data.

  1. Step 1 · The offer

    It starts with the offer sheet

    GapCash was Gap’s rewards offer: customers earned it in one window and spent it in the next. The offer sheet set the rules for each send, and every amount, date and exclusion in the email had to match it exactly.

    My partReading the offer sheet line by line and building the email to match it.
    Offer sheetexample
    OfferRedeem your GapCash
    BrandGap Factory
    Redeem window6/7–6/12, at Gap and Gap Factory
    Redeem tiers$20 off $50 · $40 off $100 · $120 off $300
    VersionsEarner and non-earner
    Also in the emailUp to 75% off, free shipping with code GFSHIP
    OFFER SHEETGapCashREDEEM $60SHOP NOWEARNERNON-EARNEROFFER SHEET → EMAIL
  2. Step 2 · The data

    The customer’s record drives the email

    The data team built the audience. Each customer’s record held what the email needed: first name, GapCash balance and their redeem codes. The email reads those fields at send time.

    My partUsing data extension fields to drive the content, and building test data extensions with custom fields for QA.
    Customer recorddata extension
    • EmailAddresstest.earner@example.com
    • FirstNameMarcello
    • GC_Total$60
    • Code $300N1PWYW24NVTL
    • Code $100PVHDMWVW6BT1
    • Code $50BWG924J99MVT
  3. Step 3 · Two versions

    One send, two emails

    Every GapCash promotion was really two emails in one send. Earners saw their balance, the redeem tiers and a barcode. Everyone else saw the same promotion with no redeem block, so nobody saw an offer they couldn’t use.

    My partBuilding both versions in one email, so the right one showed for each customer.
    Earnerhad GapCash
    • “Redeem your $60” banner
    • Three redeem rows, highest spend first
    • A barcode and code for each
    • Promotion and products
    Non-earnereveryone else
    • No redeem banner
    • No redeem rows or barcodes
    • Same promotion and products
    • Same footer and legal

    Rebuilt with test data: Earner version · Non-earner version

  4. Step 4 · Personalizing

    The subject line changes by customer

    AMPscript put the customer’s balance in the subject line, with a fallback when the first name was missing. The same logic was written in French for Gap Factory Canada, where GapCash is DollarsGap.

    My partWriting the AMPscript for subject lines and conditional content, in English and French.
    Subject linewhat each customer sees
    CustomerSubject line
    Name and $40 balance“Marcello, it’s time to use your $40 in GapCash!”
    No first name, $40 balance“It’s time to use your $40 in GapCash!”
  5. Step 5 · Reusable parts

    Toggles and shared blocks

    Toggles at the top of each email showed or hid the rewards, free shipping and promo banners for that send. Legal copy, rewards details and send-date logic came from shared content blocks, so one fix updated every email that used them.

    My partSetting the toggles for each send and pulling in the shared blocks.
    Top of the emailper send
    • Rewards bannerOn
    • Free shipping bannerOn
    • Promo bannerOff
    • LegalShared block
    • Send dateShared block
  6. Step 6 · Test records

    A test record for every case

    Before anything went out, I sent the email to test records built for each case, so every version and fallback could be seen.

    My partBuilding the test records and checking every version on test sends.
    Test recordswhat each should show
    Test recordExpected
    Earner with a nameName in subject, balance, three redeem rows
    Earner, no first nameFallback subject line, balance, redeem rows
    Each balance tierOnly the rows that customer has codes for
    Non-earnerNo redeem block, no barcode
  7. Step 7 · QA and handoff

    Check everything, then hand it off

    The last pass compared the email to the offer sheet and ran it through Litmus. Then it went to the deployment team, who handled the send.

    My partRunning QA and managing the handoff with producers in Asana.
    QA checklistevery email
    • Amounts, dates and exclusions match the offer sheet
    • Barcode and promo code show only in the earner version
    • Every link is tracked
    • English and French side by side for Canada
    • Litmus across Outlook, Gmail, Apple Mail and mobile
    • CAN-SPAM footer in place
    1. 01BuildHTML and AMPscript
    2. 02TestTest records and Litmus
    3. 03Hand offIn Asana, to producers
    4. 04DeployThe deployment team sends

Where it carries over

Loyalty email works the same way in any industry. Points, tiers and redeem windows replace GapCash, and the job is still to show each member the offer they qualify for, with the right balance, dates and code, then prove it with a test record for every case.