feat(docs): dual-track page views to Aztec Labs Matomo with consent gating#24444
Open
critesjosh wants to merge 1 commit into
Open
feat(docs): dual-track page views to Aztec Labs Matomo with consent gating#24444critesjosh wants to merge 1 commit into
critesjosh wants to merge 1 commit into
Conversation
…ating Add the azteclabs.matomo.cloud instance (site 23) as a second tracker on the shared _paq queue via addTracker, so docs page views are sent to both the existing noirlang instance and the Aztec Labs one, with cross-domain linking across the aztec.network / noir-lang.org properties. Also add requireConsent so no tracking request fires to either instance until the user opts in via the cookie banner. Matomo persists the choice in its own cookie, so returning visitors who accepted are tracked automatically without re-prompting.
alejoamiras
approved these changes
Jul 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds the Aztec Labs Matomo instance (
azteclabs.matomo.cloud, site ID23) to the docs site as a second analytics tracker, and gates all tracking behind the existing cookie-consent banner.Change is confined to
docs/src/components/Matomo/matomo.jsx.Dual-tracking
addTrackeron the shared_paqqueue, so every page view is sent to both the existingnoirlang.matomo.cloud(site 6) tracker and the new azteclabs (site 23) one.setDomains+enableCrossDomainLinking+enableLinkTrackingfor cross-domain tracking across the aztec.network / docs.aztec.network / noir-lang.org / play.aztec-labs.com / testnet.aztec.network properties.Real consent-gating
requireConsentso no tracking request fires to either instance until the user clicks "I accept cookies". This also closes a pre-existing gap where the noirlang tracker beaconed on page load regardless of consent.rememberConsentGiven/forgetConsentGivenhandlers), so returning visitors who accepted are tracked automatically without re-prompting.Testing
Verified end-to-end in a browser against a local Docusaurus dev server:
consentRequired: true), banner shown, 0 beacons to either instanceidsite=6) + azteclabs (idsite=23), each withconsent=1hasRememberedConsent: true, page view auto-tracked to both, no re-promptforgetConsentGivenleaves consent unremembered, so nothing tracks