Method Calls
Method Calls and Monetate Features Unlocked
each monetate javascript api method offers benefits you can use in the experiences you build furthermore, each method you use unlocks more who behavioral targets under each corresponding section more targeting options become available as you provide the platform with more data through each method the following information includes examples of best practices if you have any questions, submit them using the {{monetatesupportcontact}} product related methods attribute values for products details ( addproductdetails ), cart, and conversion are stored historically against the customer profile however, attribute values for products ( addproducts ), page types, and custom variables are not stored and are page temporal addproducts use addproducts to add products that the customer views on index or search results pages who targets unlocked none action conditions unlocked product list page > list page includes thumbnails where pid = product list page > list page doesn't include thumbnails where pid = addproductdetails with addproductdetails you can create an experience that targets customers who have viewed a certain product during their current visit using it also unlocks advanced product recommendations features the addproducts and addproductdetails methods are not limited or tied to product or index page types and can be used to target any page type as long as the relevant product ids are sent to the platform these methods are tied to the pid information sent to the platform and are independent on the page type sent via the setpagetype method in the action conditions listed, you can use conditions that require pids on any page type they aren't tied only to index, search, or product page types who targets unlocked product viewed product viewed last visit product viewed this visit sku action conditions unlocked product detail page > detail page includes products where pid = product detail page > detail page doesn't include products where pid = addproductdetails with a product catalog addproductdetails allows you to create an experience that targets visitors who have viewed a specific brand or category who targets unlocked brand in cart brand last purchased brand purchased brand viewed brand viewed last visit brand viewed this visit category in cart category last purchased category purchased category viewed category viewed last visit category viewed this visit viewed product out of stock action conditions unlocked product detail page > detail page includes products where category = product detail page > detail page doesn't include products where category = site related methods setpagetype setpagetype allows you to run an experience on all page types using action conditions who targets unlocked none action conditions unlocked page type = page type ≠ addcartrows addcartrows allows you to create an experience that targets customers who have a certain product or amount in their cart who targets unlocked abandoned cart amount in abandoned cart amount in cart average order size product in abandoned cart product in cart quantity in cart action conditions unlocked cart value < cart value ≤ cart value > cart value ≥ addpurchaserows addpurchaserows allows you to create an experience that targets customers who have purchased any product in the past who targets unlocked days since last purchase last order size product last purchased product purchased product purchased in past days purchase frequency purchased any product purchases in past days action conditions unlocked none addconversionrows addconversionrows allows you to create an experience that targets customers who've completed a non monetary conversion on your site who targets unlocked days since last purchase last order size product last purchased product purchased product purchased in past days purchase frequency purchased any product purchases in past days action conditions unlocked none addcategories addcategories adds page categories that the customer views who targets unlocked none action conditions unlocked page category contains page category doesn't contain page category = page category ≠ page category starts with page category doesn't start with page category ends with page category doesn't end with addbreadcrumbs addbreadcrumbs adds a site navigation breadcrumb trail for the customer who targets unlocked none action conditions unlocked page breadcrumb contains page breadcrumb doesn't contain page breadcrumb = page breadcrumb ≠ page breadcrumb starts with page breadcrumb doesn't start with page breadcrumb ends with page breadcrumb doesn't end with addpollforelement addpollforelement adds a delay to the trackdata call until some element on the page exists who targets unlocked none action conditions unlocked none addsearch the searched and also purchased premium recommendation algorithm requires you to implement one or two addsearch methods to send customers' search query data for use with a recommendation strategy configured with this recommendation algorithm who targets unlocked none action conditions unlocked none trackdata trackdata sends data that's been pushed to the baseline api call matrix array who targets unlocked none action conditions unlocked none trackevent trackevent indicates an event has occurred on your site who targets unlocked none action conditions unlocked none setdebug setdebug enables debugging for the monetate javascript api so that you can see console errors who targets unlocked none action conditions unlocked none removedebug removedebug disables debugging for the monetate javascript api if you had enabled it with the setdebug method who targets unlocked none action conditions unlocked none