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

Attribute page

Any page where multiple products are available to be selected. The selection is based on a particular attribute represented in the catalog feed.

📘

Note

Ensure the attribute name matches the attribute name supplied in the catalog feed.

Name Description and usage

attribute

A string containing the attribute/value pair.

The attribute/value pair tracked must exactly match the attribute name and value specified in the catalog feed.
  name [String]

The name of the attribute.
 

value

[String]

The attribute value.

An attribute page is tracked using the following script:

{ 
      "type"      : "attribute", 
      "lang"      : "en-gb", 
      "attribute" : {	  "name"  : "style",	  "value" : "Casual"        } 
    }

This page does not apply to all sites. It is included here for reference if required.

📘

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).