Integrate with WooCommerce



This article walks through enabling the WooCommerce integration in your Klaviyo account. The main steps are as follows:

  • Enable the WooCommerce integration
  • Install the Klaviyo WooCommerce plugin

After integrating you can add product tracking and connect a WooCommerce signup form to a list in your Klaviyo account.


Enable the WooCommerce Integration

This process walks you through creating an API key and secret in your WooCommerce store, and then using this API key and secret to enable the WooCommerce integration in your Klaviyo account.

  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".
  3. Click Generate API Key. Keep this tab open or note down the information, as you will need to copy/paste it in the next step.
  4. Now go to your Klaviyo account, click the Integrations tab, and search for the WooCommerce Integration.
  5. In your Klaviyo account, paste in the information from the WooCommerce API key you just created above. 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. Your store URL should be the same URL that customers use to access your site.

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

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.

You can download the Klaviyo WordPress plugin here.

To upload the plugin to your WordPress site, click the Plugins tab, then click Add New Plugin and then Upload Plugin. After uploading the plugin, install it and activate it.


  1. After installing and activating the plugin, go to your Klaviyo account and copy your six-character Public API Key / Site ID.
  2. Navigate to your WordPress dashboard and click on the Klaviyo menu.
  3. Paste in the Public API Key / Site ID you copied above.
  4. Optional: If you would like to add a checkbox on the checkout page, you can enter a Klaviyo list ID to connect subscriptions to and customize the text.

This completes installing the Klaviyo WooCommerce WordPress plugin.

Test Your WooCommerce Plugin

To test out your 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; when you click to another text box, Klaviyo will automatically track that you've started a checkout.
  4. Go to your Klaviyo Dashboard's Activity Feed, 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 is connected to Klaviyo. Go to Appearance > Widgets from your WordPress Dashboard. Select "Klaviyo: Email Signup" (see image below) 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.

Additional Resources


If you're using WooCommerce Subscriptions, this plugin will allow you to sync that data to Klaviyo


Rebuilding Carts

We will also 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 a 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 }}
Was this article helpful?
114 out of 175 found this helpful