If you're offering a discount to customers who decide to head back to your website and complete a purchase, having this discount already applied when they get there makes it even easier for them to take advantage of the discount and buy quickly.
Create a Discount Code in Shopify
First, in Shopify, create a percentage discount code or a monetary discount code according to the type of promotion you want to offer.
The code you create will need to be inserted as a parameter in to a link or button in your emails. After you create this code, make sure to have it handy as you move on to update your email template.
Add a Discount Code to a Template
To achieve this functionality, you will need to add a parameter to a link or button. When your customer clicks the button they will be taken to the link and the discount will be automatically applied to their next cart.
You can only add one discount code per email. You can use the same code in multiple places, but you cannot use multiple codes.
You can add a discount to any link within your email template. For example, if you're offering a coupon code inside of a button, you can add a link that points back to your home page, and automatically apply's the discount to your customer's cart. This is the parameter you will be adding to the end of your link:
Where you see your_code, make sure to replace with the discount code you created in Shopify. Here is an example of a link with a discount code appended to the end:
You can also use a dynamic coupon code. First, follow the steps to create a dynamic coupon in your Klaviyo account. Then, replace "your_code" with the tag for your dynamic coupon code.
If you test this and see that the updated link is not properly applying your discount code, you likely need to adjust the added parameter so that it starts with "&" instead of "?". Change your parameter to the following and it should work -- if not, contact our Success Team.