The addBreadcrumbs
method and the addCategories
method have similar functionality, and you can them interchangeably.
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. The method data is an ordered array of strings. Therefore, you should add each breadcrumb to the array in order.
Monetate Inspector Example
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.
Code Samples
// addBreadcrumbs Method window.monetateQ.push([ "addBreadcrumbs", ["string", "string", "string"] ]);
// addBreadcrumbs Example window.monetateQ = window.monetateQ || []; window.monetateQ.push([ "addBreadcrumbs", ["home", "science", "animals"] ]); window.monetateQ.push([ "trackData" ]);