01 / 06
Promotional & Lifecycle Email
Building and deploying 10,000+ promotional and lifecycle emails for Gap Inc. brands in Salesforce Marketing Cloud.
- 10,247emails coded by our team
- 15person team
- 4brands
The job
Gap, Gap Factory, Gap Factory Canada and Old Navy sent promotions and lifecycle emails every week. A data team built the segments and a deployment team handled sends. I built and checked the emails in between: HTML, AMPscript and the test data behind them.
What I did
- Built promotional emails for free shipping, GapCash, Black Friday and Cyber Monday
- Built lifecycle emails, including welcome, birthday and tier upgrade
- Coded in HTML, CSS and AMPscript in Salesforce Marketing Cloud
- Built test data extensions with custom fields for QA
- Checked tracking links on every test send
- Managed handoffs with producers in Asana
GapCash, up close
GapCash was Gap’s rewards offer. Customers earned it during one window and spent it during the next. That meant every GapCash promotion was really two emails in one send, and the details had to match the offer sheet exactly.
Their balance, the redeem tiers (for example, $20 off $50, $40 off $100, $120 off $300) and an in-store barcode.
The same promotion and products, with no redeem block, so nobody saw an offer they couldn’t use.
To show how it worked, I rebuilt a GapCash redeem email from the original Gap Factory images and footer. The balance, the redeem rows and the barcodes all come from the customer’s record, so one email covers both versions. The working versions under See the work use test data.
See it working
A step-by-step storyboard follows one GapCash email from the offer sheet to handoff: the customer data, the two versions, the subject line, the test records and the QA before it went to deployment.
How I built it
- Put the customer’s balance in the subject line with AMPscript, with a fallback when the first name was missing
- Wrote the same logic in French for Gap Factory Canada, where GapCash is DollarsGap
- Used toggles at the top of each email to show or hide the rewards, free shipping and promo banners per send
- Pulled shared content blocks for legal copy, rewards and send-date logic, so one fix updated every email
- Gave each customer a unique promo code with ClaimRow when an offer needed one
- Added Movable Ink blocks for live content like countdown timers
A line from the code
%%[ set @subjectLine = Concat(
iif(Empty(@first_name), "It's",
Concat(ProperCase(Trim(@first_name)), ", it's")),
" time to use your $", @GC_TOTAL, " in GapCash!") ]%%
“Marcello, it’s time to use your $40 in GapCash!” If the name field is empty, it reads “It’s time to use your $40 in GapCash!”
The redeem rows
%%[ set @codeRows = LookupOrderedRows("GapCash_Codes", 0,
"SpendMin DESC", "EmailAddress", @email)
for @i = 1 to RowCount(@codeRows) do
set @row = Row(@codeRows, @i) ]%%
Redeem $%%=Field(@row, "RedeemValue")=%% in GapCash
when you spend $%%=Field(@row, "SpendMin")=%%.
<img src="%%=BarcodeURL(Field(@row, "Code"), "Code128", 275, 64)=%%">
%%[ next @i ]%%
One row per redeem tier, highest spend first, each with its own barcode. A customer with no codes gets the non-earner version.
How I checked it
- Built test records for each case: earner, non-earner, no first name and each balance tier
- Checked every amount, date and exclusion against the final offer sheet
- Confirmed the barcode and promo code showed only in the earner version
- Previewed the English and French versions side by side for Canada
- Ran Litmus across Outlook, Gmail, Apple Mail and mobile before handoff
Where it carries over
Loyalty email works the same way in any industry. Points, tiers and redeem windows replace GapCash, and the core job doesn’t change: show each member the offer they actually qualify for, with the right balance, dates and code.
How it helped
Our team of 15 coded 10,247 emails over four years. Building GapCash as one email with two versions, with a test record for every case, gave each offer a clear checklist before handoff.
Skills used
- Salesforce Marketing Cloud
- AMPscript
- Loyalty & rewards
- Segmented versions
- Movable Ink
- Litmus
- Localization
See the work
- Storyboard: Gap Good Rewards (ILP) emails
- All six Gap Factory emails, with subject lines
- Storyboard: how a GapCash email comes together
- GapCash redeem · Earner (rebuilt)
- GapCash redeem · Non-Earner (rebuilt)
- Promo email: Apr 13
- Promo email: Apr 16
- Merch AM · Earner: Jun 10
- Merch AM · Non-Earner: Jun 10
- PM · Earner: Jun 10
- Merch AM · Top: Jun 15