Tracking
Basket Page
Minimal version:
HTML
<script>
SP.go('basketPage')
</script>Full version:
HTML
<script>
SP.go('basketPage', [{
productId: "PRODUCT_1_ID".
product: "PRODUCT_1_NAME",
link: "PRODUCT_1_URL",
image: "PRODUCT_1_IMAGE_URL",
quantity: PRODUCT_1_QUANTITY // integer or string
price: PRODUCT_1_SINGLE_PRICE, // float or string
sum: SUM // float or string, sum = quantity * price
}, {
productId: "PRODUCT_2_ID".
product: "PRODUCT_2_NAME",
link: "PRODUCT_2_URL",
image: "PRODUCT_2_IMAGE_URL",
quantity: PRODUCT_2_QUANTITY // integer or string
price: PRODUCT_2_SINGLE_PRICE, // float or string
sum: SUM // float or string, sum = quantity * price
}]);
</script>This snippet should be called on the basket page of your website.
You should use this version when you have been using AddToBasket Page Events. So all products have been saved in Local Cache, and we can now get them.