Add Plausible Analytics support
This commit is contained in:
parent
0d1e5b1f7d
commit
d0ed69f8aa
|
@ -295,3 +295,6 @@ DISABLE_ONBOARDING = "DISABLE_ONBOARDING" in os.environ
|
|||
|
||||
HCAPTCHA_SECRET = os.environ.get("HCAPTCHA_SECRET")
|
||||
HCAPTCHA_SITEKEY = os.environ.get("HCAPTCHA_SITEKEY")
|
||||
|
||||
PLAUSIBLE_HOST = os.environ.get("PLAUSIBLE_HOST")
|
||||
PLAUSIBLE_DOMAIN = os.environ.get("PLAUSIBLE_DOMAIN")
|
||||
|
|
|
@ -150,3 +150,7 @@ DISABLE_ONBOARDING=true
|
|||
# set the 2 below variables to enable hCaptcha
|
||||
# HCAPTCHA_SECRET=very_long_string
|
||||
# HCAPTCHA_SITEKEY=00000000-0000-0000-0000-000000000000
|
||||
|
||||
# Set the 2 below variables to enable Plausible Analytics
|
||||
# PLAUSIBLE_HOST=https://plausible.io
|
||||
# PLAUSIBLE_DOMAIN=yourdomain.com
|
|
@ -68,6 +68,12 @@
|
|||
<script
|
||||
src="{{ url_for('static', filename='node_modules/multiple-select/dist/multiple-select.min.js') }}"></script>
|
||||
|
||||
|
||||
{% if PLAUSIBLE_HOST and PLAUSIBLE_DOMAIN %}
|
||||
<!-- Plausible Analytics library -->
|
||||
<script async defer data-domain=”{{PLAUSIBLE_DOMAIN}}” src=”{{PLAUSIBLE_HOST}}/js/plausible.js”></script>
|
||||
{% endif %}
|
||||
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='darkmode.css') }}?v={{ VERSION }}">
|
||||
<link rel="stylesheet" type="text/css" href="/static/style.css?v={{ VERSION }}">
|
||||
|
||||
|
|
Loading…
Reference in New Issue