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

addEcommerceItem tracks only last item with same sku #7321

Closed
242bpm opened this issue Mar 1, 2015 · 1 comment
Closed

addEcommerceItem tracks only last item with same sku #7321

242bpm opened this issue Mar 1, 2015 · 1 comment
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@242bpm
Copy link

242bpm commented Mar 1, 2015

In case you sell customizable (custom-made) goods, addEcommerceItem tracks only the last item.

Example:
// jalousie - 82x181cm, color: silver, remote control: yes
_paq.push(['addEcommerceItem',"1143", "jalousie", "", 196.55, 1]);
// jalousie - 83.5x181cm, color: silver, remote control: no
_paq.push(['addEcommerceItem',"1143", "jalousie", "", 75.20, 1]);

In this case only the last item gets tracked.

@mattab
Copy link
Member

mattab commented Mar 1, 2015

Hi @242bpm Thanks for the report. This is not a bug but it is by design that in Piwik Ecommerce tracking the Product SKU (the first parameter to addEcommerceItem is the unique key for the product. Therefore if you sell custom made product, please append to the SKU an identifier so that the SKU is different for each custom made product.

@mattab mattab closed this as completed Mar 1, 2015
@mattab mattab added the answered For when a question was asked and we referred to forum or answered it. label Mar 1, 2015
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