Overview

Hawksearch requires a tracking code to be implemented on your site. This code will gather data real-time and will be used to generate recommendations based on the users browsing your site.

In order to utilize Recommendations prior to the real-time data collection, order history data can be provided to Recommendation engine. The order history data does NOT need to include any customer identification details. This document will describe the necessary feeds that are required.

Usage

Importing Order Data is impacting product Popularity Sales boost. Based on the factor defined under 'AI Based Multipliers' section, the boosting is applied for imported data.

More information can be found in section AI Based Multipliers

Feed Formats for Order data

The Recommendations engine will utilize your website’s order history, broken out into two separate files, and representing activity from the last 30 days.

  • orders.txt

This file represents the summary of the orders from the last 30 days.

  • order_items.txt

This file represents the items contained within the orders defined in the orders.txt file.

Please review the data feed format for each file. If a particular column does not appear to apply to your data, please bring this to the attention of your Hawk Search implementation representative for further clarification.

File Format Requirements

File Size Limit

The maximum file size that can be imported is 4096 kB. Larger files needs to be split and imported separately.

Flat-File Format Properties

NameDescription
EncodingUTF-8
Column DelimiterTab
Column HeadersRequired, case insensitive

Column Headers are allowed in plain text or in quotation marks.

For example: OrderId, orderid, "orderid" or "OrderId"
Row DelimiterUnix Format (\n as a row delimiter)
File NameLowercase and should match names specified above

Orders Data Feed

FILE NAME: orders.txt

The Orders Data Feed consists of order summary data from the site over the last 30 days, provided in a single file named orders.txt.

Required Data Columns

NameTypeData DescriptionRequiredSample Value
OrderIdStringAlphanumeric ID value representing the order identifier. This is usually generated by your ecommerce system and is unique.YesAA123
OrderNoStringAlphanumeric value representing the order number, if it is different than the OrderId. If it is the same, please use the OrderId in this field. Typically unique.YesAA123
SubTotalDecimalThe total of items in the order before taxes or shipping costs.Yes12.34
TaxDecimalThe amount of tax associated with this order.Yes1.23
TotalDecimalThe order total, or the amount that includes shipping, taxes and all associated costs.Yes13.57
CurrencyStringThe currency format used by the order (USD, EURO, CAD)YesUSD
CreateDateMM-DD-YYYYThe date the order was submitted and completed in UTCYes01/23/2014
MemberIdStringThe unique identifier representing the customer. This is usually generated by your ecommerce system. This usually will not contain details such as the customer name.YesZZ1234

Order Items Data Feed

FILE NAME: order_items.txt

The Order Items Data Feed will contain the items associated with each order defined in the Orders Data Feed. This items should be grouped by its order identifier, and provided in a single file named order_items.txt.

Required Data Columns

NameTypeData DescriptionRequiredSample Value
OrderIdStringUnique Alphanumeric ID. This should correspond to the OrderId column specified in the orders.txt fileYesAA123
ItemIdStringAlphanumeric identifier for the item. This should be the unique number or internal identifier used track item. This is typically ItemId, SKU or ProductID.YesAABB123
PriceDecimalThe per unit item price.Yes123.45
QuantityIntegerThe number of items purchased in this order.Yes123

Sample Files

orders.txt

OrderId	OrderNo	SubTotal	Tax	Total	Currency	CreateDate	MemberID
745527	733837	86.02	3.92	89.94	CAD	7/13/2015	607596
745526	733836	17.95	0	17.95	USD	7/13/2015	607595
745525	733835	13.4	0	13.4	USD	7/13/2015	594673

order_items.txt

OrderID	ItemId	Price	Quantity
745527	2246	21.25	1
745527	148770	21.25	1
745527	2897	21.25	1
745527	116972	14.45	1
745526	116964	17.95	1
745525	148960	6.7	2