Skip to content

Add Plausible analytics - #701

Merged
ludeeus merged 4 commits into
hacs:mainfrom
mrdarrengriffin:add-plausible
Aug 6, 2026
Merged

Add Plausible analytics#701
ludeeus merged 4 commits into
hacs:mainfrom
mrdarrengriffin:add-plausible

Conversation

@mrdarrengriffin

@mrdarrengriffin mrdarrengriffin commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

As per the announcement from the Open Home Foundation, we are rolling out Plausible to all projects within the Open Home Foundation - https://www.openhomefoundation.org/blog/making-our-web-analytics-open-source-with-plausible/

This PR adds Plausible, some footer text and 404 page tracking

Dashboard will be visible here: https://plausible.openhomefoundation.org/hacs.xyz

Copilot AI lite review requested due to automatic review settings August 5, 2026 15:43

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR integrates Plausible analytics into the documentation site and adds user-facing attribution text, including a custom event for 404 page views.

Changes:

  • Injects the Plausible tracking snippet via a template override (main.html).
  • Adds an attribution paragraph in the footer “Resources” section plus styling for it.
  • Adds Plausible custom event tracking on the 404 page.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
source/overrides/partials/footer.html Adds a footer partial override (currently empty), which can affect global footer rendering.
source/overrides/partials/content.html Adds Plausible attribution text with external links in the footer section.
source/overrides/main.html Injects Plausible analytics script into the page head via extrahead.
source/overrides/404.html Tracks 404 page views via a Plausible custom event call.
source/assets/stylesheets/extra.css Styles the Plausible attribution paragraph and its links.
Suppressed comments (1)

source/overrides/partials/footer.html:2

  • The new overrides/partials/footer.html override is empty, which will replace the theme’s footer partial with no output. In MkDocs Material this typically removes the entire <footer> (including navigation/copyright) across the site. If the intent is only to add attribution text, consider removing this override; otherwise, populate it by copying the upstream theme footer partial and applying the minimal customization needed.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread source/overrides/partials/content.html Outdated
Comment thread source/overrides/main.html
Comment thread source/overrides/404.html
balloob
balloob previously approved these changes Aug 5, 2026
@balloob
balloob enabled auto-merge (squash) August 5, 2026 17:14
Comment thread source/overrides/partials/content.html Outdated
Comment thread source/overrides/main.html
Comment thread source/overrides/404.html
Comment thread source/overrides/partials/content.html Outdated
Comment thread source/assets/stylesheets/extra.css
Co-authored-by: Joakim Sørensen <joasoe@proton.me>
auto-merge was automatically disabled August 6, 2026 09:26

Head branch was pushed to by a user without write access

@mrdarrengriffin
mrdarrengriffin requested a review from ludeeus August 6, 2026 09:43
@ludeeus
ludeeus merged commit 4ceef80 into hacs:main Aug 6, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants