Hi, does anyone know how to integrate Squarespace with Klaviyo so that I can create an abandon cart trigger?
this is the code noted on Klaviyo for abandoned cart:
<script type="text/javascript">
_learnq.push(["track", "Added to Cart", {
"$value": 29.98,
"AddedItemProductName": "A Tale of Two Cities",
"AddedItemProductID": "1112",
"AddedItemSKU": "TALEOFTWO",
"AddedItemCategories": ["Fiction", "Classics"],
"AddedItemImageURL": http://www.example.com/path/to/product/image2.png,
"AddedItemURL": http://www.example.com/path/to/product2,
"AddedItemPrice": 19.99,
"AddedItemQuantity": 1,
"ItemNames": ["Winnie the Pooh", "A Tale of Two Cities"],
"CheckoutURL": http://www.example.com/path/to/checkout,
"Items": [{
"ProductID": "1111",
"SKU": "WINNIEPOOH",
"ProductName": "Winnie the Pooh",
"Quantity": 1,
"ItemPrice": 9.99,
"RowTotal": 9.99,
"ProductURL": http://www.example.com/path/to/product,
"ImageURL": http://www.example.com/path/to/product/image.png,
"ProductCategories": ["Fiction", "Children"]
},
{
"ProductID": "1112",
"SKU": "TALEOFTWO",
"ProductName": "A Tale of Two Cities",
"Quantity": 1,
"ItemPrice": 19.99,
"RowTotal": 19.99,
"ProductURL": http://www.example.com/path/to/product2,
"ImageURL": http://www.example.com/path/to/product/image2.png,
"ProductCategories": ["Fiction", "Classics"]
}
]
}]);
</script>