Jump to content

Recommended Posts

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>

 

Link to comment
  • 2 months later...
On 8/4/2021 at 2:40 AM, greeneyedmedia said:

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>

 

The event you showed is 'Add to cart'?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.