Additional Method Calls

Articles

setDebug
The setDebug method is used to enable debugging for the Monetate JavaScript API . Calling this method sets a cookie on your computer and reloads the current page. Code Sample // setDebug Method window.monetateQ.setDebug(); Using the Met...
removeDebug
Use the removeDebug method to disable debugging for the Monetate JavaScript API if you previously enabled it with the setDebug method. Calling the removeDebug method removes the debug cookie and reloads the current page. Code Sample ...
setCustomVariables
The setCustomVariables method provides a way to indicate that a custom variable is present on your site. setCustomVariables takes an array of JavaScript objects, each with the keys name and value , both of which can be a string or a number...
trackEvent
The trackEvent method and API events that you create in Event Builder provide a way to indicate that something important has happened on your site. This method can be called multiple times per page. However, Monetate only collects data once pe...
addPollForElement
The addPollForElement method is used to add a delay to the trackData method call until some element on the page exists. This method is useful if you added calls to the Monetate JavaScript API in the page <head> element with the Mo...
addSearch
The Search and Also Purchased premium recommendation algorithm requires you to implement one or two addSearch method calls to send customers' search query data for use with a recommendation strategy configured with this recommendation type...