
FitGear – Personalized Anniversary Email & SMS Campaign
A personalized anniversary email and SMS campaign built in Salesforce Marketing Cloud using AMPscript to reward customer loyalty with discounts ranging from 10% to 30%, based on yearly spending and average basket size, featuring dynamic messaging and personalized redemption links.
Description
A personalized anniversary campaign developed for FitGear, an online sports retailer specializing in sports equipment, fitness clothing, footwear, and accessories.
The campaign combines email and SMS communications to celebrate customers' first anniversary with the brand and encourage repeat purchases through personalized discount offers.
Built using Salesforce Marketing Cloud and AMPscript, the solution uses customer spending data to determine individual discounts, generate dynamic messaging, and create personalized offer redemption links across both communication channels.
Scenario
FitGear wanted to recognize customers reaching their one-year anniversary with the brand by offering a personalized reward based on their purchasing behaviour.
Rather than providing a standard discount to every customer, the campaign uses total yearly spend and average basket size to determine the most appropriate offer, with discounts ranging from 10% to 30%.
The campaign consists of an initial anniversary email followed by an SMS reminder intended for customers who have not redeemed their offer within seven days.

Requirements
Personalization
-
Personalize anniversary email subject lines and greetings using customer first names.
-
Format customer names with proper capitalization.
-
Display fallback messaging when the customer's first name is missing.
-
Retrieve customer purchase history, including total yearly spend and average basket size.
-
Assign personalized anniversary discounts ranging from 10% to 30% based on purchasing behaviour.
-
Personalize both email and SMS communications using the customer's assigned discount.
Conditional Messaging
-
Display different email subject lines depending on whether the customer's first name is available.
-
Apply fallback greetings when customer names are missing.
-
Use nested IF, ELSEIF, and ELSE statements to determine discount percentages based on total yearly spend and average basket size.
-
Display different anniversary email messages based on average basket size.
-
Customize SMS reminder messaging based on the customer's purchasing behaviour.
-
Support an SMS reminder for customers who have not redeemed their anniversary offer within seven days.
Data Transformation
-
Clean and capitalize customer names using Trim() and ProperCase().
-
Retrieve customer spending information from the MarketingCustomerView Data Extension using Lookup().
-
Evaluate total yearly spend and average basket size to calculate the appropriate discount.
-
Assign a unique discount reference corresponding to each discount tier.
-
Generate personalized email redemption URLs using Concat().
-
Generate shortened SMS redemption links using the assigned discount reference.
Dynamic Content
-
Dynamically display the anniversary discount assigned to each customer.
-
Insert personalized anniversary messaging based on average basket size.
-
Display customer-specific discount references and redemption links.
-
Generate dynamic email content using AMPscript personalization expressions.
-
Display personalized SMS reminders containing the customer's name, discount percentage, and shortened redemption link.
-
Maintain consistent discount offers across email and SMS communications.
AMPscript Features
-
Personalization
-
Conditional Messaging (IF, ELSEIF, ELSE, ENDIF)
-
Data Transformation
-
Data Extension Lookups (Lookup())
-
Name Formatting (Trim(), ProperCase())
-
Nested Conditional Statements
-
Discount Tier Calculations
-
Dynamic Email and SMS Messaging
-
Dynamic URL Generation (Concat())
-
Email Link Handling (RedirectTo())
-
Fallback Logic for Missing Customer Names
Project Walkthrough
Data Extensions
Add paragraph text. Click “Edit Text” to update the font, size and more. To change and reuse text themes, go to Site Styles.
Two Data Extensions support the campaign by storing customer information and the spending data used to determine personalized anniversary discounts.
1. Anniversary_Audience
Stores the customer information used for the anniversary email and SMS communications.

2. MarketingCustomerView
Stores customer profiles and purchasing information used to determine discount eligibility and personalized messaging.

The CustomerID field connects the two Data Extensions, allowing AMPscript to retrieve customer spending information for personalization.

Email Template and Result
1. Anniversary Email
Timing: Customer's first anniversary
The anniversary email celebrates the customer's loyalty with a personalized discount ranging from 10% to 30%, based on their total yearly spend and average basket size.
The personalized content includes:
-
Customer's first name and a dynamic subject line.
-
Personalized anniversary messaging based on purchasing behaviour.
-
A discount percentage and reference code determined by spending data.
-
A dynamic link to redeem the anniversary offer.
-
Fallback messaging for missing customer names.
Preview and Test

Result: The email successfully displays personalized discounts of 20% for John, 30% for Sarah, and 10% for the customer with a missing first name. AMPscript applies name formatting, conditional messaging, and dynamic redemption links based on individual customer data.
2. Anniversary SMS Reminder
Timing: 7 days after the anniversary email, for customers who have not redeemed their offer (proposed journey condition).
The SMS reminder reinforces the anniversary offer through personalized messaging, encouraging customers to redeem their discount.
The personalized content includes:
-
Customer's formatted first name with fallback handling.
-
The same discount percentage assigned in the anniversary email.
-
Dynamic messaging based on average basket size.
-
A shortened redemption link containing the assigned discount reference.
Preview and Test

Result: The SMS previews display the correct customer names, discount percentages, and redemption links. The same AMPscript discount logic is applied across email and SMS, ensuring consistent promotional offers for each customer.

Have a campaign, role, or idea in mind?
I’d love to hear from you.
