One of the easiest ways to get more email subscribers and increase your WooCommerce sales is by sending new subscribers a unique coupon code.
There is one problem though.
Manually creating a new coupon code and sending it to new subscribers is tiresome. And wastes time for both you and your subscribers. That’s why it makes sense to automate the process.
In this tutorial, I’ll show you how to set-up such a system and automate it.
You also need to install the Coupon Codes add-on for Noptin. This addon will automatically create new coupon codes when someone subscribes to your newsletter. You can then include the coupon code in your double opt-in or welcome emails using the
[[noptin_coupon_code]] merge tag.
Step 1: Create a WooCommerce Coupon Template
We’ll start by creating a WooCommerce coupon template.
A coupon template is just a normal WooCommerce coupon that Noptin uses when creating new coupon codes. All the properties of this template will be copied to the auto-generated coupon codes.
This includes the coupon type, amount, usage restrictions and usage limits. The expiry date and allowed emails is ignored.
To create a coupon template:-
First, open your WordPress admin dashboard then go to Marketing > Coupons > Add Coupon to create a new WooCommerce coupon code.
Next, fill in the fields as if you were creating a normal WooCommerce coupon code. After you’re done, click on the publish button to save your discount code.
Finally, copy the coupon code. This is needed for the next step. In the above example, the coupon code is
Step 2: Add the Template to Noptin
Noptin needs to know about your coupon template before it can create unique WooCommerce coupon codes for new email subscribers.
To add your coupon template to Noptin:-
First, open your WordPress admin dashboard then click on Noptin > Settings> Coupon Codes to open the coupon code settings.
Next, enter the coupon code that you created in the previous step into the “WooCommerce Template” input box. In the above example, the coupon code is
You can also set the coupon expiry (in seconds). When a new unique coupon code is created, it will expire after the number of seconds that you specify here. You can leave blank if you want the coupon code to last for a lifetime.
Finally, click on the “Save Changes” button to save your changes.
From now on, whenever someone subscribes to your newsletter, Noptin will create a unique WooCommerce coupon code that they can use when purchasing from you.
In the next step, we’ll send them their new coupon code.
Step 3: Automatically Send New Email Subscribers their New WooCommerce Coupon Code
Now that we’re automatically creating new coupon codes for new subscribers, let’s set up an automation rule that automatically sends them an email containing their created coupon codes.
To do this:-
First, open your WordPress admin dashboard then click on Noptin > Automation Rules> Add New to create a new automation rule.
Next, set “New Subscriber” as the trigger and “Send Email” as the action then click on the continue button.
Noptin will create the automation rule and open a new page that allows you to configure the automation rule.
Here you can limit the automation rule to people who subscribe via a given form instead of sending the email to all new subscribers.
You can also set the email’s:-
After you’re done editing, click on the “Save Changes” button to save your changes.
From now on, when someone subscribes to your newsletter, Noptin will automatically generate and send them a unique WooCommerce coupon code.
Below is an example email.