Integrate with Celery

read

Overview

This article will walk you through integrating Celery with Klaviyo. After completing the steps outlined in this guide, you'll be able to personalize and target emails based on each customer's purchase and website activity. Here is a sample of the data we sync from Celery:

  • Sales and order data: Products purchased including product images, variant details and any coupons applied
  • Customer information: First and last name, location, and how they found your store
  • Fulfillment and refunded order data
  • Data on when people visit your website

Add the Celery Integration

To enable Klaviyo's Celery integration, navigate to your account's Integrations tab.

Clicking over to All Integrations, you will see all of the available integrations you can connect to your Klaviyo account. These integrations will be listed in alphabetical order, so you should find Celery near the top of the page.

Click Add Integration and you'll be taken to an Integration Settings page. To integrate your Celery store, you will need to provide your Access Token. You can find your Access Token in your Celery dashboard.
647872Click Connect to Celery to authenticate your access token and connect to your Celery store.

Monitor the Klaviyo Sync

To check on your enabled integration, navigate to your account's Metrics tab. Here, you can filter to view all Celery metrics.

Click on the Placed Order metric and click on the activity feed icon. If your integration has begun syncing data, you will start to see Placed Order events populating this activity feed.

We will automatically sync all historic order data. Once this historic sync has completed, you will see a light green border around your Celery integration.

Verify your Order Data

Klaviyo imports all of your historic Celery data when you first enable the integration. To verify this, you can compare the number of events on a particular day with what's in the Celery interface and confirm they match. 

For example, when exploring the Placed Order metric in your Klaviyo account's Analytics tab, you can mouse over yesterday's data point or look at the table of data below the chart to see how many orders were reported yesterday. Compare that number to what's stored in Celery from yesterday and you should see they match exactly. If they don't, the issue is most likely that your Klaviyo account's timezone doesn't match your Celery timezone. To check your timezone setting in Klaviyo, go your Account Settings and navigate to Contact Information > Organization. At the bottom, you will see an area to set timezone.

Review & Understand your Data

Navigate to your account's Metrics tab. Here, you can filter to view all Celery metrics.

647872

Placed Order

This metric records an event every time someone places an order and successfully pays for it. It corresponds to orders in Celery that are complete, meaning a customer has completed the entire checkout process. With this metric, you can easily create dynamic lists of people based on the number of orders they've placed or their lifetime value. You can also create emails to re-engage past customers or send customer thank you emails for first time buyers. You can filter and target Placed Order events based on the following criteria:

  • Coupon Code: If someone has used a coupon code in their order, and the name of that coupon code
  • Item Count: the amount of items in an order
  • Product IDs: the IDs of the products that were ordered
  • Product Names: the names of the products that were ordered

Ordered Product

This metric is similar to the Placed Order metric, however an event is recorded for each item someone orders. For example, if someone purchased a t-shirt and a pair of shorts, this would appear in Klaviyo as one Placed Order event and two Ordered Product events, one for the t-shirt and one for the pair of shorts. This metric is useful for building lists that target customers who purchased (or have not purchased) specific items or items in specific categories. You can also use the Ordered Product metric as a trigger for email flows to do send related product emails that naturally go together, but some customers haven't already bought. You can filter and target Ordered Product events based on the following criteria:

  • Name: the name of the product ordered
  • Quantity: the quantity of the product ordered
  • Product ID: the product ID of the product ordered

Fulfilled Order

This metric records an event when a customer's order ships. A common email based on the Fulfilled Order metric is the product review email where you ask customers to leave a review for items they recently purchased. Using the Fulfilled Order metric allows you to time these emails based on when someone receives their order so you don't have to worry about sending them an email before they've received their package. You can filter and target Placed Order events based on the following criteria:

  • Coupon Code: if someone has used a coupon code in their order, and the name of that coupon code
  • Item Count: the amount of items in an order
  • Product IDs: the ID's of the products that were ordered
  • Product Names: the names of the products that were ordered

Refunded Order

This metric records an event each time someone refunds an order in your Celery store.

Customer Data

In addition to the metrics Klaviyo syncs from Celery, there are also customer properties that are added to each Klaviyo profile. You can use these properties in segments and in flows. Here are the properties that are automatically synched from Celery:

  • Email, First Name, Last Name, City, State/Region, Zip Code, Country, Phone Number:these built-in Klaviyo fields are automatically synched

Add Klaviyo Web Tracking

The following Klaviyo web tracking code will allow our to track an Active on Site metric so you can see and leverage data related to site visits and visitor behavior. Through this metric, Klaviyo will track website activity for known browsers. In the main template for your Celery store add in the following code, replacing API_KEY with your public API key.

<script type="text/javascript"> 
    var _learnq = _learnq || []; _learnq.push(['account', 'API_KEY']); 
    (function () { var b = document.createElement('script'); 
    b.type = 'text/javascript'; b.async = true; 
    b.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'a.klaviyo.com/media/js/analytics/analytics.js'; 
   var a = document.getElementsByTagName('script')[0]; 
   a.parentNode.insertBefore(b, a); })(); 
</script>

To test that this web tracking is set up properly, go to a page in your store and add  ?utm_email=email@example.com to the end the URL replacing email@example.com with your email address. After your reload the page, search in Klaviyo for your email address. You should see a profile has been created and has tracked your activity.

Was this article helpful?
0 out of 0 found this helpful