1
0
قرینه از https://github.com/matomo-org/matomo.git synced 2025-08-21 22:47:43 +00:00
Files
matomo/plugins/Referrers/templates/_actionTooltip.twig
Stefan Giehl e130c1e5d1 Display conversion attribution in visitlog (tooltip) (#22364)
* Show attribution info for conversions in visits log

* Updates expected test files

* submodule update

* apply review feedback

* submodule update
2024-07-02 23:20:37 +02:00

20 خطوط
1.1 KiB
Twig

{{ 'Referrers_ConversionAttribution'|translate }}
{% if action.referrerType == 'website' %}
{{ 'Referrers_ColumnWebsite'|translate }}: {{ action.referrerName|rawSafeDecoded }}
{% endif %}
{% if action.referrerType == 'campaign' %}
{{ 'Referrers_ColumnCampaign'|translate }}: {{ action.referrerName|rawSafeDecoded }}
{%- if action.referrerKeyword is not empty %} - {{ action.referrerKeyword }}{% endif %}
{% endif %}
{% if action.referrerType == 'social' %}
{{ 'Referrers_ColumnSocial'|translate }}: {{ action.referrerName|rawSafeDecoded }}
{% endif %}
{% if action.referrerType == 'search' %}
{%- set keywordNotDefined = 'General_NotDefined'|translate('General_ColumnKeyword'|translate) -%}
{%- set showKeyword = action.referrerKeyword is not empty and action.referrerKeyword != keywordNotDefined -%}
{{ 'Referrers_ColumnSearchEngine'|translate }}: {{ action.referrerName|rawSafeDecoded }}
{%- if showKeyword %}, {{ 'Referrers_Keywords'|translate }}: "{{ action.referrerKeyword|rawSafeDecoded }}"{% endif %}
{% endif %}
{% if action.referrerType == 'direct' %}{{ 'Referrers_DirectEntry'|translate }}{% endif %}