HomeGuidesAPI Reference
Submit Documentation FeedbackJoin Developer CommunityOptimizely GitHubOptimizely NuGetLog In

Offline and historical orders

This topic provides a code sample for importing offline and historical data through XML.

The Personalization system accepts both offline and historical order data through XML imports, in addition to order data collected through a Personalization tracking implementation. Offline and historical order processing can enrich the data used by algorithms and lead to improved recommendation quality.

Offline and historical B2B orders

B2B uses customerId  for offline and historical orders. The following code shows an XML sample of an order with customerId:

<orders>
      <order refCode="someRefCode" ..other fields.. customerId="SomeCustomerId">
        <user email="someEmail"/>
          //List of products
      </order>
    <orders>

What’s Next
Did this page help you?