JavaScript API Requirements

Articles

monetateQ
Each array in the monetateQ array contains instructions to add data that Monetate tracks. The first index of each array is the method name. The most common method is setPageType , which is required in every monetateQ array to indicate the typ...
trackData
Your browser does not support HTML5 video. The trackData method initiates the process of sending data to Monetate. This method can be called as many times as necessary to give the most current picture of a customer's experience to the M...
AJAX Site Updates
Monetate tracks and evaluates DOM content included only in the initial page load content by default. After this initial track, if any content is served to the page through AJAX or if the page changes state asynchronously to display new data, then ...
Variable Field Length
Certain properties available for each method call have a maximum field length. Any field with a maximum length is listed in this table. Attribute Data Type Maximum Example purchase_id VARCHAR 50 "123456789" sku VAR...
String Validation
The Monetate JavaScript API allows you to pass data from your site to the Monetate platform. All data that you pass to Monetate through the methods included in this API must be in the form of a string. Passing an integer instead of a string or ...