﻿![]()

#### 

#### Why do you need it?

According to [statistics](https://www.statista.com/statistics/457078/category-cart-abandonment-rate-worldwide/#:~:text=In%20March%202021%2C%20almost%2080,an%2089.11%20percent%20abandonment%20rate.#:~:text=In%20March%202021%2C%20almost%2080,an%2089.11%20percent%20abandonment%20rate.##:~:text=In%20March%202021%2C%20almost%2080,an%2089.11%20percent%20abandonment%20rate.#:~:text=In%20March%202021%2C%20almost%2080,an%2089.11%20percent%20abandonment%20rate.) near *80% of online shopping orders are abandoned*, i.e. they are not converted into a purchase.

On the other side, according to [Moonsend](https://moosend.com/blog/cart-abandonment-stats):

- near 45% of Abandoned Cart emails are opened
- near 50% of opened emails are clicked: *21% of all the emails are clicked*
- near 50% of users who clicked, completed their purchase: **10.7% - is a conversion rate of completed purchases**

For more information, this [infographic](https://moosend.com/blog/cart-abandonment-rate-infographic) can be checked.

That means, abandoned cart emails can help your business **to bring customers back** to website and near **10.7% of them will complete abandoned purchase**.

#### About Sitecore Send

[Sitecore Send](https://www.sitecore.com/products/send) or [Moosend](https://moosend.com) - is an [email marketing platform](https://help.moosend.com/hc/en-us/articles/207375629-What-is-Moosend-).
It allows to create and track activity of the following topics:

- Email Campaigns: Regular, A/B Testing, Repeatable
- [Transactional Emails](https://moosend.com/blog/transactional-emails): e.g. email address confirmation, account creation, order confirmation, etc.
- [Sign-Up and Subscription Forms](https://help.moosend.com/hc/en-us/articles/360011093279-How-can-I-create-a-subscription-form-): forms, that allows to track your website visitors.
- Automation Workflow: allows to create [automated marketing campaigns](https://moosend.com/marketing-automation), e.g. **Abandoned Cart automation**.

#### How Abandoned Cart works with Sitecore Send

![Moosend - Abandoned Cart Automation Scheme](https://www.brimit.com/-/media/images/blog/sitecore-send-1-abandoned-cart/scheme_01.png)

Abandoned cart works in the following way:

1. We need to identify user
2. Track add to cart event with JS library
3. Track order completed (if it was) with JS library
4. Configured Automation will work to identify abandoned carts and send emails to customers.

#### Abandoned Cart Automation

##### Create a free Moosend account

You can [try](https://identity.moosend.com/register) Moosend for free during 30 days. See [here](https://help.moosend.com/hc/en-us/articles/4409601758994-Create-an-account-in-our-platform) how to create a new account. And your free trial allows you to create an Automation Workflow.

##### Create Abandoned Cart Automation

1. Login to the moosend site.
2. Go to Automations section:

    ![Moosend - Automation Section](https://www.brimit.com/-/media/images/blog/sitecore-send-1-abandoned-cart/moosend_automation_00_tab.png)
3. Create a new Automation from recipe:

    ![Moosend - Create Automation from Recipe](https://www.brimit.com/-/media/images/blog/sitecore-send-1-abandoned-cart/moosend_automation_01_newfromrecipe.png?h=890&amp;w=1879&amp;hash=88F3A879868013DE42C0A6E217C357E4)
4. Choose predefined Abandoned Cart Automation recipe:

    ![Moosend - Choose Abandoned Cart](https://www.brimit.com/-/media/images/blog/sitecore-send-1-abandoned-cart/moosend_automation_02_chooseabandonedcart.png)
5. Now you can review the OOTB Abandoned Cart Automation:

    ![Moosend - OOTB Abandoned Cart Automation](https://www.brimit.com/-/media/images/blog/sitecore-send-1-abandoned-cart/moosend_automation_03_ootb_automation.png)
6. As you can see the created automation contains some errors and is incomplete:

    ![Moosend - Automation Not Completed](https://www.brimit.com/-/media/images/blog/sitecore-send-1-abandoned-cart/moosend_automation_04_notcompleted.png)
7. Lets start to resolve those conflicts. Firstly it's required to set website:

    ![Moosend - Abandoned Cart Set Website](https://www.brimit.com/-/media/images/blog/sitecore-send-1-abandoned-cart/moosend_automation_05_websiteisempty.png?h=378&amp;w=800&amp;hash=16DC36D14CE4F6A86253ED8A5AA53F71)
8. Then it's needed to populate campaign details: ![Moosend - Abandoned Cart Populate Campaign Details](https://www.brimit.com/-/media/images/blog/sitecore-send-1-abandoned-cart/moosend_automation_06_populate_campaign_details.png?h=380&amp;w=800&amp;hash=604C6C031EC4666994D5C5874C5523BC)
    - Enter the Subject of the email campaign
    - Select sender from sender list. If the list is empty [this guide](https://help.moosend.com/hc/en-us/articles/4402717408146-Set-up-a-new-sender) can be used to create sender.
    - In Campaign Editor section press 'Go to editor' button. You are redirected to newsletter design page. Choose 'Template library' there:

        ![Moosend - Choose Tempalte Library](https://www.brimit.com/-/media/images/blog/sitecore-send-1-abandoned-cart/moosend_automation_07_templatelibrary.png?h=381&amp;w=800&amp;hash=5CAD5B82FA1C82359E6B228481CADE80)
    - In template library choose any Abandoned Cart template you like:

        ![Moosend - Select Existing Template](https://www.brimit.com/-/media/images/blog/sitecore-send-1-abandoned-cart/moosend_automation_08_choose_existing_template.png?h=381&amp;w=800&amp;hash=8AACC0A97387A4E2B9D28A1F5A356308)
    - Click 'Use campaign and continue' button:

        ![Moosend - Use campaign and continue](https://www.brimit.com/-/media/images/blog/sitecore-send-1-abandoned-cart/moosend_automation_09_updateandcontinue.png?h=381&amp;w=800&amp;hash=E9D44907725BE81755BB334FB3C5DEDA)
    - Select emails per day. For real automation it should be set to 1 email per day to not spam users, but for testing purpose it can be set to Unlimited.
    - Save campaign and close the popup:

        ![Moosend - Use campaign and continue](https://www.brimit.com/-/media/images/blog/sitecore-send-1-abandoned-cart/moosend_automation_09_updateandcontinue.png?h=381&amp;w=800&amp;hash=E9D44907725BE81755BB334FB3C5DEDA)
9. For testing purpose the wait time could be reduced from 45 minutes to 5 minutes or even 1 minute.
10. Make sure, the Automation campaign is activated:

    ![Moosend - Activate Automation campaign](https://www.brimit.com/-/media/images/blog/sitecore-send-1-abandoned-cart/moosend_automation_11_activate.png?h=382&amp;w=800&amp;hash=8AE348B8DCAAEC9F5F4AA7CB7AC0E927)

#### Sitecore Send Javascript integration

To trigger the campaign, it's needed to add Moosend tracking library to your website. 

1. Go to websites:

    ![Moosend - websites](https://www.brimit.com/-/media/images/blog/sitecore-send-1-abandoned-cart/js_01.png?h=326&amp;w=800&amp;hash=60057F4F52E9DE2DD69E2137FC3CC492)
2. Select your website and click 'Install connection script' =&gt; 'Custom Installation':

    ![Moosend - install connection script](https://www.brimit.com/-/media/images/blog/sitecore-send-1-abandoned-cart/js_02.png?h=359&amp;w=800&amp;hash=043B64C5523F4886F686C0AB481C4530)
3. Follow the guide on that page. The following script should be added to `<head>` tag on all of your pages:

    ```
    <script>
    //load TrackerJS
    !function(t,n,e,o,a){function d(t){var n=~~(Date.now()/3e5),o=document.createElement(e);o.async=!0,o.src=t+"?ts="+n;var a=document.getElementsByTagName(e)[0];a.parentNode.insertBefore(o,a)}t.MooTrackerObject=a,t[a]=t[a]||function(){return t[a].q?void t[a].q.push(arguments):void(t[a].q=[arguments])},window.attachEvent?window.attachEvent("onload",d.bind(this,o)):window.addEventListener("load",d.bind(this,o),!1)}(window,document,"script","//cdn.stat-track.com/statics/moosend-tracking.min.js","mootrack");
    //tracker has to be initialized otherwise it will generate warnings and wont sendtracking events
    mootrack('init', 'YOUR_WEBSITE_ID_HERE');
    </script>
    ```
4. Identify visitors:

    ```
    mootrack('identify', 'john@doe.com');
    ```
5. Track add to cart event:

    ```
    // information about added product:
    var product = {
     productId: 'PRODUCT_101',
     price: 12.02,
     url: 'http://your.store/product-101',
     quantity: 2,
     total: 24.04,
     name: 'Product Name 101',
     image: 'http://your.store/images/PRODUCT_101'
    };
    // track event:
    mootrack('trackAddToOrder', product.productId, product.price, product.url, product.quantity, product.total, product.name, product.image);
    ```
6. Track order created event:

    ```
    // get information about ordered product:
    var product1 = {
     productId: 'PRODUCT_101',
     price: 12.02,
     url: 'http://your.store/product-101',
     quantity: 2,
     total: 24.04,
     name: 'Product Name 101',
     image: 'http://your.store/images/PRODUCT_101'
    };
    var product2 = ...;
    // list of all products from order
    var products = [product1, product2, ...];
    // track event:
    mootrack('trackOrderCompleted', products);
    ```

#### Upcoming

In the next article we will review Sitecore Send Javascript API in deep and then I'm going to tell you how to connect Moosend with Sitecore CDP, so you don't need to take care of Javascript integration.

#### Sitecore Send Series

[Abandoned Cart with Sitecore Send](https://www.brimit.com/blog/sitecore-send-1-abandoned-cart)

[Sitecore Send Http API](https://www.brimit.com/blog/sitecore-send-2-http-api)

###### Author

[!\[Igor Zharikov - Senior Sitecore Developer, Sitecore MVP\](https://www.brimit.com/-/jssmedia/feature/blogs/authors/igor-zharikov-2.jpg?h=700&amp;iar=0&amp;w=700&amp;hash=292A84E8CB3E5CE57CA743385CFB1464)
Igor Zharikov
Sitecore MVP / Senior Sitecore Developer](https://www.brimit.com/blog/author?authors=Igor%20Zharikov)

#### More on Sitecore

[!\[How Vercel Will Help You Save Effort When Deploying Sophisticated Sitecore Projects\](https://www.brimit.com/-/jssmedia/project/brimit/blog/2024/vercel_cover-image.png)
#Guides#How-toDXPE-commerce
##### How Vercel Will Help You Save Effort When Deploying Sophisticated Sitecore Projects
Optimize and accelerate the development and deployment of complex multisite Sitecore projects.
Alexei Vershalovich on July 17, 2024](https://www.brimit.com/blog/how-vercel-will-help-you-save-effort-when-deploying-sophisticated-sitecore-projects)

[!\[Training Up Tomorrow's Sitecore MVPs: a Mentoring Success Story\](https://www.brimit.com/-/jssmedia/project/brimit/blog/2023/sitecore-mentoring---cover-image.png)
#How-toDXP
##### Training Up Tomorrow's Sitecore MVPs: a Mentoring Success Story
How to participate in the Sitecore Mentor program and help younger colleagues jump-start a career in Sitecore development.
Sergey Baranov on October 2, 2023](https://www.brimit.com/blog/training-up-tomorrows-sitecore-mvps)

[!\[Going Headless. Part 2: When a Headless CMS Is Your Best Bet (if you have Sitecore)\](https://www.brimit.com/-/jssmedia/project/brimit/blog/2022/headless/adobestock_456986731.jpg)
#How-toDXPE-commerce
##### Going Headless. Part 2: When a Headless CMS Is Your Best Bet (if you have Sitecore)
Discover how a headless CMS can benefit organizations that use Sitecore.
Daniil Raschupkin, Palina Trokhautsava on September 15, 2022](https://www.brimit.com/blog/going-headless-part-2-when-a-headless-cms-is-your-best-bet-if-you-have-sitecore)

![](https://bat.bing.net/action/0?ti=187017043&amp;tm=gtm002&amp;Ver=2&amp;mid=ddc9b47e-72eb-4128-9546-145b167f16eb&amp;bo=2&amp;gtm_tag_source=1&amp;pi=0&amp;lg=en-US&amp;sw=800&amp;sh=600&amp;sc=24&amp;nwd=1&amp;tl=Abandoned%20Cart%20with%20Sitecore%20Send&amp;kw=Abandoned%20Cart%20with%20Sitecore%20Send&amp;p=https%3A%2F%2Fwww.brimit.com%2Fblog%2Fsitecore-send-1-abandoned-cart&amp;r=&amp;lt=352&amp;evt=pageLoad&amp;sv=2&amp;asc=D&amp;cdb=AQAY&amp;rn=404944)