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 ecommerce conversion calculation in custom variables report #5828
Comments
Hi @ryrun thanks for the report. |
Hi @ryrun, I'm unable to reproduce this problem, if you still experience the bug, can you post a screenshot of the custom variables report w/ ecommerce orders being 0, and a screenshot your ecommerce log showing some ecommerce orders w/ custom variables? |
Ok, but i need some time. I'll recheck this issue next week. |
Hi @ryrun can you please post a screenshot with 2.12.1 showing the issue? it looks like it works in 2.12.1 |
So, the problem is still there. The custom variables report in ecommerce tab still show just 0. var pkBaseURL = (("https:" == document.location.protocol) ? "https://***/" : "http://***/");
try {
var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", ***);
piwikTracker.setCustomVariable(1, "CustomerStatus", "Bestandskunde", "page");
piwikTracker.addEcommerceItem("***", "***", "***", 99.99, 1);
piwikTracker.trackEcommerceOrder("***", 99.99, 99.99, 99.99, 99.99, 0.0);
piwikTracker.trackPageView();
piwikTracker.enableLinkTracking();
} catch (err) {
} Maybe our tracking is wrong? It works atleast for normal ecommerce tracking. Please note, that i've changed the values. |
Thanks for the feedback @ryrun In
replace (edit: i'm not 100% sure this will fix your issue - so let me know if not!) |
Hi @mattab i've changed the tracking code, i'll will post some updates soon. |
@mattab Problem is fixed for me. visit works fine for me. |
Good to know. I've updated the user guide at: https://piwik.org/docs/custom-variables/#tracking-a-custom-variable If you measure Goals or use Ecommerce Analytics, note that when the conversion occurs Piwik will copy any custom variables of scope "visit" in the Conversion. You can then view Conversion rates by Goal (and Ecommerce conversion rate) for each of your "visit" scope custom variables. |
A question for understanding: We track a custom variable "language" of scope "page" as the user is able to change the language. Which will not work for eCommerce segements view. This leaves two options: change the custom variable to scope "visit" or wait for #3950 and use that as segment instead of our custom variable. Any other options? |
@mattab Thanks for the fast response. Very appreciated. |
The custom variables report in the ecommerce tab show always 0 orders, which is wrong. We are tracking users with custom variables all the time and ecomemrce orders itself are correctly tracked. Only the custom variables report seems to be broken.
The text was updated successfully, but these errors were encountered: