How to create Shopify Coupon Codes in D·engage

How to create Shopify Coupon Codes in D·engage

You can create generic as well as unique coupon codes in D·engage platform for your Shopify Store. These codes can be inserted into the email and SMS.
Shopify enforces a limit of 20 million unique discount codes for each Shopify store. If you reach this limit, you will need to delete unique codes from your Shopify admin before D·engage can resume generating new unique codes. D·engage coupon codes are currently limited to nonrecurring campaigns.
Before getting started make sure that you’ve integrated with Shopify

Create Your Coupon Code in D·engage

  1. Navigate to the Coupon tab in D·engage, and click Create Shopify Coupon in the upper right-hand corner.
  2. To create a new coupon click on the “Add New Coupon” button at the top right corner. A form will appear.

For each coupon, set the following properties in  D·engage:

  1. Prefix
    This is how you can identify the coupon in  D·engage (e.g., WELCOME). Note that you will need to use this exact name when selecting the coupon in a segment. You can also generate  a random code from the “Generate Code” button
  • Discount type
    Choose whether the coupon is a fixed amount off, a percentage off, or free shipping.
    • Free shipping 
      For free shipping coupons, you can limit the coupon so it only applies to certain shipping rates, or only to specific countries.      
    • Fixed amount and percentage 
      For coupons that offer a fixed amount or percentage off, you can specify that the coupon only applies to certain products.    

  1. Applies to
    By default coupons is applied to “All products” but you can also pick whether customers can apply the coupon to the entire order, or specific products.
Once the product is added , it will be displayed in the list. You can also delete selected product from delete button 

  • Require minimum purchase 
    Next, you can give Minimum requirements as Minimum purchase amount (TRY) or Minimum quantity of items. If you don't have any specific requirements, choose “None”. For “Minimum purchase amount (TRY), give the exact amount on which you want to apply discount                                                                                                                                 
  • Coupon Code Type
    If you select the “Unique Coupon Code” option, D·engage will generate a random code for each person, with the specified prefix included at the beginning of every code. For “General Coupon Code”, all the users in the campaign will be able to utilize the same coupon.                                                                                                                                                                                                

  • Customer Eligibility 
    This option allows you to pick the contacts to send the coupons. You can either select "Everyone" from you Master_Contact table or choose "Specific Customers".                                                                                                                                                              

    • Specific Customers
      You can create a basic segment for specific customers and select that segment to create coupons for those customers. A list of users available in that segment will be displayed to verify.                                                                                             

  • Usage Limit
    The next step is to specify the usage limits for coupon codes. You can limit it to one use per customer or the total number of times a code can be used.                                                                                                                                                                                   
  1. Activation Date
    This is the date the coupon becomes active — you can choose a specific date or select an option where generated coupon codes activate at send time. Please note that dates are set in the UTC time zone, so you may see a different activation date in Shopify.                                                                                                                                                                                 

  • After you have filled the form, hit the save button and your coupon will be saved. It will take around 2 minutes for the coupons to be displayed in the Coupon List. 

Using Your Coupon in a Campaign

Add Code Snippet to Campaign Template

After the codes have been generated, you can include the coupon in your campaign template following these steps. 
  1. Create a code snippet you need to go to the Dynamic Contents section under the Content tab from the left menu bar in the CDMP. 
  2. You can choose between different content types to create snippets accordingly, for example, to create code snippets for emails you can use content type as HTML similarly for SMS you can choose plain text.                                                      
  3. Click on the insert button and select the option "Customization Tags".                                                                                                                          
  4. Select accordian option "Columns From Table", select table "shopify_discount_codes_sendable". After this is done, click on "Code" variable and save.                                                                                                       
    You can design your campaign template and use Code Snippet whenever you want. When the campaign is sent out, this variable will be dynamically replaced with a unique discount code for each recipient.

Create Campaign for Shopify Coupons

You can create a One-time campaigns for sending out the Coupons by following these steps.

Create Segment for Campaign

This is the step where we will assign the Coupons that we which to send in the campaign.

  • In the SQL Query mode, insert the name of the segment, the description, and where this segment will be saved.                  
  • Now enter the “SQL query” under "Write Custom SQL Query” using the following syntax:
    select contact_key, code from shopify_discount_codes_sendable where code ILIKE '%Prefix%'"
    Make sure to use the exact coupon code prefix, including capitalization which was used while creating the coupon. 

  • Hit the “validate and Preview” button.
  • Now click the “calculate” option from “insights”.  You can preview details by clicking the “Contacts” button.
This segment can be used in a One-time campaigns.

    • Related Articles

    • How can I send coupon codes that have been defined to the contacts?

      You can accomplish this in two ways: 1- Within your master_contact table, you can create a new field for your coupon codes. You will then need to update this field with a data import. In your file you should include contact_key and your coupon code ...
    • Shopify Integration

      Shopify D·engage Integration In a matter of minutes, without a single line of code you can connect your Shopify store to your D·engage account. This integration is a one-way sync that sends your product catalog as well as your contact and order data ...
    • D·engage GTM Integration

      There are two different ways for GTM integration. You can create new google tags as well as, you can use existing ones. (a) Using Existing Tags for Sending Events Data In order to use your existing triggers to send data to the D·engage platform you ...
    • How to Use Shopify Coupons in Recurring Campaigns

      You can create generic as well as unique coupon codes in D·engage platform for your Shopify Store and use them in recurring campaigns. In this article, you'll get to know how to send Shopify discount coupons to users through email.  Before getting ...
    • Mixpanel - D·engage Integration

      Mixpanel is a leader in the product analytics space, that provides real-time insights into app/website interactions and leverages brands devise effective marketing strategies according to their customer behavior. D·engage provides an out-of-the-box ...