Versions Compared

Key

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

Overview

Instructions to send "Add to Cart" clicks information using the Javascript Tagging Library.

...

ParameterDescriptionData TypeMandatory
termsThe query typed by the userStringYes
pageThe page numberIntegerYes
positionThe position in SERP of the product selected.IntegerNo*
productIdThe product ID of the selected result.StringNo*
titleThe product or result titleStringYes
urlDestination URL, for example product detail pageStringYes
optionsObject that may contain information about filters and other required dataObjectNo
callbackFunction that will be executed after sending dataFunctionNo
*This parameters are not mandatory for the service but necessary for the statistics

...

The callback function will receive an object with the following contents. Also params sent in options will be included:

Code Block
languagejs
{
	q: terms,
	page: page,
	productId: productid,
	position: position,
	title: title,
    url: url,
    follow: false
}

...