Documentation Index

Fetch the complete documentation index at: https://academy.insiderone.com/llms.txt

Use this file to discover all available pages before exploring further.

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 Call

Returns

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 Call

Returns

Insider.systemRules.call('getCategories')

Array

Insider.systemRules.call('getCategories')

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