blob: cc097008691291ba3fb398cb5c01be8061271a5e (
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
|
{% set visitorHasSomeEcommerceActivity %}0{% endset %}
{% for action in actionDetails %}
{% set customVariablesTooltip %}
{% if action.customVariables is defined %}
{{ 'CustomVariables_CustomVariables'|translate }}
{% for id,customVariable in action.customVariables %}
{% set name = 'customVariablePageName' ~ id %}
{% set value = 'customVariablePageValue' ~ id %}
- {{ customVariable[name]|raw }} {% if customVariable[value]|length > 0 %} = {{ customVariable[value]|raw }}{% endif %}
{% endfor %}
{% endif %}
{% endset %}
{% if not javascriptVariablesToSet.filterEcommerce or action.type == 'ecommerceOrder' or action.type == 'ecommerceAbandonedCart' %}
<li class="{% if action.goalName is defined %}goal{% else %}action{% endif %}"
title="{{ action.serverTimePretty }}{% if action.url is defined and action.url|trim|length %}
{{ action.url }}{% endif %}{% if customVariablesTooltip|trim|length %}
{{ customVariablesTooltip|trim }}{% endif -%}
{%- if action.timeSpentPretty is defined %}
{{ 'General_TimeOnPage'|translate }}: {{ action.timeSpentPretty|raw }}{% endif -%}
{%- if action.generationTime is defined %}
{{ 'General_ColumnGenerationTime'|translate }}: {{ action.generationTime|raw }}{% endif %}">
{% if action.type == 'ecommerceOrder' or action.type == 'ecommerceAbandonedCart' %}
{# Ecommerce Abandoned Cart / Ecommerce Order #}
<img src="{{ action.icon }}"/>
{% if action.type == 'ecommerceOrder' %}
{% set visitorHasSomeEcommerceActivity %}1{% endset %}
<strong>{{ 'Goals_EcommerceOrder'|translate }}</strong>
<span style='color:#666;'>({{ action.orderId }})</span>
{% else %}
<strong>{{'Goals_AbandonedCart'|translate}}</strong>
{# TODO: would be nice to have the icons Orders / Cart in the ecommerce log footer #}
{% if javascriptVariablesToSet.filterEcommerce == 2 %}
{% set visitorHasSomeEcommerceActivity %}1{% endset %}
{% endif %}
{% endif %}
<p>
<span {% if not isWidget %}style='margin-left:20px;'{% endif %}>
{% if action.type == 'ecommerceOrder' %}
<abbr title="
{{ 'General_ColumnRevenue'|translate }}: {{ action.revenue|money(javascriptVariablesToSet.idSite)|raw }}
{% if action.revenueSubTotal is not empty %} - {{ 'General_Subtotal'|translate }}: {{ action.revenueSubTotal|money(javascriptVariablesToSet.idSite)|raw }}{% endif %}
{% if action.revenueTax is not empty %} - {{ 'General_Tax'|translate }}: {{ action.revenueTax|money(javascriptVariablesToSet.idSite)|raw }}{% endif %}
{% if action.revenueShipping is not empty %} - {{ 'General_Shipping'|translate }}: {{ action.revenueShipping|money(javascriptVariablesToSet.idSite)|raw }}{% endif %}
{% if action.revenueDiscount is not empty %} - {{ 'General_Discount'|translate }}: {{ action.revenueDiscount|money(javascriptVariablesToSet.idSite)|raw }}{% endif %}
">{{ 'General_ColumnRevenue'|translate }}:
{% else %}
{% set revenueLeft %}{{ 'General_ColumnRevenue'|translate }}{% endset %}
{{ 'Goals_LeftInCart'|translate(revenueLeft) }}:
{% endif %}
<strong>{{ action.revenue|money(javascriptVariablesToSet.idSite)|raw }}</strong>
{% if action.type == 'ecommerceOrder' %}
</abbr>
{% endif %}, {{ 'General_Quantity'|translate }}: {{ action.items }}
{# Ecommerce items in Cart/Order #}
{% if action.itemDetails is not empty %}
<ul style='list-style:square;margin-left:{% if isWidget %}15{% else %}50{% endif %}px;'>
{% for product in action.itemDetails %}
<li>
{{ product.itemSKU }}{% if product.itemName is not empty %}: {{ product.itemName }}{% endif %}
{% if product.itemCategory is not empty %} ({{ product.itemCategory }}){% endif %}
,
{{ 'General_Quantity'|translate }}: {{ product.quantity }},
{{ 'General_Price'|translate }}: {{ product.price|money(javascriptVariablesToSet.idSite)|raw }}
</li>
{% endfor %}
</ul>
{% endif %}
</span>
</p>
{% elseif action.goalName is not defined%}
{# Page view / Download / Outlink #}
{% if action.pageTitle is defined and action.pageTitle is not empty %}
<span class="truncated-text-line">{{ action.pageTitle }}</span>
{% endif %}
{% if action.siteSearchKeyword is defined %}
{% if action.type == 'search' %}
<img src='{{ action.icon }}' title='{{ 'Actions_SubmenuSitesearch'|translate }}'>
{% endif %}
<span class="truncated-text-line">{{ action.siteSearchKeyword }}</span>
{% endif %}
{% if action.url is not empty %}
{% if action.type == 'action' and action.pageTitle is not empty %}<p>{% endif %}
{% if action.type == 'download' or action.type == 'outlink' %}
<img src='{{ action.icon }}'>
{% endif %}
<a href="{{ action.url }}" target="_blank" class="action-list-url truncated-text-line"
{% if overrideLinkStyle is not defined or overrideLinkStyle %}style="{% if action.type=='action' and action.pageTitle is not empty %}margin-left: 25px;{% endif %}text-decoration:underline;"{% endif %}>
{{ action.url }}
</a>
{% if action.type == 'action' and action.pageTitle is not empty %}</p>{% endif %}
{% elseif action.type != 'search' %}
<p>
<span style="margin-left: 25px;">{{ javascriptVariablesToSet.pageUrlNotDefined }}</span>
</p>
{% endif %}
{% else %}
{# Goal conversion #}
<img src="{{ action.icon }}" />
<strong>{{ action.goalName }}</strong>
{% if action.revenue > 0 %}, {{ 'General_ColumnRevenue'|translate }}:
<strong>{{ action.revenue|money(javascriptVariablesToSet.idSite)|raw }}</strong>
{% endif %}
{% endif %}
</li>
{% endif %}
{% endfor %}
|