Looking to send personalized coupon codes to your customers through Klaviyo? You can easily export customer-specific codes from CommentSold and upload them into Klaviyo to use in targeted email or SMS campaigns.
Uploading coupon codes to Klaviyo
- Download the coupon code CSV from the Coupons tab in CommentSold.
- Log into Klaviyo and navigate to Lists & Segments > Select Create List.
- Name your list based on the base coupon and select Create List.
- Within the new list, go to Settings > Consent > set opt-in process to Single opt-in, then click Save.
- In the same list, go to Imports > select Import Contacts.
- Upload the CSV file you downloaded from CommentSold.
- For your first import:
- Check the boxes for email, code, and expiresAt.
- Optionally check customer ID.
- Use the drop-downs to Select or Create New Field for each column.
- In the pop-up, name each profile property (or use the default), then select Create.
- Once all fields are mapped, select Next.
- On the next screen, select No to avoid subscribing users to marketing.
- Click Import.
- Note: Duplicate profiles will be skipped. Only the first code listed for each email will be imported.
Using your newly uploaded coupon codes within email/SMS campaigns
- Go to Templates in Klaviyo.
- Choose a template or select Create to start from scratch.
- Drag and drop a Text Box into your email design.
- In the text box, add your intro text—e.g., “Use code:”
- With the text box still selected, click Personalization in the top right.
- Search for the profile property you used for the coupon code (e.g., "code").
- Under Custom, select the code property.
- In the next screen, leave the default text blank (we recommend not sending to users without a code).Select Insert.
- To preview the code:
- Exit the text box.
- Click Preview & Test in the top right.
- Under Preview data source, search a profile with a known coupon code.
- To add the coupon’s expiration date:
- Repeat the same steps but use the "expiresAt" property.
- Or insert this directly: {{ person|lookup:"expiresAt"|default:'' }}