Overview
Instructions to send "Add to Cart" browse click information using the Javascript Tagging Library.
...
Code Block | ||
---|---|---|
| ||
trackBrowseAdd2Cart(categoryid, page, position, productid, title, url, options, callback) |
Parameters
...
and
...
Options
The options object should contains additional parameters not passed as parameters in function call:
Code Block | ||
---|---|---|
| ||
{
lang: LANGUAGUE,
scope: SCOPE,
section: SECTION,
user: USER_ID,
session: SESSION_ID
} |
...
*UserID should be an UUID identifier.
NOTE: The values for scope and lang will be provided by the Empathy Team.
NOTE: If you are setting up the trackBrowseAdd2Cart function into the product detail page, categoryId and page values will be relative to the product situation into the category grid before being clicked by the user.
The callback function receives an object with the following content. Also options parameters are included:
...
language | js |
---|
...
options configuration:
Please, refer to trackBrowseProduct parameters.
Code samples
Selectors using jQuery (you could use other frameworks to build the selectors)
...