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

Ecommerce Tracker API: allow to update, or cancel, any order given its Order ID #10893

Open
slawa-dev opened this issue Nov 22, 2016 · 8 comments
Assignees
Labels
c: Ecommerce For issues related to Ecommerce analytics within Matomo https://matomo.org/guide/reports/ecommerce/ Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical.
Milestone

Comments

@slawa-dev
Copy link

slawa-dev commented Nov 22, 2016

Related issue: #5292

I am trying to remove a canceled order with the Tracking API:
http://developer.piwik.org/api-reference/tracking-api

Here is how the call looks like:
https://mypiwik.com/piwik.php?idsite=7&rec=1&url=https%3A%2F%2Fmysite.com&apiv=1&idgoal=0&ec_id=1611210002&revenue=0&ec_st=0&ec_tx=0&ec_sh=0&ec_dt=0&token_auth=xxxxxxx

It appears in piwik

order

But even after I invalidate and re-process the past reports (http://piwik.org/faq/how-to/#faq_155) the statistics show revenue for the original order.
stats

Am I missing something?

@mattab
Copy link
Member

mattab commented Dec 5, 2016

@S1awa in the visitor log for this day, do you still see the "cancelled order" or do you just see the new "order with revenue 0" ?

@slawa-dev
Copy link
Author

@mattab I still see the original order and the log from when the API cancel command was called, but it is kind of incomplete.
I think something might be missing in my API call. The log for the API call shows something was ordered but does not show an Ecommerce order with Revenue of 0 like the original order. It has "0 Action"
And the original order in the log is still present with original revenue and not 0.

This is from The API call:
order

This is the original order:
order

@mattab mattab added this to the 3.0.1 milestone Dec 6, 2016
@mattab mattab self-assigned this Jan 7, 2017
@mattab mattab modified the milestones: 3.0.2, 3.0.1 Jan 9, 2017
@mattab mattab added the Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. label Jan 10, 2017
@mattab
Copy link
Member

mattab commented Jan 23, 2017

Actually we wont be working on this one at this point

@mattab mattab removed this from the 3.0.2 milestone Jan 23, 2017
@mattab mattab added this to the Backlog (Help wanted) milestone Feb 20, 2017
@mattab mattab changed the title Ecommerce: cancelling orders Ecommerce Tracker API: allow to update, or cancel, any order given its Order ID Jul 21, 2020
@mattab mattab removed this from the Backlog (Help wanted) milestone Jul 21, 2020
@mattab
Copy link
Member

mattab commented Jul 21, 2020

Renamed issue title to also include in the scope the "Update order" feature.

@mattab
Copy link
Member

mattab commented Nov 16, 2020

fyi: When tracking an order that has the same OrderID Matomo gives the following error:
Invalid non-unique idsite/idorder combination (1, 000143), conversion was not inserted.

@mattab mattab added the Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical. label Nov 18, 2020
@sigmet
Copy link

sigmet commented Nov 19, 2020

I would also like to give a shout that "update e-commerce order" would be a very useful feature.

@HartLarsson
Copy link

fyi: When tracking an order that has the same OrderID Matomo gives the following error: Invalid non-unique idsite/idorder combination (1, 000143), conversion was not inserted.

i've exactly the same error too:

Error in Matomo (tracker): Invalid non-unique idsite/idorder combination (1, LETCPBUVH), conversion was not inserted.

@mattab mattab added this to the Impact Backlog milestone Dec 31, 2022
@MatomoForumNotifications

This issue has been mentioned on Matomo forums. There might be relevant details there:

https://forum.matomo.org/t/duplicate-tracking-of-ecommerce-orders/31789/5

@mattab mattab added the c: Ecommerce For issues related to Ecommerce analytics within Matomo https://matomo.org/guide/reports/ecommerce/ label Dec 10, 2023
@mattab mattab modified the milestones: 5.x.0 - Priority issues, 5.6.0 Jan 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: Ecommerce For issues related to Ecommerce analytics within Matomo https://matomo.org/guide/reports/ecommerce/ Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical.
Projects
None yet
Development

No branches or pull requests

5 participants