diff options
author | diosmosis <benaka@piwik.pro> | 2015-06-26 13:06:22 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2015-06-26 13:06:22 +0300 |
commit | 8f9aca0a3032ac9547a2f0c7edef7deecc716085 (patch) | |
tree | 71765b0842cd8303a26e2897f5107ac9a959a6ca /plugins/UserCountryMap | |
parent | 0168565eed0aaa2339314ffe1903aea7e93cc2d9 (diff) |
Use showRawMetrics when getting city data since city data is aggregated manually in JS.
Diffstat (limited to 'plugins/UserCountryMap')
-rw-r--r-- | plugins/UserCountryMap/javascripts/visitor-map.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/UserCountryMap/javascripts/visitor-map.js b/plugins/UserCountryMap/javascripts/visitor-map.js index 212ef5ec14..4c506cecbc 100644 --- a/plugins/UserCountryMap/javascripts/visitor-map.js +++ b/plugins/UserCountryMap/javascripts/visitor-map.js @@ -97,7 +97,8 @@ apiAction: action, filter_limit: -1, limit: -1, - format_metrics: 0 + format_metrics: 0, + showRawMetrics: 1 }); if (countryFilter) { $.extend(params, { @@ -647,7 +648,7 @@ $.each(groups, function (g_id, group) { var apv = group.nb_actions / group.nb_visits, ats = group.sum_visit_length / group.nb_visits, - br = group.bounce_rate; + br = group.bounce_count / group.nb_visits; group['nb_actions_per_visit'] = apv; group['avg_time_on_site'] = new Date(0, 0, 0, ats / 3600, ats % 3600 / 60, ats % 60).toLocaleTimeString(); group['bounce_rate'] = (br % 1 !== 0 ? br.toFixed(1) : br) + "%"; |