Extension:Plausible

The Plausible extension allows to use Plausible Analytics which is a simple, lightweight (&#x3C; 1 KB), open-source and privacy-friendly alternative to Google Analytics. It does not use cookies and is fully compliant with General Data Protection Regulation (GDPR), California Consumer Privacy Act (CCPA) and Privacy and Electronic Communications (EC Directive) Regulations 2003 (PECR).

See Plausible Analytics on GitHub.

Included tracking scripts
The following tracking modules can be activated by setting the provided configuration key in  to true.

Tracking Custom Events
https://github.com/plausible/docs/blob/master/docs/custom-event-goals.md

If you want to track custom event goals like button clicks or form completions, you have to trigger these custom events from your website using JavaScript.

Scripts need to be placed in  e.g..

Example: Tracking edit button clicks on SkinCitizen.

Ignoring Pages
https://github.com/plausible/docs/blob/master/docs/excluding-pages.md#common-use-cases-and-examples

By default, Plausible Analytics tracks every page you install the snippet on. If you don't want Plausible to track specific pages, do not include the snippet on those pages.

Server Side Tracking
Some events can be sent serverside without having to rely on the included plausible client script.

The following custom events can be activated:

Lua Integration
With Extension:PageViewInfo active, plausible exposes the following functions:

mw.ext.plausible.topPages
Returns the top pages and the views for the last day. The table is ordered by the number of page views, and can be iterated by using ipairs.

Example:

Alternatively this function can be called with the number of days to calculate the views over, e.g.

This is expensive as no caching is employed.

mw.ext.plausible.pageData( titles, days )
Returns the page views for the given titles over the last N days.

Example:

mw.ext.plausible.siteData( days )
Returns the site views for the given last N days.

Example: