Merge pull request 'feat(Plausible): Update import script' (#26) from plausible into main

Reviewed-on: https://git.weko.io/resilien/resilien.fr/pulls/26
This commit is contained in:
Simon 2022-12-13 09:38:57 +01:00
commit 651afd0377
1 changed files with 1 additions and 1 deletions

View File

@ -16,6 +16,6 @@
</ul>
</footer>
{{ if or (eq hugo.Environment "production") (eq hugo.Environment "staging") }}
<script defer data-api="/api/event" data-domain="{{if eq hugo.Environment "staging" }}staging.{{ end }}resilien.fr" src="/js/script.js"></script>
<script defer data-domain="{{if eq hugo.Environment "staging" }}staging.{{ end }}resilien.fr" src="https://analytiques.resilien.cloud/js/plausible.js"></script>
<script>window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }</script>
{{ end }}