Shopify discount codes can be added in an email by inserting a merge tag. These work well in an abandoned cart or winback email journey.

Connect Your Shopify Store

  1. Click Settings in the bottom left corner > Connect Data Sources
  2. Type your store name in the Shopify field and click Connect

Add Discount Code In Email

Click the Insert Merge Tag button in the bottom row of the template editor.

Under Categories, select Shopify Discount Merge Tags, hover over and click to copy, then paste in your email. Customize SHOPIFY-DISCOUNT-CODE with one of your pre-existing coupon codes.

Unique Discount Code
{{ discount.unique_code|prefix_code:'SHOPIFY-DISCOUNT-CODE' }}
Inserts a unique coupon code associated with a Shopify coupon code.

Unique Discount Code URL

{{ discount.unique_code|prefix_code:'SHOPIFY-DISCOUNT-CODE' }}
Inserts the URL to a unique coupon code associated with a Shopify coupon code. Can be used to link text, a button, or an image.

See a full list of merge tags you can include in your emails for better personalization.

Did this answer your question?