<
HomeBasket tracking enables cart events to be sent to Salesfire, allowing dynamic population of basket contents in your Abandoned Order email flow.
Step 1
The following script is required for Salesfire to track an ‘add to cart’ event. Please ensure this is added to your product and checkout pages:
<script> window.sfDataLayer = window.sfDataLayer || []; window.sfDataLayer.push({ "ecommerce": { "add": { "sku": "SKU123", "name": "Test Product", "category": "Test Category", "price": 25.00, "quantity": 2, "currency": "GBP" } } }); </script>
Step 2
Salesfire will also require the following script to be added to product and checkout pages to send a ‘remove from cart’ event:
<script> window.sfDataLayer = window.sfDataLayer || []; window.sfDataLayer.push({ "ecommerce": { "remove": { "sku": "SKU123", "name": "Test Product", "category": "Test Category", "price": 25.00, "quantity": 2, "currency": "GBP" } } }); </script>
To ensure accurate data, make sure SKU and quantity fields are included.
Check Salesfire is fully integrated by following our Installation and Setup guides, including product and page view tracking.
Once completed, follow our Email guide.