Closed mattab closed 13 years ago
I would suppose that is a bug. Checking the code I found this in plugins/Goals/Controller.php:
private function getConversionRateReturningVisitors( $idSite, $period, $date, $idGoal = false )
{
// visits converted for returning for all goals = call Frequency API
if($idGoal === false)
{
$request = new Piwik_API_Request("method=VisitFrequency.getConvertedVisitsReturning&idSite=$idSite&period=$period&date=$date&format=original");
$nbVisitsConvertedReturningVisitors = $request->process();
}
// visits converted for returning = nb conversion for this goal
else
{
$nbVisitsConvertedReturningVisitors = Piwik_Goals_API::getInstance()->getConversions($idSite, $period, $date, $segment=false,$idGoal);
}
// all returning visits
$request = new Piwik_API_Request("method=VisitFrequency.getVisitsReturning&idSite=$idSite&period=$period&date=$date&format=original");
$nbVisitsReturning = $request->process();
return Piwik::getPercentageSafe($nbVisitsConvertedReturningVisitors, $nbVisitsReturning, Piwik_Goals::ROUNDING_PRECISION);
}
If I seen that right, if a goalid is given, the plugin uses the overall conversion rate for calculating the rate for returning visitors?
(In [4691]) Refs #898 Work in progress (but should leave trunk stable and not break anything)
new API functions to request Items (product) reports: getItemsSku, getItemsName, getItemsCategory. See doc:
If you are tracking Ecommerce orders and products on your site, the functions "getItemsSku", "getItemsName" and "getItemsCategory" will return the list of products purchased on your site, either grouped by Product SKU, Product Name or Product Category. For each name, SKU or category, the following metrics are returned: Total revenue, quantity, average price, average quantity, number of orders with this product.
By default, these functions returns the 'Products purchased'. These functions also accept an optional parameter &abandonedCarts=1. If the parameter is set, it will instead return the metrics for products that were left in an abandoned cart therefore not purchased.
The API also lets you request overall Goal metrics via the method "get": Conversions, Visits with at least one conversion, Conversion rate and Revenue. If you wish to request specific metrics about Ecommerce goals, you can set the parameter &idGoal=ecommerceAbandonedCart to get metrics about abandoned carts (including Lost revenue, and number of items left in the cart) or &idGoal=ecommerceOrder to get metrics about Ecommerce orders (number of orders, visits with an order, subtotal, tax, shipping, discount, revenue, items ordered)
Edit 2020: If you still experience this issue please leave a comment with a screenshot and some information.
Is this expected? if yes, create FAQ to explain why. If not, this is a bug to fix.
see http://forum.piwik.org/read.php?2,70802