Skip to main content
Contributor I
February 3, 2026
Solved

Automatically apply unique coupon codes through coupon link address

Hi all, 

I’m creating a win back flow where I’ll be using unique coupon codes. Everything is pretty clear but now Klaviyo asks me for a link address behind the coupon block. If I just put my collection page link behind the button, which would be https://www.myshop.com/collections/meals, will the coupon then automatically be applied, or should I add a discount redirect to this link still? What should I have exactly as a link address if this is the case?

The prefix of the unique coupon code is welcomeback and my shop is in Shopify.

Kind regards!

    whereisjad
    Expert Problem Solver IV
    February 3, 2026

    ​@thuysvers you will find solution to your problem in this article

    In the email template you could include Django logic like this:

    {{ event.extra.checkout_url }}&discount={% coupon_code 'CouponName' %}

    or

    {{ organization.url|trim_slash }}/discount/CouponName?redirect={{ event.URL|cut:"https://YourSite.com" }}

    — Jad A | Klaviyo + Shopify + API Integrations Specialist • 7+ Years' Experience Helping with new setups, seamless integrations, and API connections—happy to connect. http://ja-technical-consulting.xyz/

    1 reply

    whereisjad
    Expert Problem Solver IV
    Expert Problem Solver IV
    February 3, 2026

    ​@thuysvers you will find solution to your problem in this article

    In the email template you could include Django logic like this:

    {{ event.extra.checkout_url }}&discount={% coupon_code 'CouponName' %}

    or

    {{ organization.url|trim_slash }}/discount/CouponName?redirect={{ event.URL|cut:"https://YourSite.com" }}

    — Jad A | Klaviyo + Shopify + API Integrations Specialist • 7+ Years' Experience Helping with new setups, seamless integrations, and API connections—happy to connect. http://ja-technical-consulting.xyz/