Skip to content

Add Plausible for docs metrics #120074

Description

@hugovk

We're going to continue using Plausible for https://docs.python.org stats. We'll start with a trial again (because it's now hosted under a PSF account), and after that the Steering Council said it can be covered by their budget.

(Here's data from the trial last July: https://github.com/hugovk/plausible-stats)

During the trial, @JulienPalard suggested in #107136 that the loading of the JavaScript snippet should be:

implemented on docsbuild-scripts, or at least be made optional (using an environment flag?) and disabled by default so we could enable it in docsbuild-script.

I think an env var sounds the best option. That way we can define both it in docsbuild-script and also Read the Docs, which will enable a smoother migration (re: python/docs-community#5).

Here's what the plain JS snippet looks like in the template: #119977

@JulienPalard What sort of changes do we need to #119977 and https://github.com/python/docsbuild-scripts to put it behind an env var?

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dir

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions