Integrate with WooCommerce

Last updated at:


This article walks through enabling the WooCommerce integration in your Klaviyo account.

The main steps to integrating with WooCommerce are:

  • Install the Klaviyo WooCommerce plugin
  • Enable the WooCommerce integration

After integrating, you can connect a WooCommerce signup form to a list in your Klaviyo account.

The WooCommerce integration syncs data into Klaviyo once every hour.

Install the Klaviyo WooCommerce Plugin

The Klaviyo WooCommerce Wordpress plugin allows you to add a newsletter signup form to your website, enable website activity tracking, and get data about when people start checkouts and view products so you can send out abandoned cart emails. 

To upload the plugin head over to WooCommerce. Hover over the Plugins tab and click Add New


Search for Klaviyo within Search plugins. When you've located the Klaviyo plugin, click Install Now.


Click Activate to activate the plugin.

After installing and activating the plugin, go to your Klaviyo account and copy your six-character Public API Key / Site ID.

Head back to WordPress and click Plugins.  Scroll down to find the Klaviyo plugin and click Settings.
Fill in the following settings:

  • Public API Key:  Also known as your Site ID. Paste the Public API Key/Site ID you copied above.
  • Add a subscribe to newsletter checkbox on the checkout page: Enable this option so that your customers can opt into communications directly from WooCommerce Checkout. Paste the List ID of your newsletter list here. 
  • Subscribe to newsletter text: This is the label for your opt-in button. Be sure the label text is clear so customers understand that they are opting-in to your newsletter.image9.png
Plugin updates and Release Notes are sent directly to  WordPress store. For more information about installing updates or finding Release Notes read: Release Notes for Klaivyo's WooCommerce Extension

Enable the WooCommerce Integration

To enable the WooCommerce integration, first you'll create an API key and secret within your WooCommerce account. Then, you head over to Klaviyo where you'll paste the API key and secret into your integration settings.  

  1. From your Wordpress dashboard, navigate to WooCommerce > Settings > Advanced > Legacy API. Check the box to Enable the legacy REST API and click Save changes.
  2. Click the REST API tab and click Add Key. Set the Description to "Klaviyo" and set the Permissions to "Read/Write". Then, click Generate API Key.
  3. Notice that a Consumer key and a Consumer secret has been generated.  You'll need both of these values in the next step, so keep this tab open. We're going to copy the Consumer key value and keep this tab open. 
  4. Switch into your Klaviyo account and navigate to the Integrations section. On the All Integrations tab, search for the WooCommerce Integration. Then, click Add Integration.
  5. Enter your integration settings:
    • Store URL: This is the same URL customers use to access your site.
    • WooCommerce Consumer Key:  Paste the consumer key that you created in the previous step.  
    • WooCommerce Consumer Secret: Paste the consumer secret that you created in the previous step.
    • Subscribe new customers to a Klaviyo list: We generally recommend that this option NOT be checked. When selected, this option will sync all new contacts who purchase to a list. Since Woo Commerce doesn't by default provide an "accepts marketing" checkbox, this means that many checkout forms don't have them,  and thus the shopper is not aware that they are opting in. So in most cases, this checkbox should be left unchecked. If you do choose to enable this checkbox, select a list from the dropdown as well. 
      Remember that you are able to add an "accepts marketing" checkbox to your checkout via the WooCommerce plugin by enabling the Add a subscribed to newsletter on the checkout page option in your WooCommerce plugin settings. This setting was covered earlier in the Install the Klaviyo WooCommerce Plugin section of this guide. If you choose to enable this plugin setting, you'll need to specify a list ID as well. Click here to review those instructions.
  6. Click Connect to WooCommerce.

If you're experiencing trouble with this step, double-check that you're using the correct store URL, consumer key, and consumer secret. Note that the store URL is the same URL customers use to access your site.

Your data will begin to sync with Klaviyo in minutes. You've successfully enabled the WooCommerce integration.

Test Your WooCommerce Integration

To test out your integration and plugin, go to your website and follow these instructions:

  1. Add an item to your cart.
  2. Go to the checkout page.
  3. Fill in your email address on the checkout page. 
  4. Go to your activity feed on your dashboard, look for the Started Checkout metric, and you should see your checkout appear.

Sync a WooCommerce Sign Up Form to a Klaviyo List

The last thing you'll want to do is customize your newsletter subscription form so it connects to Klaviyo. Go to Appearance > Widgets from your WordPress Dashboard. Select "Klaviyo: Email Signup" and select the type of subscription you want (depending on your Wordpress theme). If you need help finding your Klaviyo List ID, follow these instructions.

Data Synced into Klaviyo

WooCommerce sends ecommerce events over to Klaviyo which can be viewed in the Metrics tab of your Klaviyo account. Navigate to Metrics and select WooCommerce from the dropdown to view only WooCommerce events. Notice that WooCommerce events are associated with a WooCommerce icon.


  • Started Checkout metric is created when:
    • A customer logs into their account, adds something to their cart, and then views the checkout page.
    • A customer adds something to their cart, views the checkout page, and enters a billing address.
  • Placed Order metric is created when a customer completes the checkout process and creates an order in WooCommerce.
  • Ordered Product metric is created when a customer places an order for a specific item. If a customer orders two of one item, two Ordered Product metrics are tracked.
  • Fulfilled Order metric is created when a customer order is marked "shipped" in your WooCommerce store.

For example, say a customer logs into their account and adds two red belts and a tan belt to their cart. A Started Checkout metric is tracked. Then, the customer places an order for the red belts and the tan belt. One Placed Order metric is recorded, and three Ordered Product metrics are recorded - two for each of the red belts and one for the tan belt. When the products are marked shipped, a Fulfilled Order metric is recorded.

Other Resources

Congratulations on getting set up! Now that you've got your integration running, it's time to start adding Klaviyo's core features so you can start making money and grow your business.

Use the WooCommerce Setup Checklist for ideas on what to complete next.


Rebuilding Carts from an Abandoned Cart Flow

You can use WooCommerce Data to Rebuild Carts from an Abandoned Cart Flow.

We will generate a key on the Started Checkout event that allows you to create a link that rebuilds the customer's cart in case they return to their cart via an email triggered by this event on another device. You can create this link using the following url parameter in an Abandoned Cart flow email triggered by a Started Checkout:

?wck_rebuild_cart={{ event.extra.CartRebuildKey }}

Assembled, the url should look like the following:

{{ organization.url }}cart?wck_rebuild_cart={{ event.extra.CartRebuildKey }}

Using WooCommerce Subscriptions Data

Learn about using WooCommerce Subscriptions Data in Campaigns and Flows.

Help with your WooCommerce Integration

If you experience any difficulties, Klaviyo provides both email and chat support. You can read about our support hours and other details in our Guide to Contacting Support, or reach out to contact our support team directly.

Was this article helpful?
181 out of 285 found this helpful