...
Clicks on "Add to Basket" can be tracked the functions trackConversiontrackAdd2Cart / trackConversionstrackAdds2Cart.
...
trackAdd2Cart
Use this function to send information when a user clicks on an "Add to Cart" button.
Code Block | ||
---|---|---|
| ||
trackConversiontrackAdd2Cart(terms, page, title, url, scope, options, callback) |
...
NOTE: If you are setting up the trackConversiontrackAdd2Cart function into the product detail page, terms and page values will be relative to the product situation into the results grid before being clicked by the user.
...
Code Block | ||
---|---|---|
| ||
empathyTAG.trackConversiontrackAdd2Cart('test',1,'My product title','http://MY_PRODUCT_URL.com','testscope',{lang:'en'},function(){}); |
...
trackAdds2Cart
Same behaviour as trackConversion trackAdd2Cart but allowing to track more than one "Add to cart" button.
Code Block | ||
---|---|---|
| ||
trackConversionstrackAdds2Cart(selectors, terms, page, title, scope, options, callback) |
...
Code Block | ||
---|---|---|
| ||
var selectors = [jQuery('#send')]; empathyTAG.trackConversionstrackAdds2Cart(selectors,'test',1,'testscope',{lang:'en'},function(responseData){}); |
...