Tracking Product data

This data is used to understand which Customers are looking at which Products. As described in the Product Data Specification only the Product ID and Name are required, additional attributes, such as the URL of the Thumbnail, Precis etc, will enable the unlocking of capabilities, such as hyper-personalised email. 

When to send

  • When a Visitor looks at a Page that contains a Single Product.
  • Note: Do not send when a Customer looks at a Page containing multiple Products unless it is clear that the page contains one main Product.

Product Data specification

This object represents the product data the user is viewing

JSON AttributeTypeRequiredDescription
ProductIdStringYesThe unique identifier for your Product.
NameString
The name of the product.
PrecisString
Introductory description for the product. 
ThumbnailUrlString
URL to the Product Thumbnail.
FullImageUrlString
URL to the Product image in full.
UrlString
Full Url to the product page
ListPriceExTaxDecimal
List price excluding Tax
ListPriceIncTaxDecimal
List Price including Tax. 
PriceBreaksDescString
Price breaks description text. This is only used in the case of building campaigns directly from this data so can be formatted as you wish.
CustomAttributesJSON
Key, value JSON for adding any custom attributes you wish into store against the record. 
AvailableBoolean
Is the Product currently available? Yes, No

Customer Data Specification

This allows you to associate the call with a customer record.

AttributeJSON AttributeTypeRequiredDescription
CUSTOMER IDCustomerIdStringYesYour unique Customer id.
FIRST NAMEFirstNameString
The Customer’s first name
LAST NAMELastNameString
The Customer’s last name
EMAIL ADDRESSEmailAddressStringYesThe Customers email address.

Example JSON

{
  "Context": {
    "DistilAccountId": "abc-123",
    "AnonymousUserID": "f7692ca5-cfd1-4604-81c8-bb8cda4908e0",
    "Device Information": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5)",
    "EventTimestampUTC": "2017-03-14 23:02:17",
    "EventTimestampLocal": "2017-03-14 23:02:17",
    "PageTitle": "A Fistful of Dollars",
    "PageUrl": "https://www.imdb.com/title/tt0058461/",
    "ReferrerUrl": "https://www.google.com/search?biw=1680&bih=970&ei=FC6BXO"
  },
  "Product": {
    "ProductId":"ABC-1234",
    "Name": "LPD NuVU Roomfold Internal Oak Folding Sliding Modular Door Kit",
    "Precis": "The NuVu Roomfold system is ideal for those looking for an alternative to more conventional room divider sets.",
    "ThumbnailUrl":"https://www.doors-r-us/door.jpg?w=500&h=500&fit=crop",
    "FullImageUrl": " https://www.doors-r-us/door.jpg",
    "Available": true,
    "ListPriceExTax": 100.00,
    "ListPriceIncTax": 120.00,
    "Currency":"GBP",
    "PriceBreaksDesc":"Descriptive Text: 20% discount on orders over x items",
    "CustomAttributes" : {
      "CustomAttribute1": "Attribute 1",
      "CustomAttribute2": "Attribute 2",
      "CustomAttribute3": "Attribute 3"
    }
  }, "Customer": {
    "CustomerId": "1200",
    "EmailAddress": "customer@distil.ai",
    "FirstName": "Gerry",
    "LastName": "McNicol"  }
}