diff options
author | Dillon <dillonzq@outlook.com> | 2022-05-18 20:30:32 +0300 |
---|---|---|
committer | Dillon <dillonzq@outlook.com> | 2022-05-18 20:30:32 +0300 |
commit | a8ecc6de4e22f214b994271ef8745f61597dee4c (patch) | |
tree | 74ed405be0fd268e34fb9cf69363137cdd3cad5d | |
parent | b4f8fa4ee33a4a9ba1e6227fabd982b5b30b8139 (diff) |
chore: use plugin/script.html for Plausible Analytics script
-rw-r--r-- | layouts/partials/plugin/analytics.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/plugin/analytics.html b/layouts/partials/plugin/analytics.html index 944d3d6a..2c1f4969 100644 --- a/layouts/partials/plugin/analytics.html +++ b/layouts/partials/plugin/analytics.html @@ -22,6 +22,6 @@ {{- /* Plausible Analytics */ -}} {{- with $analytics.plausible.dataDomain -}} - <script async defer data-domain="{{ . }}" src="https://plausible.io/js/plausible.js"></script> + {{- dict "Source" "https://plausible.io/js/plausible.js" "Async" true "Defer" true "Attr" ($analytics.plausible.dataDomain | printf `data-domain="%v"`) | partial "plugin/script.html" -}} {{- end -}} {{- end -}} |