Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possibility of cancelling orders in an easy on/off kind of way #5292

Closed
anonymous-matomo-user opened this issue Jun 3, 2014 · 4 comments
Closed
Labels
duplicate For issues that already existed in our issue tracker and were reported previously. Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.

Comments

@anonymous-matomo-user
Copy link

According to http://forum.piwik.org/read.php?2,93018 the only way to cancel an ecommerce order is to submit the ID again with a revenue of zero. This seems like a workaround, especially if the re-processing of past logs has to be implemented too, and I didn't find any feature requests or discussions about this topic yet.

I would propose a method of cancelling (and uncancelling) an order through the tracking API. This would have several advantages:

  • Order summary stays intact, a cancelled order can be reactivated easily. This is not just theory: A customer may order something, then forget to pay it, the order is automatically cancelled, and then the customer at last decides to go through payment for the order which necessitates reviving the order.
  • Cancelled orders are of interest for ecommerce statistics and would be a worthy possible segment, even more so than abandoned carts. After all, people who cancel their orders after placing them have come much further than someone who just put something in their cart, and analyzing the reasons for order cancellations could be very useful. For many online shops cancelled orders can be as high as 20-30%, for various reasons.
  • Maybe it would be possible to automatically reprocess the ecommerce statistics which are affected by the changed order, which would be a huge help especially for novice users of piwik (and even advanced users).
  • A reason for cancellation could be optional, in order to differentiate these customer segments even more, and the cancellation could be shown in the visitor log (this is just how I would picture it).

I suspect many users of piwik are not tracking their ecommerce orders fully yet, and if they do, their statistics do not represent their actual sales. An easy way of cancelling an order would make it much easier to use the ecommerce plugin in a useful way, and would be a great feature for piwik.
Keywords: order, ecommerce, cancel

@mattab
Copy link
Member

mattab commented Jun 5, 2014

Thanks for the suggestion! It makes sense that Piwik should let you track cancelled ecommerce orders with more accuracy and more useful in general. Keep the feedback coming :)

@anonymous-matomo-user anonymous-matomo-user added this to the 2.x - The Great Piwik 2.x Backlog milestone Jul 8, 2014
@mattab mattab modified the milestones: Mid term, Long term Oct 11, 2014
@mattab mattab modified the milestones: Long term, Mid term Dec 23, 2015
@slawa-dev
Copy link

slawa-dev commented Nov 17, 2016

@mattab

To remove an Ecommerce transaction, send the ecommerce transaction in javascript with the same orderId and with a revenue of 0 -> it should cancel the transaction.

Is it possible to do this without JS? e.g. with Tracking HTTP API
So I can generate a HTTP request (POST) from shop server to piwik server to cancel an order?

@mattab
Copy link
Member

mattab commented Nov 20, 2016

Hi @S1awa Yes it is possible to use Tracking API directly (the Piwik JavaScript actually uses the Tracking API), see the API reference at: http://developer.piwik.org/api-reference/tracking-api

@mattab
Copy link
Member

mattab commented Dec 27, 2016

We'll make it happen here: #10893

@mattab mattab closed this as completed Dec 27, 2016
@mattab mattab added the duplicate For issues that already existed in our issue tracker and were reported previously. label Dec 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate For issues that already existed in our issue tracker and were reported previously. Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Projects
None yet
Development

No branches or pull requests

3 participants