Your CTA should redirect to a specific URL on your Shopify store to apply the discount code. The format of the URL is:

https://example.com/discount/YOUR_DISCOUNT_CODE

You must replace example.com by your shop domain, and YOUR_DISCOUNT_CODE by the discount code, you want to apply.

You can use the appropriate URL as CTA destination:

When the CTA is clicked, Shopify will store the discount code internally and redirect the visitor to your store's homepage.

Choose a custom redirection.

If you want Shopify to redirect the visitor to another page, you can indicate the redirection path with the redirect parameter, as following:

https://example.com/discount/YOUR_DISCOUNT_CODE?redirect=/collections/all

With this example, Shopify will redirect the visitor to https://example.com/collections/all after having memorized the discount code.

Did this answer your question?