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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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