Mark Ku's Blog

What is Cart Abandonment?

This is when a consumer adds items to their shopping cart but doesn't complete the checkout process.

Cart Abandonment Rate Formula

Cart Abandonment Rate = 1 - (Number of Completed Checkouts / Total Number of Carts Created)

15 Important Cart Abandonment Statistics for 2022

Reference Link

Implementing an Automated Marketing Tool - What is Omnisend?

Omnisend is an email and SMS marketing tool. It works by sending data from the shopping process on an e-commerce site to Omnisend's servers. Marketers can use Omnisend's user-friendly backend tools to dynamically configure and implement marketing strategies, achieving marketing automation. It also allows for creating online catalogs and newsletters to attract potential customers, segment customer lists, track customer behavior journeys, and formulate effective future marketing strategies with the help of rich backend data reports.

Official Website

How It Works

Based on events defined in Omnisend, we send the consumer's shopping parameters to the Omnisend API. Omnisend then sends cart abandonment emails according to the established Automation.

How Omnisend's Abandoned Cart Works

Omnisend abandoned cart email and SMS recovery flowchart
Omnisend abandoned cart email and SMS recovery flowchart

Sending Data to the Omnisend API Based on the Shopping Flow

User shopping flow and API endpoints for cart, payment, and fulfillment
User shopping flow and API endpoints for cart, payment, and fulfillment

Breakdown of Work Steps

  • Embed the Omnisend code snippet
  • Create a cart Automation
  • Integration testing (verify that cart abandonment emails are received after posting to the API)
  • Integrate into the actual pages
  • Testing

Problems Encountered

Still Receiving Cart Abandonment Emails After a Successful Order

Omnisend uses the createAt field in the create Order API to decide whether to send a cart abandonment email. The createAt parameter must be converted to ISO 8601 format.

new Date().toISOString()​
JavaScript code showing CreatedAt field using new Date .toISOString
JavaScript code showing CreatedAt field using new Date .toISOString

Not Receiving Cart Abandonment Emails on the Second Order Attempt

  • It's possible that Omnisend's cart id cannot be reused. However, due to our existing architecture, the cartId was being duplicated. Without a major architectural change, we manually deleted the cartId upon order creation.
  • However, it could also be caused by the Frequency setting, where once triggered, it won't trigger again. Frequency setting with 'Do not re-trigger workflow' toggle off

Debugging

Debug Link Access logs interface displaying e-commerce cart API requests

Results

Because the US market is so large, what seems like a simple, traditional email marketing strategy can generate significant returns in just a few days. Omnisend abandoned cart email workflow showing $290,951 sales

References

【Omnisend】E-commerce Marketing Tool, 5 Tips to Help You Increase Sales Conversion Rate
omnisend guides
How to Generating API Key
Abandoned Cart

Author

Mark Ku

擁有 10+ 年經驗的資深軟體工程師,現為 AI 應用 Builder,專注於大型平台架構與簡化複雜系統設計,從電商系統到訂閱與收費平台,結合 AI Agent、AI 整合與自動化開發,打造高效率且可持續演進的產品技術基礎。Read More

Found this useful?

The author's free tools, daily podcasts and newsletter are all here.

Mark Ku · This article is licensed under CC BY 4.0. Credit the author and link back to the original when reusing it.

Comments

Subscribe to Newsletter

Subscribe to get new posts delivered instantly — never miss a tech share.

By submitting, you agree to receive emails. You can anytime.

Popular Posts

View all
Mark Ku
··602

Oracle Cloud Always Free Tier: Linux Host and Static IP for a $0 Cloud Solution

Oracle Cloud Always Free Tier: Linux Host and Static IP for a $0 Cloud Solution
Mark Ku
··490

Say Goodbye to Postman's Fee Trap! A Hands-on Guide to Bruno, the Open-Source Git-Native API Testing Powerhouse.

Say Goodbye to Postman's Fee Trap! A Hands-on Guide to Bruno, the Open-Source Git-Native API Testing Powerhouse.
Mark Ku
··333

A Free, Open-Source, Notion-like Knowledge Base — A Complete Guide to Deploying and Backing Up Outline Wiki

A Free, Open-Source, Notion-like Knowledge Base — A Complete Guide to Deploying and Backing Up Outline Wiki
Mark Ku
··264

Training Your Own AI Voice: Hardware Requirements, Open-Source Model Comparison, and LoRA Fine-Tuning

Training Your Own AI Voice: Hardware Requirements, Open-Source Model Comparison, and LoRA Fine-Tuning
Mark Ku
··221

Building an Efficient API Management Platform: Deploying Kong Gateway from Scratch - Part 1

Building an Efficient API Management Platform: Deploying Kong Gateway from Scratch - Part 1
Mark Ku
··215

Setting Up Samba on Ubuntu to Share Folders with Windows 11

Setting Up Samba on Ubuntu to Share Folders with Windows 11