Disclaimer: This website requires Please enable JavaScript in your browser settings for the best experience.

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

Category page

Describes how to configure a tracking request on a category page (a page where multiple products may be selected.)

Name Description and usage
category Category string.

Full category hierarchy, using > as a separator in the form.
parent>child>child
For example, for the Jeans subcategory of the Men category, use the following:
Men>Jeans

Note: The category must match the category specified in the product catalog feed exactly.

Category page tracking request example.

{ 
      "type"        : "category",
      "ip"          : "10.42.37.139",
      "session"     : "123456789012|a1b2c3d4e5A6B7C8D9E0f1g2h3i4j5F1G2H3I4J5k1l",
      "cuid"        : "09876543210|Z0Y9X8W7V6z5y4x3w2v1U0T9S8R7Q6u5t4s3r2q1P0O",
      "site"        : "retailer",
      "clientToken" : "1234abcd5678",
      "channel"     : "web",
      "lang"        : "en-gb",
      "currentURI"  : "www.retailer.com/category/mens_jeans.html",
      "previousURI" : "www.retailer.com/home",
      "userAgent"   : "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36",  
      "category"    : "Men>Jeans"
    }