uBlogger icon indicating copy to clipboard operation
uBlogger copied to clipboard

[FEATURE] Support for Plausible Analytics

Open fmueller opened this issue 3 years ago • 0 comments

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.

fmueller avatar Jun 05 '21 10:06 fmueller