<
HomeTo successfully install Salesfire on a bespoke platform, please follow the guides below to ensure all key events such as purchases, product views, and basket activity are tracked correctly. Completing these steps will enable a smooth and fully optimised custom integration.
This tracking is required to make use of our Product Views prompt.
You need to insert the following code on product pages and ensure the fields reflect the current product being viewed.
<script>
window.sfDataLayer = window.sfDataLayer || [];
window.sfDataLayer.push({
"ecommerce": {
"view": {
"sku": "220165", // parent product sku
"name": "Product Title",
"variant": "Color: Red, Size: Small",
"price": 25.00, // ex tax price
"currency": "GBP"
}
}
});
</script>