Shopify Tips

Get Consent for Promotional Emails

Get Consent for Promotional Emails

Objective:

Ask for customer’s consent for promotional emails on the customer registration form.

Benefit:

We add a simple checkbox on the customer registration or account creation form to allow customers to opt-in for receiving company newsletters, promotional emails, brochures, case studies, and marketing collaterals. This ensures that you are compliant with email marketing regulations and helps build a list of engaged subscribers.

How to Add a Promotional Emails Consent Checkbox:

Step 1: Access Your Shopify Admin

Log in to your Shopify admin panel. From the home screen, navigate to Online Store and then click Themes.

Step 2: Edit Code

In the Themes section, find the theme you're using and click Actions, then select Edit code from the dropdown menu. This action will open the theme's code editor.

Step 3: Add HTML for the Consent Checkbox

In the code editor, locate the file for your customer registration form. This is typically found in templates/customers/register.liquid. Add the following HTML code to include a consent checkbox:

Step 4: Modify Customer Data to Save Consent

To save the consent information, you need to modify the customer account creation process. Locate the customers/register.liquid file and update the form submission logic to include the consent checkbox value. This may require custom backend handling or the use of an app that supports additional customer attributes.

Step 5: Add Schema for Customization

In the config/settings_schema.json file, add the following settings to allow customization of the consent text:

Step 6: Update HTML with Customizable Text

Modify the HTML code for the consent checkbox to use the customizable text from the schema settings. Update customers/register.liquid:

Step 7: Save Your Changes

Once you have made all the changes, click the Save button at the top right of the code editor.

Step 8: Verify the Functionality

Test the registration form to ensure the checkbox appears and functions correctly. Ensure that the consent data is saved and can be accessed as needed.

Conclusion

Adding a consent checkbox for promotional emails on the customer registration form ensures compliance with email marketing regulations and helps build a list of engaged subscribers. By implementing this feature, you can enhance customer trust and improve the effectiveness of your email marketing campaigns.

Previous
Hide 'Add To Cart' Button And Add 'Contact For Price'
Next
Functionality Store Review