Skip to content

Commit

Permalink
Add Plausible API from the production server
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustry committed Apr 26, 2024
1 parent 91759e6 commit e9dd7b1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions source/_template/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@
{%- if outdated %}
<meta name="robots" content="noindex,follow">
{%- endif %}
{% if plausible_url and plausible_domain %}
<script defer data-domain="{{ plausible_domain }}" src="{{ plausible_url }}"></script>
{% endif %}
{% endblock %}

{% block extrabody %}
Expand Down
4 changes: 3 additions & 1 deletion source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,9 @@
# When a LWC version reaches the end of life, set this to True to show an information
# message on the top of the page.
'outdated': False,
'lizmap_versions': lizmap_versions
'lizmap_versions': lizmap_versions,
'plausible_domain': 'docs.lizmap.com',
'plausible_url': 'https://analytics.3liz.com/js/script.js',
}

html_style = 'css/custom.css'
Expand Down

0 comments on commit e9dd7b1

Please sign in to comment.