Javascript Tagging Library: Track Checkout

Overview

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

Step-by-step guide

This event must be triggered when any product is purchased after being selected from search result page or from product detail page after a search. At that moment, the function trackCheckout  should be executed.

trackCheckout

Use this function to send information when a user clicks on an "Add to Cart" button.

trackCheckout(terms, page, position, productid, title, url, options, callback)

Parameters and options configuration

Please refer to the trackClick parameters and options configuration.


Code sample

empathyTAG.trackCheckout('test', 1, 3, "My product id", 'My product title', 'http://MY_PRODUCT_URL.com',{lang:'en','scope:'testscope'},function(){});