Integrate with WooCommerce

read

Overview

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.

wc_uploadPlugin.png

  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.
    image9.png
  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 installation of 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.

What Data Syncs to Klaviyo

WooCommerce sends ecommerce events over to Klaviyo which can be viewed in the Metrics tab of your Klaviyo account. Navigate to the Metrics tab in Klaviyo, where you can view all the metrics in your Klaviyo account. On the upper-right of the metrics section, select WooCommerce from the dropdown to filter and view only WooCommerce events. Notice that WooCommerce events are associated with a WooCommerce icon. 

WC_metrics_1.png

  • 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, a customer logs into their account, and adds 2 red belts and 1 tan belt to their cart. A Started Checkout metric is tracked. Then, the customer places an order for 2 red belts, and 1 tan belt. One Placed Order metric is recorded, and 3 Ordered Product metrics are recorded - 2 red belt Ordered Product metrics and 1 tan belt Ordered Product metric. When the products are marked shipped, a Fulfilled Order metric is recorded. 

How to Use your WooCommerce Integration

Subscriptions

When you integrate your WooCommerce Subscription data into Klaviyo, you can use that data to trigger Flows geared towards subscribers, and campaigns which target subscribers. If you're using WooCommerce Subscriptions, this plugin will allow you to sync that data to Klaviyo

745476

Rebuilding Carts from an Abandoned Cart Flow

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 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 }}
x
Was this article helpful?
130 out of 201 found this helpful