[IMP] odoo_theme: allow to add plausible script

export PLAUSIBLE_SCRIPT=https://plausible.io/js/script.js
export PLAUSIBLE_DOMAIN=yourdomain.com

closes odoo/documentation#1955

X-original-commit: 4c526eb02f
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
Signed-off-by: Jérémy Kersten <jke@odoo.com>
This commit is contained in:
Jeremy Kersten
2022-05-06 15:03:06 +00:00
parent 663157179f
commit 8b5db69cae
2 changed files with 5 additions and 0 deletions
+3
View File
@@ -29,6 +29,9 @@
{%- endfor %}
{%- endif %}
{{ super() }} {# Load the scripts specified in the extensions/themes #}
{%- if plausible_script -%}
<script defer="defer" src="{{ plausible_script }}" data-domain="{{ plausible_domain }}"></script>
{%- endif -%}
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/js/bootstrap.bundle.min.js"
integrity="sha384-b5kHyXgcpbZJO/tY9Ul7kGkf1S0CWuKcCD38l8YkeH8z8QjE0GmW1gYU5S9FOnJ0"
crossorigin="anonymous"></script>