Getting started with Shopify

Estimated 6 minute read
|
Updated Dec 20, 2024, 10:36 AM EST
You will learn

You will learn

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.

Before you begin

Before you begin

If you are migrating from another ESP that is currently integrated with your Shopify store, make sure to disconnect your prior ESP from Shopify before integrating Shopify with Klaviyo. Failure to disconnect your old integration could result in double opt-in emails sending to your existing subscriber list. 

Video help

Video help

Learn how to integrate with Shopify using our step-by-step video!

How to integrate

How to integrate

  1. In Klaviyo, select your account name in the lower left. Then, click Integrations > Add integrations.
  2. Search for Shopify and click the card, then click Install.
  3. Paste the URL of your Shopify store in the box. Make sure that it is in the format mystore.myshopify.com
  4. Click Connect to Shopify. This will take you to your Shopify account. You may be prompted to log in to Shopify.
  5. After being brought into Shopify, review the permissions and click Install app to be redirected to Klaviyo.
  6. Confirm the integration by clicking Integrate, which will bring you back to the integration settings page. 
  7. You will be prompted to configure onsite tracking after connecting to Shopify, so this section will not yet be available.
  8. Check the Sync your Shopify email subscribers to Klaviyo box to automatically add all future customers who accept email marketing at checkout, or sign up to any Shopify sign-up form, to the list you select from the dropdown.
  9. If you selected the prior setting: Select a list to add email subscribers to from the dropdown, such as your Email List.
  10. Check the Sync your Shopify SMS subscribers to Klaviyo box to automatically add all customers who accept SMS marketing at checkout to the list you select from the dropdown. You can always set up SMS and edit this setting later. Note that consent will only sync to Klaviyo if the person is subscribing to SMS in Shopify for the first time.
  11. If you selected the prior setting: Select a list to add SMS subscribers to from the dropdown. We recommend using separate lists for email and SMS subscribers.
  12. Check the setting Sync profiles and profile data from Klaviyo to Shopify if you want to sync any data. We recommend syncing all profiles and all types of data to Shopify. If you checked this setting, do the following:
    1. Choose whether to sync updates for either all Klaviyo profiles, or only for profiles that already exist in Shopify.
      If you choose all profiles, Klaviyo will create new customers in Shopify for all profiles (existing and new) created in Klaviyo. This includes profiles synced from other Klaviyo integrations, or added through list imports, even if they have not interacted with your Shopify store.
    2. Choose which profile data you’d like to sync: Name, email address, phone number, Email subscription status, SMS subscription status (if you have SMS enabled), email events, SMS events, and custom profile properties. If you don’t yet have any custom properties in your Klaviyo account, you will see an option to sync all properties. If you have existing custom profile properties in your Klaviyo account, you can configure which properties you want synced.
  13. After configuring your settings, click Complete setup.
  14. A green success callout will indicate that your data is syncing with Klaviyo.

It is not recommended to update custom profile properties in Klaviyo that were synced via Shopify (such as Shopify tags), since these will be overwritten the next time your integration syncs.

Next, you’ll enable Klaviyo onsite tracking, which consists of multiple events. Using these tracking events can help you engage identifiable browsers of your store. Additionally, enabling tracking will allow you to use Klaviyo sign-up forms. Please note that enabling the sync of Shopify data to Klaviyo, and Klaviyo data to Shopify (steps 8 through 12 above) will help you see more onsite tracking events in your account due to more profiles syncing. 

Based on your Customer Privacy settings in Shopify, Klaviyo may not track onsite events for visitors to your Shopify store in the EU, EEA, UK and Switzerland, unless they have provided consent.

  1. In the Onsite tracking section, check Track behavioral events to enable tracking for Viewed Collection, Submitted Search, and Added to Cart. Two other events, Viewed Product and Active on Site, are enabled by default and they will start tracking once you enable the app embed.
  2. You’ll see a message calling out that your Klaviyo app embed is turned off. Click Turn on to be brought to Shopify.
  3. If prompted, sign in to Shopify using the account you integrated with Klaviyo.
  4. You’ll be brought to your theme setting’s App embeds tab. Make sure the Klaviyo app embed is toggled on.
  5. Click Save in your theme editor.
  6. Navigate back to your Shopify integration settings page in Klaviyo, and refresh the page if needed. You should see a green banner indicating that your app embed is now enabled.

You’ve now integrated Klaviyo with Shopify and set up onsite tracking. 

If you need to update these settings, you can return to the integration settings page by clicking your account name in the lower left corner, clicking Integrations, and selecting Shopify. Then, make your changes and click Update Settings.

Note that your product catalog in Klaviyo will autopopulate with the myshopify.com URL. Contact Klaviyo support to request an update to this setting.

The URL can be updated from this:

https://[INSTANCE].myshopify.com/products/[PRODUCT_HANDLE]

To this:

https://[STOREFRONT_URL]/products/[PRODUCT_HANDLE]

Troubleshooting

Troubleshooting

Having trouble resolving errors with your Shopify integration? Check out our article Troubleshooting your Shopify integration

Are you trying to understand more about the behavior of Klaviyo’s Shopify integration?

Outcome

Outcome

You've now integrated Shopify with Klaviyo, and enabled Klaviyo onsite tracking and sign-up forms for your Shopify store.

Additional resources

Additional resources

Was this article helpful?
Use this form only for article feedback. Learn how to contact support.

Explore more from Klaviyo

Community
Connect with peers, partners, and Klaviyo experts to find inspiration, share insights, and get answers to all of your questions.
Live training
Join a live session with Klaviyo experts to learn about best practices, how to set up key features, and more.
Support

Access support through your account.

Email support (free trial and paid accounts) Available 24/7

Chat/virtual assistance
Availability varies by location and plan type