<%= _.isUndefined(i18n['Summary']) ? 'Summary':i18n['Summary'] %>

<% ms = stats['totalSpentTime']*1000 %> <% date = moment.utc(ms) %> <% dateMinutes = date.minutes() %> <% dateSeconds = date.seconds() %> <% dateHours = date.hours() %> <% averagePageGenerationTime = parseFloat(pageLoadAverage['averagePageGenerationTime']) %> <% formattedDate = '' %> <% if(dateHours != '00') { %> <% formattedDate += dateHours + ' '+(_.isUndefined(i18n['hours']) ? 'hours':i18n['hours']) + ' ' %> <% } %> <% if(dateMinutes != '00') { %> <% formattedDate += dateMinutes + ' '+(_.isUndefined(i18n['min']) ? 'min':i18n['min']) + ' ' %> <% } %> <% if(dateSeconds != '00') { %> <% formattedDate += dateSeconds + ' '+(_.isUndefined(i18n['sec']) ? 'sec':i18n['sec']) + ' ' %> <% } %>

<%= _.isUndefined(i18n['Spent a total of']) ? 'Spent a total of':i18n['Spent a total of'] %> <%= formattedDate %> <%= _.isUndefined(i18n['on the website, and']) ? 'on the website, and':i18n['on the website, and'] %> viewed <%= stats['viewedPages'] %> <%= (stats['viewedPages'] > 1) ? 'pages' :'page' %> in <%= stats['visitsCount'] %> <%= (stats['visitsCount'] > 1) ? 'visits' : 'visit' %>.

<%= _.isUndefined(i18n['Converted']) ? 'Converted':i18n['Converted'] %> <%= stats['convertedGoals'] %> <%= _.isUndefined(i18n['goals']) ? 'goals':i18n['goals'] %>

<%= _.isUndefined(i18n['Each page took on average']) ? 'Each page took on average':i18n['Each page took on average'] %> <%= averagePageGenerationTime.toFixed(2) %> <%= _.isUndefined(i18n['sec to load for this visitor']) ? 'sec to load for this visitor':i18n['sec to load for this visitor'] %>