-
Notifications
You must be signed in to change notification settings - Fork 165
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
trackOrder function doesn't track ecommerce events #456
Comments
Hi @miletliyusuf, thanks for the report. This is very interesting. I noticed that we did not have an implementation for ecommerce tracking in the example application. |
Hi @brototyp, thanks for the answer. I think the example here won't work because of the reason that I've mentioned above. To demonstrate better:
In trackOrder function on iOS framework, creates an Please let me know if you need more guidance in order to understand the issue ✌️ |
Hi @miletliyusuf, that's the thing. The example does work. I did execute the example code and this is what I see server side: Would you expect something else? |
Maybe the problem was on our side that we were trying to
|
Hey @miletliyusuf, I just tried out the same thing, tracking an order without items, and I was able to reproduce you issue. It looks like the server doesn't accept orders if they don't have at least one item in it. @mattab Can you confirm this? Is there anything possible to do, other than adding a placeholder item? |
Hello 👋 ,
As described in the title, when you try to trigger event for ecommerce over trackOrder function it doesn't triggered (probably)because of below reason by the API description.
API: https://developer.matomo.org/api-reference/tracking-api#optional-ecommerce-info
Above the
trackOrder
function creates the Event but, by default, the goal id is nil and there is no way to set it by this function.For the workaround:
I've set custom Event for tracking ecommerce event something like below:
I hope, the workaround is fine? or do you folks have any other suggestion ?
The text was updated successfully, but these errors were encountered: