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" #: If you’re using the privacy plugin or hosting the script #: on another domain, uncomment and specify API path here: # api: "https://plausible.example.com/api/event"
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
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file material_plausible_plugin-0.3.0.tar.gz.
File metadata
- Download URL: material_plausible_plugin-0.3.0.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.1 CPython/3.12.3 Darwin/23.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
31c872608bfa4e94ef05c128f7bf1e476c55b0576ba418a983977a75216d10cc
|
|
| MD5 |
e05ee8bd371b0ebce1c451147f6b9651
|
|
| BLAKE2b-256 |
27e673f7206cfbbcfaf083466ecc5f164a4742111beecfe2d5d87f8273e1800e
|
File details
Details for the file material_plausible_plugin-0.3.0-py3-none-any.whl.
File metadata
- Download URL: material_plausible_plugin-0.3.0-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.1 CPython/3.12.3 Darwin/23.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4e1cbaf0eef86dbd34fafa2f25830960416c989f80e0b1d1fabceed6cf6b40aa
|
|
| MD5 |
fc109aeedb547de9e1adf0ab86c25dea
|
|
| BLAKE2b-256 |
3242097a9eee92b2b96979823ae55b2b42fba590f79f979a0b24138db628fac4
|