diff options
author | diosmosis <diosmosis@users.noreply.github.com> | 2020-03-05 15:57:41 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-05 15:57:41 +0300 |
commit | 10c8d80708832e3ae0dd1e8e5f64c91426f1e42f (patch) | |
tree | c212aa4df9936d65ffee895db50ac836cfb44b6a /plugins | |
parent | 091c51fec8c16abf613a68e0f0e0015448778d2c (diff) |
Avoid formatting ecommerce conversion rate twice (#15668)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Goals/Controller.php | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/plugins/Goals/Controller.php b/plugins/Goals/Controller.php index 9da9138fa3..3367fcaf93 100644 --- a/plugins/Goals/Controller.php +++ b/plugins/Goals/Controller.php @@ -24,17 +24,12 @@ use Piwik\View; */ class Controller extends \Piwik\Plugin\Controller { - const CONVERSION_RATE_PRECISION = 1; - /** * Number of "Your top converting keywords/etc are" to display in the per Goal overview page * @var int */ const COUNT_TOP_ROWS_TO_DISPLAY = 3; - const ECOMMERCE_LOG_SHOW_ORDERS = 1; - const ECOMMERCE_LOG_SHOW_ABANDONED_CARTS = 2; - protected $goalColumnNameToLabel = array( 'avg_order_revenue' => 'General_AverageOrderValue', 'nb_conversions' => 'Goals_ColumnConversions', @@ -59,10 +54,6 @@ class Controller extends \Piwik\Plugin\Controller } } - if (!is_numeric($conversionRate)) { - $conversionRate = sprintf('%.' . self::CONVERSION_RATE_PRECISION . 'f%%', $conversionRate); - } - return $conversionRate; } |