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

Any page where multiple products are displayed.

📘

Note

Ensure the category matches the category supplied in the catalog feed.

NameDescriptions and usage
categoryCategory string value of full hierarchy – Full category hierarchy, using > as a separator, in the form parent>child>child. For example, for the Jeans subcategory of the Mens category, use Mens>Jeans.

A category page is tracked using the following script:

{ 
      "type"     : "category", 
      "lang"     : "en-gb", 
      "category" : "Mens>Jeans" 
    }

📘

Note

You can also add the customAttributes or customer elements to this page tracking request. For more information, see Add customAttributes or customer elements (Optional).