Overview
Import your existing customer list, product catalog, and order data from your Commerce Cloud account into Optimizely Data Platform (ODP) to be collected regularly.
Values and benefits
- Unify your data from across multiple sources and gain access to comprehensive, persistent customer profiles. ODP combines online and offline, historical and real-time customer data, so you can get a complete view of your customers.
- Leverage important analytics, enhanced by AI-driven segmentation, to understand how your organization is performing against its goals and to understand customer behavior and engagement.
- See the complete customer journey and understand how your various channels are performing.
- Enrich your customer understanding and segmentation with predictive insights, including Time to Next Order, Likelihood to Purchase, and Winback Zone.
- Refine your segmentation strategy based on your customers’ on-site and buying behaviors and through ODP’s data science-driven insights.
- Use customer data to personalize messages, content, recommendations and create relevance at every customer interaction.
Configuration
Step 1: Install Service API
- Before installing the Optimizely Commerce Cloud app in ODP, you need to get the Optimizely Service API NuGet package. Learn more about installing and configuring the Service API.
Step 2: Authorize connection in ODP
- After installing the Service API, go to App Directory > Optimizely Commerce Cloud > Install App.
- Under Settings, enter your site URL and select your preferred authentication type. ODP selects the Service API by default because most Commerce Cloud clients have that authentication type. However, if you use the Content Delivery API, select Delivery API because Service API will not work for you.
- Enter your username and password.
- If you selected the Delivery API, you will be asked to provide a client ID. Type Default into this field.
- Click Authorize.
Step 3: Launch importing
- Expand the Imports section.
- Choose which objects to manage through the integration. ODP enables all imports by default.
- Click Import. You can track the progress in the Activity Log.
Step 4: Set up on-site tracking
To track commerce events on your ecommerce site, you need to add ODP’s JavaScript tag to your site. Copy and paste the snippet below to track standard events in ODP, including:
-
- Page view
- Product view
- Add to basket
- Remove from basket
- Add to wishlist
- Remove from wishlist
- Check out started
- Check out complete
- Order Confirmed
// Product detail view if (document.getElementById('productCode')) { var productCode = document.getElementById('productCode'); zaius.event('product', { action: 'detail', product_id: productCode.value }); } if (document.getElementById('jsCheckoutForm')) { var productCode = document.getElementById('productCode'); zaius.event('checkout', { action: 'start' }); } if (window.location.href.indexOf("order-confirmation") > 0) { var productCode = document.getElementById('productCode'); zaius.event('checkout', { action: 'complete' }); } $(document).ready(function () { // Add to cart $(document).find('.addToCart').each(function (i, e) { $(e).click(function () { let code = $(this).attr('data'); zaius.event('product', { action: 'add_to_cart', product_id: code }); }); }); // Add to wishlist $(document).find('.addToWishlist').each(function (i, e) { $(e).click(function () { let code = $(this).attr('data'); zaius.event('product', { action: 'add_to_wishlist', product_id: code }); }); }); // Remove from cart $('#js-cart-popover').on('click', '.jsRemoveCartItem', function () { let code = $(this).attr('code'); zaius.event('product', { action: 'remove_from_cart', product_id: code }); }); $('.large-cart').on('click', '.jsRemoveCartItem', function () { let code = $(this).attr('code'); zaius.event('product', { action: 'remove_from_cart', product_id: code }); }); // Remove from wishlist $('#js-wishlist-popover').on('click', '.jsRemoveCartItem', function () { let code = $(this).attr('code'); zaius.event('product', { action: 'remove_from_wishlist', product_id: code }); }); $('.my-account').on('click', '.deleteLineItemWishlist', function () { let code = $(this).attr('data'); zaius.event('product', { action: 'remove_from_cart', product_id: code }); }); });
Fields
Commerce Cloud Fields |
ODP Fields |
Field type |
Contact.PrimaryKeyId |
opticommerce_id |
Customers |
Contact.Email |
|
Customers |
Contact.FirstName |
first_name |
Customers |
Contact.LastName |
last_name |
Customers |
Contact.RegistrationSource |
opticommerce_source |
Customers |
OrderForm.OrderNumber |
order_id |
Orders |
OrderForm.Total |
total |
Orders |
OrderForm.SubTotal |
subtotal |
Orders |
OrderForm.TaxTotal |
tax |
Orders |
OrderForm.ShippingTotal |
shipping |
Orders |
OrderForm.Discounts.DiscountName |
coupon_code |
Orders |
OrderForm.LineItem.Code |
product_id |
Events |
OrderForm.LineItem.DiscountedPrice |
price |
Events |
OrderForm.LineItem.Quantity |
quantity |
Events |
OrderForm.LineItem.ExtendedPrice |
subtotal |
Events |
Entry.Code |
product_id |
Products |
Entry.Name |
name |
Products |
Entry.Assets.Title |
image_url |
Products |
EntryRelation.ParentEntryCode | parent_product_id |
Products |
Requirements
You need to have an existing Optimizely Commerce storefront with the Service API installed.
If you have multiple sites to integrate into ODP, you need to request an ODP account for each site.