Category Page Functions

Prev Next

When creating a custom campaign, rule, or goal, you can call these predefined functions where applicable.

Detect if the page is a category page

The following function detects if the current page is a category page.

Function CallReturns
Insider.systemRules.call('isOnCategoryPage')Boolean
Insider.systemRules.call('isOnCategoryPage')

For example, the response below returns if the current page is a category page.

Get the breadcrumbs

The following function returns the breadcrumbs of the current category. If you use it on the product page, the product name might be counted as a category name.

Function CallReturns
Insider.systemRules.call('getCategories')Array
Insider.systemRules.call('getCategories')

For example, the below response returns all the current page's category pages.