Welcome to mirror list, hosted at ThFree Co, Russian Federation.

overview.twig « templates « Goals « plugins - github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 991663194c61df5d688ddb2c1e1feb26f17f837e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<link rel="stylesheet" type="text/css" href="plugins/Goals/stylesheets/goals.css"/>

{% include "@Goals/title_and_evolution_graph.twig" %}
{% set sum_nb_conversions=nb_conversions %}

{% for goal in goalMetrics %}
    {% set nb_conversions=goal.nb_conversions %}
    {% set nb_visits_converted=goal.nb_visits_converted %}
    {% set conversion_rate=goal.conversion_rate %}
    {% set name=goal.name %}
    <div class="goalEntry">
        <h2>
            <a href="javascript:broadcast.propagateAjax('module=Goals&action=goalReport&idGoal={{ goal.id }}')">
                {{ 'Goals_GoalX'|translate("'"+name+"'") }}
            </a>
        </h2>

        <div id='leftcolumn'>
            <div class="sparkline">{{ sparkline(goal.urlSparklineConversions) }}
                {{ 'Goals_Conversions'|translate("<strong>"+nb_conversions+"</strong>")|raw }}
                {% if goal.goalAllowMultipleConversionsPerVisit %}
                    ({{ 'VisitsSummary_NbVisits'|translate("<strong>"+nb_visits_converted+"</strong>") }})
                {% endif %}
            </div>
        </div>
        <div id='rightcolumn'>
            <div class="sparkline">{{ sparkline(goal.urlSparklineConversionRate) }}
                {{ 'Goals_ConversionRate'|translate("<strong>"+conversion_rate+"</strong>")|raw }}
            </div>
        </div>
        <br class="clear"/>
    </div>
{% endfor %}

{% if displayFullReport %}
    {% if sum_nb_conversions != 0 %}
    <h2 id='titleGoalsByDimension'>
        {% if idGoal is defined %}
            {{ 'Goals_GoalConversionsBy'|translate(goalName) }}
        {% else %}
            {{ 'Goals_ConversionsOverviewBy'|translate }}
        {% endif %}
    </h2>
    {{ goalReportsByDimension }}
    {% endif %}

    {% if userCanEditGoals %}
        {% include "@Goals/add_edit_goal.twig" %}
    {% endif %}
{% endif %}