Plausible Analytics implementation for Material for MkDocs
Project description
Plausible Analytics for Material
Plausible Analytics is a simple, open-source, lightweight and privacy-friendly web analytics alternative to Google Analytics.
This plugin implements Plausible Analytics support in Material for MkDocs.
Quick start
-
Install the plugin:
pip install material-plausible-plugin
-
Add the following lines to
mkdocs.yml
:plugins: - material-plausible extra: analytics: provider: plausible domain: example.com #: If using custom domain proxy or self-hosting Plausible, #: uncomment and specify script path here: # src: "https://plausible.example.com/js/plausible.js"
Feedback widget
To enable the feedback widget, add the following lines inside the extra.analytics
block:
feedback:
title: Was this page helpful?
ratings:
- icon: material/emoticon-happy-outline
name: This page was helpful
data: good
note: >-
Thanks for your feedback!
- icon: material/emoticon-sad-outline
name: This page could be improved
data: bad
note: >-
Thanks for your feedback! Help us improve this page by
using our <a href="..." target="_blank" rel="noopener">feedback form</a>.
Then in your Plausible account, go to your website's settings and visit the
Goals section. For each rating defined, click on the + Add goal button,
select Custom event as the goal trigger and enter Feedback: {rating data value}
.
For example, if you have two ratings – good
and bad
, add Feedback: good
and Feedback: bad
goals.
Ratings will be shown in the Goal Conversions section at the very bottom of the page, as soon as any are available:
You can click on a specific “goal” to filter your dashboard by it. For example, if you filter by the Feedback: bad
goal, you can see which pages need the most attention in the Top Pages section.
Site search
You can track site search usage, too. Enable the search
plugin, then in the
Goals section, set up a goal named Search
. On your statistics page, you
can click it in the goals list to see what terms your users are searching for:
License
material-plausible-plugin
is distributed under the terms of the ISC license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file material_plausible_plugin-0.2.0.tar.gz
.
File metadata
- Download URL: material_plausible_plugin-0.2.0.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9416d6313ff9ddeec25e14e9c4baac1341511263706a5997bd714d552992d752 |
|
MD5 | 4e2512e68f2d6ac4e3315787196c3c77 |
|
BLAKE2b-256 | 465de8ed0af98010e8ffc550c6c6f8c136643ba94745f61228f752fa74367f7b |
File details
Details for the file material_plausible_plugin-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: material_plausible_plugin-0.2.0-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7dc866b358475d940c5c61f56f86c400b9c1e73ffa2b06819207df38f34fcf4 |
|
MD5 | 436b7794e3690baa40e0414bc48f6c85 |
|
BLAKE2b-256 | 489d797d595dc57bbcb6284584ca7e228ac54b421aa1e864cec15d0f78e02f4b |