How to remove canceled orders from e-commerce?

Hi all,
congratulations for Piwik.

How do I remove canceled orders for consistent data in the e-commerce?

Sorry for my English

Thanks.

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

If the transaction is on a different day than today, you will also need to tell piwik to re-process the stats of the past date: How to - Analytics Platform - Matomo

Hello, thanks for the reply. I tried to cancel an order but did not work.

The orderid is 3264 on 2012/08/27
Here is the code I used:


<script type="text/javascript">
var pkBaseURL = (("https:" == document.location.protocol) ? "https://mysite.com/" : "http://mysite.com/");
document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
</script><script type="text/javascript">
try {
var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 23);
piwikTracker.trackEcommerceOrder("3264",0);
piwikTracker.trackPageView();
piwikTracker.enableLinkTracking();
} catch( err ) {}
</script><noscript><p><img src="http://mysite/piwik.php?idsite=23" style="border:0" alt="" /></p></noscript>

API Call: http://mysite.com/index.php?module=API&method=CoreAdminHome.invalidateArchivedReports&idSites=23&dates=2012-08-29,2012-08-27&token_auth=mytoken

How can I resolve?
thanks again

Sorry for my english (Google Translate)

Thanks for the report. Can you please create a bug report with your message in dev.piwik.org ? we will follow up over there. Thanks!

Looks like this still is a problem? Any updates on how to correctly remove/cancel an order (for example because of a refund)?

Thanks!