Home > Shopify Development > Get consent for promotional emails during customer registration

How to get consent for promotional emails during customer registration in Shopify

Sam Nguyen
Sam Updated: March 20, 2024

Share:

Drive 20-40% of your revenue with Avada
avada email marketing

Do you know that as an online store administrator, you are completely able to insert a checkbox to your customer account creation form, which can allow the customers to indicate whether they want to subscribe to newsletters, promotional emails, or any other marketing material from your brand? Actually, you can let your customers consent to promotional emails not only when they sign up but also during the checkout process.

However, please keep reading our instructional writing on How to get consent for promotional emails during customer registration to know more deeply about one this topic.

Step 1:

Go to Online Store > Themes from your Shopify Admin panel.

Step 2:

Choose the theme that you need to adjust and click Actions > Edit code.

How to get consent for promotional email in shopify

Step 3:

In the Templates directory, please tap customers/register.liquid.

How to get consent for promotional email in shopify

Step 4:

Search the code which contains the password form field. Please note that the code will look like this:



<label for="CreatePassword" class="label--hidden">{{ 'customer.register.password' | t }}</label>
<input type="password" name="customer[password]" id="CreatePassword" class="input-full {% if form.errors contains 'password' %} input--error{% endif %}" placeholder="{{ 'customer.register.password' | t }}">


Step 5:

Next, insert the code given right below the code that includes the password field:

<div>
  <input type="hidden" name="customer[accepts_marketing]" value="" />
  <input type="checkbox" name="customer[accepts_marketing]" checked="checked" />
  Subscribe to stay updated with new products and offers!
</div>

Step 6:

Tap Save.

Step 7:

You are allowed to see your customer account creation form by visiting the URL http://your-shop-url/account/register.

In case a customer create an account with the promotional checkbox that is already checked, then the customer page of her/him in your admin will display an Accepts email marketing message like this:

Accepts email marketing

In case a customer creates an account with the promotional checkbox which is not checked, then the customer page of her/him in your admin will look similar to this:

promotional checkbox

Conclusion

Let your potential purchasers indicate whether they want to subscribe to newsletters, promotional emails, or any other marketing material from your store now!


Sam Nguyen is the CEO and founder of Avada Commerce, an e-commerce solution provider headquartered in Singapore. He is an expert on the Shopify e-commerce platform for online stores and retail point-of-sale systems. Sam loves talking about e-commerce and he aims to help over a million online businesses grow and thrive.

Stay in the know

Get special offers on the latest news from AVADA.