The standard Unique Codes feature is designed to attach only one code preset (pool) to a single message. To send multiple distinct codes (e.g., one for a discount and one for free delivery) to the same user in a single notification, you must store the codes as Tags (personalized user data) rather than using the dynamic voucher pool.
Here is how to set this up:
Step 1: Create Tags
Go to Audience → Tags and create new String tags to hold the code values.
* Example Tag Name: Campaign_Code_1
* Example Tag Name: Campaign_Code_2
Step 2: Assign the Codes (CSV Upload)
Prepare a CSV file where you pre-assign the specific codes to your users. This ensures you have full control over which user receives which pair of codes.
CSV Format Example:
"User ID", "Campaign_Code_1", "Campaign_Code_2"
"user_123", "FOOD-ABC", "DELIVERY-XYZ"
"user_456", "FOOD-DEF", "DELIVERY-UVW"
Upload this file via Audience → Import Users.
Step 3: Insert Tags into the Message
In your Push or Email template, insert the tag placeholders corresponding to the tags you created.
Example: "Here is your surprise! Use code %CampaignCode1% for the meal and %CampaignCode2% for free delivery."
When the message is sent, the system will replace the placeholders with the specific code values uploaded for each user.
Comments
0 comments
Please sign in to leave a comment.