uBlogger
uBlogger copied to clipboard
[FEATURE] Support for Plausible Analytics
Support for Plausible Analytics
I would like to have support for Plausible Analytics. It is a privacy-focused Google Analytics competitor; see https://plausible.io.
Useful reference
I added it in my custom forked theme by adding following code to analytics.html plugin partial:
{{- /* Plausible Analytics */ -}}
{{- if $analytics.plausible.domain -}}
<script async defer data-domain="{{ $analytics.plausible.domain }}" src="https://plausible.io/js/plausible.js"></script>
{{- end -}}
The domain parameter is configured for the respective website during Plausible Analytics onboarding. It is the value of the website you want to track.