# Segment Magento 2 negative URL abandoned cart

**URL:** <https://forum.mautic.org/t/segment-magento-2-negative-url-abandoned-cart/22554>\
**Category:** General Discussion\
**Created:** [February 1, 2022, 12:15pm UTC](https://forum.mautic.org/t/segment-magento-2-negative-url-abandoned-cart/22554 "2022-02-01T12:15:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![iero](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/iero/32/6504_2.png) [@iero](https://forum.mautic.org/u/iero)\
**Post date:** [February 1, 2022, 12:15pm UTC](https://forum.mautic.org/t/segment-magento-2-negative-url-abandoned-cart/22554/1 "2022-02-01T12:15:06Z")

</div>

hi,  
We are Magento 2 experts and we think Mautic is a great option, we already connected, we are syncing every customers, no problem, our problem is the creation of segments  
for example, we need to create abandoned cart, so, the option we see is by url, if some one arrive to /cart/ it means he added products, however we need to remove the ones who purchase, people who arrive at /success/, this removal does not exist, please see screenshot

 ![bbbb](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/a/a4f4ae420fc69b8d4381b00b0ca0e654891d2db0.jpeg)

Maybe Im not using the correct option, any idea?

---

<div class="post-metadata">

**Author:** ![leoschuler](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/leoschuler/32/4798_2.png) [@leoschuler](https://forum.mautic.org/u/leoschuler)\
**Post date:** [February 1, 2022, 3:29pm UTC](https://forum.mautic.org/t/segment-magento-2-negative-url-abandoned-cart/22554/2 "2022-02-01T15:29:40Z")

</div>

1. you can create a segment called “Success Purchase” which includes everyone who visit the /success url.

2. then create another segment for people who visit the /cart url AND is not a member of the “Success Purchase” segment (Segment membership is the filter you should look for).

keep in mind that, if the user start another purchase and didn’t finish, he will still be in the Success Purchase segment, so if your e-commerce have recurring purchase you may need to filter the urls visit by the page hit date as well, so if the same user start adding new product to the cart one month after its last purchase, for example, the data from last month does not affect your segments.

---

<div class="post-metadata">

**Author:** ![iero](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/iero/32/6504_2.png) [@iero](https://forum.mautic.org/u/iero)\
**Post date:** [February 1, 2022, 3:54pm UTC](https://forum.mautic.org/t/segment-magento-2-negative-url-abandoned-cart/22554/3 "2022-02-01T15:54:49Z")

</div>

very thanks, i haven’t thought that way
