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

Wrong data in stats after trackEcommerceOrder #11092

Closed
netslovdlyasnov opened this issue Dec 26, 2016 · 1 comment
Closed

Wrong data in stats after trackEcommerceOrder #11092

netslovdlyasnov opened this issue Dec 26, 2016 · 1 comment
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@netslovdlyasnov
Copy link

Hello.
Here is the process:
_paq.push(['addEcommerceItem', '1', 'item1', false, 100, 20]);
_paq.push(['addEcommerceItem', '2', 'item2', false, 200, 30]);
till now everything looks ok in stats. ( views, price and everything else, including items and quantity of items in abandoned cart)
after
_paq.push(['trackEcommerceOrder', '1111', 8000]);
Order is created, revenue is ok, but quantity of items is zero, and product purchases are not updated.
Purchases of products are zero.
I am using latest piwik 3.0.0, clean install.

@mattab
Copy link
Member

mattab commented Dec 26, 2016

Hi @netslovdlyasnov

Before you call trackEcommerceOrder , you must again call addEcommerceItem for each item in the cart. This is how the ecommerce tracking works, see https://piwik.org/docs/ecommerce-analytics/#tracking-ecommerce-orders-items-purchased-required

@mattab mattab closed this as completed Dec 26, 2016
@mattab mattab added the answered For when a question was asked and we referred to forum or answered it. label Dec 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

2 participants