gundalow
(Gundalow Barker)
July 22, 2025, 7:07am
1
Hi folks,
Firstly, thanks for the great framework.
I’ve created
v4 ← gundalow:matomo
opened 10:00PM - 18 Jul 25 UTC
Add support for [Matomo](https://matomo.org/), which is an open-source analytics… platform.
This appears to work, though this isn't my area of expertise.
I started by looking at the [Matomo tracking guide](https://developer.matomo.org/guides/tracking-javascript-guide), then spent a while fighting the SPA. Read the [Single-Page Application/Progressive Web App Tracking
](https://developer.matomo.org/guides/spa-tracking).
Found @MarcRez33 [PR from 2024](https://github.com/jackyzha0/quartz/pull/1384), which got me most of the way, seems like just need `setCustomUrl', location.pathname` (rather than `window.location.pathname`)
I'm going to leave this is draft mode, so it doesn't accidentally get merged. I welcome any feedback on how to do this better. Though I'm going to test it a bit more.
# Questions
1. Is this the correct approach
2. Do you want another PR to sort the list of [analytics providers](https://github.com/jackyzha0/quartz/blob/059848f8b0ae36e3a8fb4bd6fd3cda8531e5dce7/docs/configuration.md?plain=1#L27-L36) documentation
# Testing done
1. [Reviewed docs](https://gundalow-matomo.quartz-1h4.pages.dev/configuration)
While this seems to work, I’d appreciate it if anybody had time for a quick review, as I’ve not written any Javascript before, and check I’m passing data to Matomo correctly. Thanks
Thanks