Method Calls
addBreadcrumbs
addbreadcrumbs method // addbreadcrumbs method window\ monetateq push(\[ "addbreadcrumbs", \["string", "string", "string"] ]); you can use the addbreadcrumbs method to add a breadcrumb trail for a site visitor's navigation this information allows you to see how the visitor arrived on their current page you can use the addbreadcrumbs method on all page types of your site the method data is an ordered array of strings therefore, you should add each breadcrumb to the array in order the addbreadcrumbs method and the addcategories have similar functionality, and you can them interchangeably monetate inspector view this screenshot shows the components tab of the monetate inspector browser plug in the breadcrumbs row indicates that the values passed by the addbreadcrumbs method are the pages visited in order the components tab of monetate inspector, with 'home > science > animals' page breadcrumbs in the breadcrumbs row this code example contains the method in use that results in the monetate inspector results shown in the previous screenshot addbreadcrumbs example // addbreadcrumbs example window\ monetateq = window\ monetateq || \[]; window\ monetateq push(\[ "addbreadcrumbs", \["home", "science", "animals"] ]); window\ monetateq push(\[ "trackdata" ]);