From 65458d099ae4a0ddb1923b7f6e110c5c0a9d3207 Mon Sep 17 00:00:00 2001 From: Timo Besenreuther Date: Tue, 26 Mar 2013 18:16:35 +0100 Subject: refs #1700 basic performance analytics: handle server generation time for each page and page title CORE * formatting sub-second times * getColumn() method on data table array (in order to behave the same as the regular data table class) * data tables can store in their meta data, which columns are empty (this is used in order to dynamically hide the new "generation time" column) * ViewDataTable and Api.getProcessedReport act according to the empty column meta data SCHEMA * new column custom_float_1 in log_link_visit_action * new version to apply the change TRACKER * Piwik_Tracker::setGenerationTime * tracking parameter "generation_time_me" * value is stored in new custom_float_1 column * the log importer can handle a group "generation_time_micro" which can be used in a custom log format. _micro is used because apache can log the time in microseconds but piwik processes milliseconds. * note: extension of JS tracker still missing ACTIONS PLUGIN * for pages and page titles, add new columns sum_time_generation and nb_hits_with_time_generation to the blob archives * if they are set, compute avg_time_generation on the API level. if not, remove the columns and mark them as empty in the data table meta data. * show new column "avg. generation time" in the pages and page titles reports plus TESTS for everything --- lang/en.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lang') diff --git a/lang/en.php b/lang/en.php index 848dd48402..6ccc4c8bdc 100644 --- a/lang/en.php +++ b/lang/en.php @@ -180,6 +180,9 @@ $translations = array( 'General_ColumnAverageTimeOnPage' => 'Avg. time on page', 'General_TimeOnPage' => 'Time on page', 'General_ColumnAverageTimeOnPageDocumentation' => 'The average amount of time visitors spent on this page (only the page, not the entire website).', + 'General_ColumnGenerationTime' => 'Generation time', + 'General_ColumnAverageGenerationTime' => 'Avg. generation time', + 'General_ColumnAverageGenerationTimeDocumentation' => 'The average time it took to generate the page. The value has either been passed to the Java Script tracker by your website or imported from the logs.', 'General_ColumnValuePerVisit' => 'Revenue per Visit', 'General_ColumnVisitsWithConversions' => 'Visits with Conversions', 'General_VisitsWith' => 'Visits with %s', -- cgit v1.2.3