diff --git a/.env b/.env index fd05b43d6..bb9fb97e4 100644 --- a/.env +++ b/.env @@ -34,6 +34,8 @@ PaypalBusinessAddress=sb-wbsnh1984149@business.example.com PaypalUrl=https://www.sandbox.paypal.com/cgi-bin/webscr PaypalScrPixel=https://www.sandox.paypal.com/en_US/i/scr/pixel.gif +PLAUSIBLE_SCRIPT_URL= + ###> symfony/mailer ### MAILER_DSN=smtp://mailer:25 ###< symfony/mailer ### diff --git a/config/packages/twig.yaml b/config/packages/twig.yaml index 17bdef7e8..aced5e367 100644 --- a/config/packages/twig.yaml +++ b/config/packages/twig.yaml @@ -7,6 +7,9 @@ twig: - 'ckeditor/ckeditor.html.twig' - 'tomselect/tomselect.html.twig' + globals: + plausible_script_url: '%env(default::PLAUSIBLE_SCRIPT_URL)%' + paths: '%kernel.project_dir%/build': 'build' '%kernel.project_dir%/public/images': 'images' diff --git a/templates/base.html.twig b/templates/base.html.twig index 94d84f97d..d757fefd7 100644 --- a/templates/base.html.twig +++ b/templates/base.html.twig @@ -29,6 +29,13 @@ {% block stylesheets %}{% endblock %} {% block matomo %}{% endblock %} + {% if plausible_script_url %} + + + {% endif %}