matomo-org / matomo-org/matomo-for-wordpress
Support a different currency per order (with WooCommerce integration)
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 145
- Forks
- 35
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 6
Description
Hi,
I use the "WooCommerce Price Based on Country" plugin where the currency is changed to the users local currency. This is very convenient and seamless for the visitors to my shop. However, when I look at the Matomo E-Commerce report, the orders are only shown in the base currency which is SEK in my shop since I am located in Sweden. However, I get orders in USD, Euro, UK Pounds. And those are reflected as 100 sek instead of 100 USD or Euro etc.
Is there a way that the e-commerce report can show accurate data and use the standard currency conversion from Yahoo and use the order currency code from the orders? In WooCommerce reporting, the sales report shows orders correctly in the order currency. Also, the standard WooCommerce revenue report shows the sales report in SEK by converting orders from order currencies to the shop currency using some standard currency rate (I guess from the currency rate I set in the currency plugin or some standard rate online.
Please fix this issue as the e-commerce report is pretty unusable. All other reports are excellent and gives so much of insights.
Best regards,
Vimal.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing how WooCommerce order currency data reaches the Matomo E-Commerce report, then compare its values with WooCommerce's currency-aware sales report. Verify the expected conversion or currency-code behavior from the issue; done means orders in USD, EUR, and GBP are represented accurately rather than as base-currency SEK.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, wordpress
- Domain
- analytics, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100