{% extends '@WebProfiler/Profiler/layout.html.twig' %}
{% block toolbar %}
{% if collector.hasData %}
{% set icon %}
{{ include("@PimcorePersonalization/Profiler/target.svg.twig") }}
{% if collector.documentTargetGroup is not null %}
{{ collector.documentTargetGroup.name }}
{% endif %}
{% endset %}
{% set text %}
{% endset %}
{{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: true }) }}
{% endif %}
{% endblock %}
{% block menu %}
{{ include("@PimcorePersonalization/Profiler/target.svg.twig") }}
Targeting
{% endblock %}
{% block panel %}
Targeting
{% if not collector.hasData %}
No targeting data available.
{% else %}
{% if collector.documentTargetGroup is not null %}
{{ collector.documentTargetGroup.name }}
Document Target Group
{% endif %}
{{ collector.rules|length }}
Matched Rules
{{ collector.targetGroups|length }}
Assigned Target Groups
Results
Matched Targeting Rules
| ID |
Name |
Duration |
Conditions |
Actions |
{% for rule in collector.rules %}
| {{ rule.id }} |
{{ rule.name }} |
{{ rule.duration|round(2) }} ms |
{{ profiler_dump(rule.conditions, maxDepth=maxDepth|default(0)) }} |
{{ profiler_dump(rule.actions, maxDepth=maxDepth|default(0)) }} |
{% else %}
| (no rules matched) |
{% endfor %}
Assigned Target Groups
| ID |
Name |
Threshold |
Assignment Count |
{% for targetGroup in collector.targetGroups %}
| {{ targetGroup.id }} |
{{ targetGroup.name }} |
{{ targetGroup.threshold }} |
{{ targetGroup.count }} |
{% else %}
| (no target group assignments) |
{% endfor %}
Target Groups assigned to Documents
| Document ID |
Path |
Target Group ID |
Name |
{% for assignment in collector.documentTargetGroups %}
| {{ assignment.document.id }} |
{{ assignment.document.path }} |
{{ assignment.targetGroup.id }} |
{{ assignment.targetGroup.name }} |
{% else %}
| (no target groups were assigned to documents) |
{% endfor %}
Visitor Info
Visitor Info
{{ include('@PimcoreCore/Profiler/key_value_table.html.twig', { data: collector.visitorInfo }, with_context = false) }}
Storage
Session Storage
{{ include('@PimcoreCore/Profiler/key_value_table.html.twig', { data: collector.storage.session }, with_context = false) }}
Visitor Storage
{{ include('@PimcoreCore/Profiler/key_value_table.html.twig', { data: collector.storage.visitor }, with_context = false) }}
{% endif %}
{% endblock %}