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
Add Two New segments #18953
Add Two New segments #18953
Conversation
add order revenue
update
add 2 tests
Revenue left in the cart still needs a condition on the query, but not sure how to do that. I notice lists of segments maybe needs a update as well https://developer.matomo.org/api-reference/reporting-api-segmentation |
update cart
update errors
@peterhashair Adding new column classes has a lot bigger impact than you may think. At least the way it is currently done. Having methods to update the column values shouldn't be needed here at all, as that would duplicate code. |
update segment, and add tests
@sgiehl thanks for the hints, I am still struggling to add an extra condition |
@peterhashair Unfortunately this one won't be easy. the |
update query on cart left in cart
update tests
update type
update
update checks
@sgiehl I think somehow it works. but on the bulk tests, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@peterhashair You need to "transform" the $matchType
parameter. In the segment definition it is ==
, but in SQL it would need to be =
. You can find something similar in the Segment class of MediaAnalytics plugin for example.
group into functions
update
update and
…y.xml update tests
@sgiehl I think this is working. But not sure where should I document this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't work correctly yet.
update support type
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have you actually checked/tested you changes once? Looking at the failing tests you would have noticed that the ones with the new segments are failing.
@sgiehl sorry, should be fixed now. |
update wrong variable
@peterhashair Seems that is working now. Regarding documentation. The segment listing doesn't need an update, as it is included from demo.matomo.cloud. See https://github.com/matomo-org/developer-documentation/blob/live/docs/4.x/reporting-api-segmentation.md A general documentation around segmentation would also be good to have. Currently it seems there is none, so I have created matomo-org/developer-documentation#630. Feel free to pick that one and start adding a new documentation with the findings you had while developing this issue. |
Description:
Fixes: #15985
Add Two New segment Order Revenue (Ecommerce). Revenue left in cart (Ecommerce)
Review