diff options
author | Stefan Giehl <stefan@piwik.org> | 2017-09-13 18:04:39 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-13 18:04:39 +0300 |
commit | 2dcab52b5e9010a8fa34e082984f4e38f0a946ef (patch) | |
tree | 81db5e88490c813f1b0afe34cc9998ed3ce4636a /plugins | |
parent | cde16c2fa849e1b54bbcb83096b608522ba26202 (diff) |
check if goal variables are available (#12029)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Live/templates/_profileSummary.twig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/Live/templates/_profileSummary.twig b/plugins/Live/templates/_profileSummary.twig index b10c5c016b..21c01ad9e8 100644 --- a/plugins/Live/templates/_profileSummary.twig +++ b/plugins/Live/templates/_profileSummary.twig @@ -16,6 +16,7 @@ {% else %} <p>{{ 'Live_VisitSummary'|translate('<strong>' ~ visitorData.totalVisitDurationPretty ~ '</strong>', '', '', '<strong title="' ~ pageviewDetails ~ '">' ~ visitorData.totalActions, '</strong>', '<strong>' ~ visitorData.totalVisits, '</strong>')|raw }}</p> {% endif %} + {% if visitorData.totalGoalConversions is defined %} <p>{% if visitorData.totalGoalConversions %}<strong>{% endif %}{{ 'Live_ConvertedNGoals'|translate(visitorData.totalGoalConversions) }}{% if visitorData.totalGoalConversions %}</strong>{% endif %} {%- if visitorData.totalGoalConversions %} ( {%- for idGoal, totalConversions in visitorData.totalConversionsByGoal -%} @@ -23,6 +24,7 @@ {%- if not loop.first %}, {% endif -%}{{- totalConversions }} {{ goals[idGoal]['name'] -}} {%- endfor -%} ){% endif %}.</p> + {% endif %} {% if visitorData.totalSearches|default(0) %} <p> {{ 'Actions_WidgetSearchKeywords'|translate }}: |