HomeDev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideLegal TermsDev CommunityOptimizely AcademySubmit a ticketLog In
Dev Guide

Wishlist page

Describes how to configure a tracking request on a wish list page.

The wish list page is tracked by providing a list of all products in the wish list.

Name Description and usage
wishList Element containing wish list-specific sub-elements.
  items [String]

List of wish list items.
    refCode Product reference code.

The refCode must exactly match the refCode (guid) specified in the product catalog feed.

Note: If you have a custom feed, contact Optimizely to find out which field from the feed is used as a product identifier.

Wish list page tracking request example.

{
  "type": "wishlist",
  "ip": "10.42.37.139",
  "session": "123456789012|a1b2c3d4e5A6B7C8D9E0f1g2h3i4j5F1G2H3I4J5k1l",
  "cuid": "09876543210|Z0Y9X8W7V6z5y4x3w2v1U0T9S8R7Q6u5t4s3r2q1P0O",
  "site": "retailer",
  "clientToken": "1234abcd5678",
  "channel": "web",
  "lang": "en-gb",
  "currentURI": "www.retailer.com/search.html?term=bags",
  "previousURI": "www.retailer.com/home.html",
  "userAgent": "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36",
  "wishList": {
    "items": [{
      "refCode": "RC123"
    }, {
      "refCode": "RC124"
    }]
  }
}