Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Klaviyo integration


Question

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 answers to this question

Recommended Posts

  • 0
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'?

Greeting, it's BaNgan from BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Youtube Gallery for Squarespace
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment
  • 0

Yeah I think the event is "add to cart"

Had the same problem before but instead of pondering about it for weeks I thought I'd just ask help LOL

I think to help you integrate it well try asking help from klaviyo experts from Klaviyo's directory here -> https://connect.klaviyo.com/ I personally have worked with CodeCrew and they are just flawlessly amazing.

They have a roadmap that not only makes your emails great but also educate you on everything.

Edited by ednaw
Added more info
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...