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

[FEATURE] Support for Plausible Analytics #112

@fmueller

Description

@fmueller

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions