{# templates/_tracking.html.twig (exemple) #} {% if app.request.pathinfo matches '/admin/' %} {# Pas de tracking en admin #} {% else %} {% endif %}