{% extends "sites_conformes_core/base.html" %} {% load wagtail_dsfr_tags %} {# PostHog loader + init, in code rather than in Réglages → Scripts: the config (first-party /ph proxy path, EU UI host) must not drift with content syncs. POSTHOG_KEY empty = no analytics (dev, tests). #} {% block tracking %} {{ block.super }} {% settings_value "POSTHOG_KEY" as posthog_key %} {% if posthog_key %} {% endif %} {% endblock tracking %} {% block body_tracking_scripts %} {{ block.super }} {% if request.user.is_authenticated %} {% endif %} {% endblock body_tracking_scripts %}