In this section:


Dynamic Promo Code is a super useful feature through which you can improve your conversion rate by applying it to each of your customers or users who browse your website, add products to the cart or view a specific group of products (categories, brands, etc.) 

With a dynamic promo code, you can proactively reach out to those users and encourage them to make a purchase from your store. By giving them a discount, you will increase their interest and desire to buy the products they have been browsing.

The dynamic code has a specific conditions and it will be applicable only to those customers who fall into a specific segment. This way you will be able to send relevant messages (discounts) to the right customers.


This feature is available only for merchants on Enterprise and Enterprise Plus plans.

Creating a specific segment

In order to create a dynamic promo code, first, you should work with segments that are related to products/categories. 


To create such a segment go to Marketing section > Campaigns > Segments and press the button "Create segment" in the upper right corner of your screen.  


The segment can be for users who browsed products more than one time. It should look like this: Subscriber > View > View product (select a specific product/s or choose "any" product) > View products n times (more than 1).


If "Grouped by record" option is enabled this will group the product variants into one record. If a user has viewed different variants of a product this event will be saved as a single record.


Thus created, this segment will be able to work with the dynamic promo code as it is associated with certain products. When you create segments that are related to products, categories or brands, you can use the "Dynamic Promo Code" functionality.

Creating a campaign to use a dynamic promo code

Go to Marketing > Campaigns > Campaigns and choose Automated campaign.

For more information about automated campaigns, click here.


1.  First, name the campaign. It is for internal use only. 

  • Repeat the campaign for customers that got into it more than once - turn this option on to notify your customers every time someone lands on a segment you've created. So the campaign will be sent every time a user browses certain products/categories/brands, not just the first time. 
  • Execute the campaign for existing subscribers in the segment - if you enable this option, your campaign will be sent to the existing subscribers in the segment. That is, if when creating a segment, 100 subscribers from your store are automatically reached, they will not be reached by this campaign if you turn off this option. If you want it to be sent to everyone - existing subscribers and those who will later join the segment, leave the option on. It is enabled by default.   

2. In the second step, select "Gets in segment" and select the segment from the drop-down menu, then, you will see the current number of customers that meet these criteria. This way, every time a customer falls into the selected segment, the campaign will start automatically.  

3. In the third section, when building your campaign logic, the action type can be sending a message via email, SMS, Viber or web push notification, setting a customer group or tags.


In this case, we'll choose email as the action type as soon as a customer falls into the segment.

4. You then need to choose a template from our extensive database, use one you've saved, or create a completely new one. For your convenience here will select a new template and with a mouseover, through the module, we will put a Heading, the triggered products that are applicable for this discount, and will copy the {$dynamic_discount_code} from the legend with the variables and paste it in the message, so it can be visible for your customers. 

The dynamic promo codes aren't links, so do not put them into buttons, just paste them into the message.


The triggered products are those from the conditions of the segment we created earlier, the products that users have browsed more than once. See more about triggered products in this article.


Right after you paste the variable in the email message, a new section "Dynamic discount code" will appear.

  • Here, you can choose whether the discount code to be applicable even if the cart contains discounted products or to apply it to the product base price if the discount of the promo code is higher.
  • Discount limits - choose how many times a single code can be used.
  • Discount type - determined what the actual discount will be - amount/%/free shipping.
This settings will be applicable only to those customers who are into the segment "Subscriber view products more than 1 time".


When you are done with the settings, hit the "Save" button, save the step and start the campaign from the corresponding button in the upper right corner of the screen. 

Soon, your campaign will reach all users who get into the segment. Everyone will receive their promo code via email which can be redeemed for the specific products they previously viewed that triggered the campaign. If the customers add an additional product to their cart other than the products they see in their email, the discount will only be applied to the one product that is in the email (the triggered product).