Download plugin

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.

Scroll Ignore

Image Modified

To select the product list elements to be measured, add the configurations to the array "wt_pli".


Code Block
window.wt_pli = window.wt_pli || [];
         selector: document.getElementById("list-item-1"),
         data: {
             product: "075eo2f002", 
             productPosition: 1,

             // optional
             productCost: "49.99", 
             productQuantity: "1", 
             productCategory: {
  				1: "100% cotton",
  				2: "normally",
  				6: "en",
  				7: "men",
  				8: "shirts"
 			 customEcommerceParameter: {
  				1: "blue"
 			 grossMargin: "25",
 			 productVariant: "button-down design", 
			 productSoldOut: "0"


selectorUnder "selector" you enter the product list element which is to be measured. You can either pass this directly as HTML-element or pass the CSS-selector of the element.
dataUnder "data" you enter the product information of the list element.
productMandatory. Specify the product name.
productPositionMandatory. The product psotion position indicates where the element is located in the list.
Optional parameters

Optionally, you can add the following parameters:

  • productCost
Optional. Product costs.
  • productQuantity
Optional. Product amount.
  • productCategory
Optional. Product categories.
customEcommercePrameterOptional. E-commerce parameter.
grossMarginOptional. Trade margin.
productVariantOptional. Product variant.
productSoldOutOptional. 1 = Product sold out.
  • customEcommerceParameter
  • grossMargin
  • productVariant
  • productSoldOut