Integrate with 3dcart

read

Overview

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

  • Sales and order data, including which products were purchased and product images, as well as price and quantity information
  • Customer information including first and last name, location, and how a customer found your store
  • Fulfilled, refunded, and cancelled order data
  • When and how often people visit your website

Add the 3dcart Integration

Click on the Integrations tab in the left sidebar of your account. Navigate to the All Integrations tab and find 3dcart on the list of available integrations. All integrations are in alphabetical order so you'll find 3dcart near the top.

Click Add Integration and you will be brought to another page where you need to add your 3dcart Secure URL. Once you have entered your Secure URL, click Connect to 3dcart. 

After clicking to connect, you will see a Next Steps section. Here, you will need to copy the Klaviyo Public API Key before clicking the blue Go to 3dcart button.

Once you are in the 3dcart Admin, click on Modules in your main 3dcart navigation menu.

Search for the REST API Module and click on Change Settings.

647842

Paste the Klaviyo pubic key (2bd83b00fcd7d56916a28c452d3d080c) and click +Add.

647843

Click Authorize - this will allow Klaviyo begin to pull your 3dcart data into our platform. Once you click Authorize, you will be re-directed back to the Klaviyo website and your data will begin to sync.

Monitor the Klaviyo Sync & Verify Order Data

To check on your 3dcart integration, navigate to the Metrics tab in your account.

Click on the Placed Order metric to verify that there is data. If there is data, all you need to do is wait until the 3dcart integration has a green border in Enabled Integrations indicating that the sync is complete.

Klaviyo will import all of your historic 3dcart data. To verify this, you can compare the number of orders on a particular day in Klaviyo with what's in your 3dcart 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 3dcart 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 3dcart timezone. To check your timezone setting in Klaviyo, go your Account Settings and navigate to Contact Information > Organization. At the button, you will see an area to set timezone.

Understand your 3dCart Data

Below is a list of all the metrics synched from 3dcart and an explanation of the data included. Metrics and profile properties from 3dcart are synced once an hour, so you should see events appear in Klaviyo within an hour of when the event is recorded in 3dcart.

Started Checkout

This event is tracked when a customer enters their contact and shipping information on the page before the payment page in the 3dCart checkout process and clicks continue. The event Klaviyo tracks includes all of the product information about the items in someone's cart including product names, images and variation information so you can use that information in your abandoned cart emails.

  • Items: the names of the products in someone's cart, e.g., t-shirt or pants
  • Categories: the complete set of the categories of the products in someone's cart, e.g., t-shirts, mens, pants andsale

Placed Order

This event is tracked when a customer completes the checkout process and creates an order in your 3dCart store. The event Klaviyo tracks includes all of the product information about the items someone purchased including product names, images and variation information so you can use that information in purchase follow up emails. You can filter and target Placed Order events based on the following criteria:

  • Items: the names of the products in someone's order, e.g., t-shirtor pants
  • Categories: the complete set of the categories of the products in someone's order, e.g., t-shirts, mens, pants andsale
  • Item Count: the number of items in the order, e.g., 2

Ordered Product

This event is tracked when a customer places their order and one event is tracked for each item someone purchases. For example, if someone buys a t-shirt and a pair of pants, one Placed Order event is tracked and two Ordered Product events -- one event for the t-shirt and one event for the pants. The event Klaviyo tracks includes detailed information about each product someone purchases. This is useful when creating behavorial segments based on product variation options and other detailed information that's not available in the Placed Order event. You can filter and target Ordered Product events based on the following criteria:

  • Name: the name or title of the product in 3dCart, e.g., t-shirt
  • SKU: the SKU of the product variation e.g., REDMEDIUMTSHIRT
  • Categories: the complete set of the categories of the product, e.g., t-shirts, mens andsale

Fulfilled Order

This event is tracked when a customer completes the checkout process and creates an order in your 3dCart store. The event Klaviyo tracks includes all of the product information about the items someone purchased including product names, images and variation information so you can use that information in purchase follow up emails. You can filter and target Fulfilled Order events based on the following criteria:

  • Items: the names of the products in someone's order, e.g., t-shirtor pants
  • Categories: the complete set of the categories of the products in someone's order, e.g., t-shirts, mens, pants andsale

Cancelled Order

This event is tracked when a customer creates an order in your 3dCart store but then cancels the order before fulfillment. The event Klaviyo tracks includes all of the product information about the items someone purchased including product names, images and variation information so you can use that information in purchase follow up emails. You can filter and target Cancelled Order events based on the following criteria:

  • Items: the names of the products in someone's order, e.g., t-shirtor pants
  • Collections: the complete set of the collections of the products in someone's order, e.g., t-shirts, mens, pants andsale

Customer Data

In addition to the metrics Klaviyo syncs from 3dcart, there are also custom 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 synced from 3dcart:

  • 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

To enable Klaviyo web tracking, you can add a snippet of tracking code to your 3dcart template footer in the admin dashboard panel. 

The Klaviyo tracking code will allow you to track an Active on Site metric as well as a Viewed Product metric:

  • You can then use the Active on Site metric to create segments of people who have visited your site (while logged in), but haven't purchased. This metric will track all website activity for known browsers.
  • Viewed Product tracking is most often leveraged to trigger a Browse Abandonment automated email flow. Learn more about the Browse Abandonment flow.

First, log into your 3dcart store admin and click on Content, then Site Content menu. In the Global Footer section, click on the < > button to open the HTML editor.

Paste the following Klaviyo tracking script and replace APIKEY with your Klaviyo Public API Key

<script type="text/javascript"> 
 var _learnq = _learnq || [];

 _learnq.push(['account', 'APIKEY']);

 (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);
 })();

 if ('[price]' !== '[' + 'price]') {
 _learnq.push(['track', 'Viewed Product', {
 ProductID: "[id]",
 Name: "[name]",
 Description: "[description]",
 URL: [location.protocol, '//', location.host, location.pathname].join(''),
 Categories: "[catid]",
 ImageURL: [location.protocol, '//', location.host, '/[image1]'].join(''),
 Price: parseFloat("[price]".slice(1), 10)
 }]);
 }
</script>

Then, click Enable and Save.647845

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