Storing category information in cookies for analytics reporting
You can configure your site to store category
information in cookies to pass to an analytics provider. The configuration
steps involve adding a <useCookies>
element to
your biConfig.xml configuration file, and adding
a <cm:setCategoryCookie/>
tag to certain store
pages.
In sales catalogs, often a single product can
belong to more than one category. To ensure that your analytics data
associates products to the specific sales category that the shopper
browsed, you can store the category information in cookies. The WebSphere
Commerce JSTL tags, such as the pageview
, cart
,
and order
tags, inspect the cookies to get the category
information, which is then passed to the analytics provider.