Duplicate tracking of abandoned carts


#1

I have written a module for prestashop which supports ecommerce tracking.
My question is about how abandoned carts are counted for returning visitors and if an order was completed.

If a vistor returns should the same cart be counted multiple times as an abandoned cart ?
Statistics for the example below shows a total of 1667.- for abandoned carts. In fact there are just 4 distinct carts and only 2 have been abandoned, the other 2 are completed orders. The total left in the carts is actually 492.-

If a visitor finally places an order should that cart still be counted for abandoned carts ?

Visitor Log: 2 Orders and 6 abandoned carts
Revenue left in cart: Fr 247, Quantity: 1
Revenue left in cart: Fr 245, Quantity: 1
Revenue left in cart: Fr 245, Quantity: 1
Revenue: Fr 267, Quantity: 2
Revenue left in cart: Fr 310, Quantity: 1
Revenue left in cart: Fr 310, Quantity: 1
Revenue left in cart: Fr 310, Quantity: 1
Revenue: Fr 310, Quantity: 1

All visitors have the same IP address but multiple browsers and sessions.


(Matthieu Aubry) #2

This bug was fixed in trunk, please use the latest beta: http://builds.piwik.org/piwik-1.6b4.zip


#3

Thanks,
But in Version 1.6b4 Dashboard remains blank for Safari. Works in FF.
Install into empty database does not solve safari issue.
Have read Post 301 Moved Permanently but post is old.
Btw in piwik online demo has same problem with safari.


(Matthieu Aubry) #4

PLease try beta5: http://builds.piwik.org/piwik-1.6b5.zip


#5

Hello Matt,
Installation and upgarde with beta5 worked.
Tried to replay above scenarion.

Two sessions with the same IP.
First session abandon cart.
Second session place order.

In the second session the abandoned cart was converted into an order.
The abandoned cart from the first session remains in the statistics.

What is the expected behavior ?
I observed: A filled cart is shown in the visitor log on every visit as separate abandoned cart except for the visit the order is executed.

I can make another test with three sessions to check if the total of abandoned carts is sumed or not. For me it make sense if the report shows each visit a filled cart was left (items could be added or removed). But in the totals only the total of the last visit should be reported and not the sum of all of them. And if the order is executed in the end I would expect the total of abandoned cart to be inaffected by this order (add cart amount to total of orders and subtract cart amount from total of abandoned carts).


#6

Another test proved that abandoned carts are sumed.

Abandoned Cart from Session 1
Einnahmen left in cart: Fr 194, Quantity: 2
19: Schal-B (karo), Quantity: 1, Price: Fr 165
59: Ohrschmuck Yellow (earrings), Quantity: 1, Price: Fr 29

Ecommerce order (#000006) from Session 2
Einnahmen: Fr 194, Quantity: 2
19: Schal-B (karo), Quantity: 1, Price: Fr 165
59: Ohrschmuck Yellow (earrings), Quantity: 1, Price: Fr 29

Abandoned Cart from Session 2
Einnahmen left in cart: Fr 102, Quantity: 1

Abandoned Cart from Session 3
Einnahmen left in cart: Fr 412, Quantity: 2
54: Ovali C (ovali), Quantity: 1, Price: Fr 102
71: Pinkymali Violet (pinkymali), Quantity: 1, Price: Fr 310

Abandoned Carts
3 Visits with Abandoned Cart Fr 708 Einnahmen left in cart

1 Ecommerce Orders (1 Besuche) Fr 194 Total Revenue

In my opionion Total of Abandoned cart should be Fr. 412.-
296 should have been removed from total (194.- when the first order was placed in Session 2 and 102.- at the beginning of Session 3


(Matthieu Aubry) #7

Thanks for the report! the bug was fixed in trunk: Ecommerce tracking: cart not deleted when order is made · Issue #2689 · matomo-org/matomo · GitHub

please wait a few days for next beta / RC