How to sync Shopify account registration customers to a list
You will learn
Learn how to sync subscribers collected via a Shopify account registration form to a Klaviyo list. If you want to use a Klaviyo form instead, read about getting started with sign-up forms.
To achieve this goal, you will need to add an Accepts Marketing checkbox to your registration form.
Before you begin
The code below applies to Shopify’s legacy customer accounts, which Shopify has deprecated. If your store uses the newer customer accounts, follow Shopify’s guidance on collecting email subscribers at sign-in instead.
If you have not already, read our article Getting started with Shopify for step-by-step instructions on integrating, before continuing with this article.
- In Klaviyo, select Integrations, then select Shopify.
- Under Sync settings, select the From Shopify tab and check Sync your Shopify email subscribers to Klaviyo.
- Under Select a list, choose the list for customers who subscribe through your account registration form.
- Click Update Settings. Complete any authorization prompts in Shopify, then click Update Integration in Klaviyo when prompted.

Enable "Accepts Marketing" on your Shopify registration form
Find the customer registration form in your Shopify theme. The file varies by theme; follow Shopify’s guidance on reviewing legacy customer account code to locate it.
- Add the following code inside the existing
{% form 'create_customer' %}and{% endform %}tags to add an Accepts Marketing checkbox:
<div id="accepts_marketing_checkbox">
<input type="checkbox" name="customer[accepts_marketing]" value="true" id="marketing">
<label for="marketing">Yes! Sign me up to receive emails about news and offers.</label>
</div>- You will need to customize the label text with the label you would like to use on your form. Save your theme changes before testing.
Customers will have to check this box in order to be added to your list.
Note that if you have double opt-in enabled in Shopify, the customer will first need to confirm their subscription via Shopify's double opt-in email before being added to the list. If you have double opt-in enabled for the specified list in Klaviyo, the customer will need to confirm their subscription via Klaviyo's double opt-in email before they are added to the list.
Test the form using a new email address. Select your email marketing checkbox, submit the registration form, and complete any required double opt-in confirmations. Then check that the test profile has been added to your selected list in Klaviyo.
Troubleshooting
If you are uncomfortable with editing and adding code, and require developer assistance, we recommend reaching out to a Klaviyo partner agency.
Outcome
You're now syncing Shopify account registration customers to a Klaviyo list.
Additional resources
- Getting started with Shopify
Learn how to integrate Klaviyo with Shopify in order to bring your customer profile and order data into Klaviyo and reach customers with targeted messaging. Additionally, enable Klaviyo onsite tracking and sign-up forms, and sync data from Klaviyo to Shopify.
- How to sync Shopify email subscribers to a Klaviyo list
Learn how to sync Shopify email subscribers to a Klaviyo list, how the sync works, and best practices. Additionally, learn who gets added to your list and why.