Skip to content
This repository has been archived by the owner on Dec 20, 2021. It is now read-only.

[FEATURE] Support for Plausible Analytics #112

Open
fmueller opened this issue Jun 5, 2021 · 0 comments
Open

[FEATURE] Support for Plausible Analytics #112

fmueller opened this issue Jun 5, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@fmueller
Copy link

fmueller commented Jun 5, 2021

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 fmueller added the enhancement New feature or request label Jun 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant