{% import '@PimcorePersonalization/Targeting/toolbar/macros.html.twig' as toolbar %} {% block toolbar %} {% apply spaceless %}
{{ include('@PimcorePersonalization/Profiler/target.svg.twig') }} {{ include('@PimcorePersonalization/Targeting/toolbar/icon/toolbar-collapse.svg.twig') }}
{{ include('@PimcorePersonalization/Targeting/toolbar/icon/close.svg.twig') }} {{ include('@PimcorePersonalization/Targeting/toolbar/icon/advanced_features.svg.twig') }}

Targeting

{% block overview %} {% block overviewTable %} {% if documentTargetGroup is not null %} {% endif %} {% endblock %}
Document Target Group {{ toolbar.label(documentTargetGroup.name, ['_ptgtb__label--target-group']) }}
Visitor ID {% if visitorInfo.visitorId is not empty %} {{ toolbar.label(visitorInfo.visitorId) }} {% else %} - {% endif %}
Session ID {% if visitorInfo.sessionId is not empty %} {{ toolbar.label(visitorInfo.sessionId) }} {% else %} - {% endif %}
{% endblock %} {% block rules %} {% if rules is not empty %}

Matched Rules {{ toolbar.label(rules|length) }}

{% block rulesTable %} {% for rule in rules %} {% set rowIdentifier = toolbar.identifier(token, 'rules-details', loop.index) %} {% endfor %} {% endblock %}
{{ toolbar.trigger_label(rule.name, '#' ~ rowIdentifier, ['_ptgtb__label--rule']) }}
{{ toolbar.metric('Rule ID', rule.id) }} {% if rule.duration is not null %} {{ toolbar.metric('Duration', rule.duration|round(2) ~ ' ms') }} {% endif %} {{ toolbar.metric('Conditions', rule.conditions|length) }} {{ toolbar.metric('Actions', rule.actions|length) }}
{% endif %} {% endblock %} {% block targetGroups %} {% if targetGroups is not empty %}

Assigned Target Groups {{ toolbar.label(targetGroups|length) }}

{% block targetGroupsTable %} {% for targetGroup in targetGroups %} {% set rowIdentifier = toolbar.identifier(token, 'target-groups-details', loop.index) %} {% endfor %} {% endblock %}
{{ toolbar.trigger_label(targetGroup.name, '#' ~ rowIdentifier, ['_ptgtb__label--target-group']) }} {{ toolbar.label(targetGroup.count) }}
{{ toolbar.metric('Target Group ID', targetGroup.id) }} {{ toolbar.metric('Threshold', targetGroup.threshold) }}
{% endif %} {% endblock %} {% block documentTargetGroups %} {% if documentTargetGroups is not empty %}

Document Target Groups {{ toolbar.label(documentTargetGroups|length) }}

{% block documentTargetGroupsTable %} {% for assignment in documentTargetGroups %} {% set rowIdentifier = toolbar.identifier(token, 'document-target-groups-details', loop.index) %} {% endfor %} {% endblock %}
{{ toolbar.trigger_label(assignment.document.path|u.truncate(32), '#' ~ rowIdentifier, [], { title: assignment.document.path }) }} {{ toolbar.label(assignment.targetGroup.name, ['_ptgtb__label--target-group']) }}
{{ toolbar.metric('Document ID', assignment.document.id) }} {{ toolbar.metric('Target Group ID', assignment.targetGroup.id) }}
{% endif %} {% endblock %}
{% block advanced %} {% block visitorInfo %}

Visitor Info

{{ pimcore_dump({ data: visitorInfo.data, actions: visitorInfo.actions }) }}
{% endblock %} {% block storage %}

Storage

{% block visitorStorage %}

Visitor Storage

{{ pimcore_dump(storage.visitor) }}
{% endblock %} {% block sessionStorage %}

Session Storage

{{ pimcore_dump(storage.session) }}
{% endblock %}
{% endblock %} {% endblock %}
{% block overrides %}

Overrides

{% block overrideForm %} {% form_theme overrideForm 'form_div_layout.html.twig' %} {{ form_start(overrideForm, { attr: { id: toolbar.identifier(token, 'overrides'), class: '_ptgtb__override-form' }}) }} {{ form_widget(overrideForm) }}
{{ form_end(overrideForm) }} {% endblock %} {% endblock %}
{% endapply %} {% endblock %} {% block css %} {%- apply spaceless -%} {%- endapply -%} {% endblock %} {% block js %} {{ include('@PimcorePersonalization/Targeting/toolbar/toolbar_js.html.twig') }} {% endblock %}