Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

* Adding meta description

 * nb_uniq_visitors not in response when period != day
  • Loading branch information...
commit 223cb888e39d22d755510e186b4411e49efc4216 1 parent 2cf9ddb
matt authored
Showing with 3 additions and 1 deletion.
  1. +2 −1  plugins/API/API.php
  2. +1 −0  plugins/CoreHome/templates/header.tpl
View
3  plugins/API/API.php
@@ -295,7 +295,7 @@ private function handleTableSimple($idSite, $period, $dataTable, $reportMetadata
);
}
- private function handleTableReport($idSite, $period, $dataTable, $reportMetadata)
+ private function handleTableReport($idSite, $period, $dataTable, &$reportMetadata)
{
// displayed columns
$columns = array_merge(
@@ -306,6 +306,7 @@ private function handleTableReport($idSite, $period, $dataTable, $reportMetadata
if($period != 'day')
{
unset($columns['nb_uniq_visitors']);
+ unset($reportMetadata['metrics']['nb_uniq_visitors']);
}
if(isset($reportMetadata['processedMetrics']))
View
1  plugins/CoreHome/templates/header.tpl
@@ -5,6 +5,7 @@
<title>Piwik &rsaquo; {'CoreHome_WebAnalyticsReports'|translate}</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Piwik {$piwik_version}" />
+<meta name="description" content="Web Analytics report for '{$siteName|escape}' - Piwik" />
<link rel="shortcut icon" href="plugins/CoreHome/templates/images/favicon.ico" />
{loadJavascriptTranslations plugins='CoreHome'}
{include file="CoreHome/templates/js_global_variables.tpl"}
Please sign in to comment.
Something went wrong with that request. Please try again.