Skip to main content

Product database via Product API

Description

When using the product API, the category is passed as categoryPath with a string type, it must also be passed when viewing the category page. categoryPath must match the same value that is passed in the product API product tracking code.

Category path (categoryPath)

List of category paths, using "/" as a separator for category levels.

The category path must accurately reflect the menu structure of your website and the nesting of categories (please use only static category names, no URL paths, sidebar filters, or dynamic breadcrumbs are allowed). Specify only the lowest level (if the product is listed in the categories "Women/Clothing/Skirts" and "Women/Clothing/", you should only specify "Women/Clothing/Skirts").

Example: "Women/Clothing/Skirts"

Code example

<script type="text/javascript">
(window["rrApiOnReady"] = window["rrApiOnReady"] || []).push(function() {
try { rrApi.categoryView("<categoryPath>"); } catch(e) {}
})
</script>