Skip to main content
Contributor IV
March 14, 2024
Solved

Can you create unique codes for individual subscribers?

  • March 14, 2024
  • 12 replies
  • 1072 views

Hi there, is there any way you can generate unique codes for individual subscribers? For example, unique birthday codes that run in the flow? 

    This topic has been closed for replies.
    Best answer by bluesnapper

    Hi @Browns 

    Yes. The dynamic coupon codes are a pool Klaviyo draws from when sending an email. With the Shopify integration, Klaviyo ensures new ones are generated as needed once you’ve created the coupon.

    As an example, you create a dynamic code called ‘birthday’ so in your flow email you include the tag:

    {% coupon_code 'birthday' %}

    When the email is sent, Klaviyo inserts a unique discount code for that recipient into the email. For every email you send with that tag, the recipient will always receive the same unique code.

    Whether a contact receives that birthday email with the code, that’s down to your flow conditions.

    Does that answer your question?

    Regards

    Andy

    12 replies

    stephen.trumble
    Klaviyo Alum
    March 14, 2024

    Hey @Browns 

    Thanks for asking the community for help with your question.

    Can you provide a little more clarity on what you are trying to accomplish? What integration are you using with Klaviyo? What kind of code are you looking for, a coupon code? Knowing more of what you are trying to do will help guide you in the right direction!

    -Stephen
    BrownsAuthor
    Contributor IV
    March 14, 2024

    Thank you for your reply. 

     

    We are using Shopify. We have sent up a flow for Birthday’s however, we would like to send unique codes to each individual subscriber on their Birthday.

     

    Thanks,

    Browns. 

    stephen.trumble
    Klaviyo Alum
    March 14, 2024

    Hey @Browns 

    Thanks for the clarification!

    We have a Help Center article specifically on creating unique coupon codes for Shopify. Check it out and let us know if you still have questions!

    -Stephen
    BrownsAuthor
    Contributor IV
    March 14, 2024

    Thank you for this. This article doesn’t confirm whether you can auto generate unique codes every time a subscribers meets the criteria, i.e. a birthday flow. Sorry if I have missed it and it is in the article. Please can you confirm. 

    Thank you.

    bluesnapper
    Partner
    Champion & Partner
    March 14, 2024

    Hi @Browns 

    Yes. The dynamic coupon codes are a pool Klaviyo draws from when sending an email. With the Shopify integration, Klaviyo ensures new ones are generated as needed once you’ve created the coupon.

    As an example, you create a dynamic code called ‘birthday’ so in your flow email you include the tag:

    {% coupon_code 'birthday' %}

    When the email is sent, Klaviyo inserts a unique discount code for that recipient into the email. For every email you send with that tag, the recipient will always receive the same unique code.

    Whether a contact receives that birthday email with the code, that’s down to your flow conditions.

    Does that answer your question?

    Regards

    Andy

    https://bluesnapper.com - Klaviyo Champion '24 & Partner
    BrownsAuthor
    Contributor IV
    April 2, 2024

    Hi @bluesnapper

     

    Thank you very much for this. How do I set it so that only 15% discount applies and to only a certain collection I have created in my Shopify?

     

    Thank you, 

    Ebony 

    bluesnapper
    Partner
    Champion & Partner
    April 2, 2024

    Hi @Browns 

    If you want to do this as a dynamic coupon (unique code for each recipient), head to https://www.klaviyo.com/coupons/new/shopify and create a new coupon.

    Ensure you check Specific Collections during creation. A drop-down list of collections pulled from Shopify will appear for selection, Choose the collection to which you want the discount to apply (example below).

    If you name the coupon birthday for example, then include {% coupon_code 'birthday' %} in any emails that you want a unique discount code from this coupon to be inserted.

    Does that answer your question?

    Regards

    Andy

     

    https://bluesnapper.com - Klaviyo Champion '24 & Partner
    BrownsAuthor
    Contributor IV
    April 2, 2024

    Hi again @bluesnapper , 

    Just on this topic, how do I set an expiry date? For example, the code expires 30 days after receipt. 

    Thank you, 

    Ebony

    bluesnapper
    Partner
    Champion & Partner
    April 2, 2024

    Hi @Browns 

    In my screenshot above, set Expiration to ‘After a certain number of days/hours’ to 30 days. That will set the coupon to expire automatically 30-days after send time. 

    Regards

    Andy

    https://bluesnapper.com - Klaviyo Champion '24 & Partner
    BrownsAuthor
    Contributor IV
    April 2, 2024

    Thank you Andy, you have been very helpful.