Skip to content

feat(site): add the Matomo and Lead Forensics trackers - #206

Merged
nicolasbisurgi merged 2 commits into
masterfrom
feat/site-trackers
Oct 26, 2026
Merged

nicolasbisurgi merged 2 commits into
masterfrom
feat/site-trackers

Conversation

@nicolasbisurgi

Copy link
Copy Markdown
Collaborator

Adds the Matomo (site ID 11, shared with code.cubewise.com and OptimusPy, split by page path) and Lead Forensics trackers to the landing page and the docs.

Changes

  • Landing page (site/homepage/index.html): both snippets, unchanged, at the end of <head>. The app has no client-side router, so the stock page view on load covers it.
  • Docs (overrides/main.html, mkdocs.yml): a Material theme override. navigation.instant swaps pages without a reload, so the stock snippet would record only the first page of each visit. The loader in extrahead only configures the tracker. The page view is pushed from Material's document$, which fires on the first load and on every instant navigation, with the referrer, URL and title set each time.
  • CI (deploy-site.yml): overrides/** added to the push and pull_request paths, so a change to the override alone still redeploys.

Verification

  • npm run build: dist/index.html contains both tracker URLs.
  • mkdocs build: trackers on all 18 pages, and the document$ subscription comes after Material's bundle.
  • Headless Chrome on a copy with stubbed trackers (no real hits sent): docs home, then three in-site clicks, gave exactly one page view per page and one full document load in total.

Not in this PR

Neither tracker asks for cookie consent, and the site has no consent banner. That's being followed up separately.

🤖 Generated with Claude Code

nicolasbisurgi and others added 2 commits October 26, 2026 17:07
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@nicolasbisurgi nicolasbisurgi self-assigned this Oct 26, 2026
@nicolasbisurgi nicolasbisurgi added the documentation Used for documentation only issues label Oct 26, 2026
@nicolasbisurgi
nicolasbisurgi merged commit 5c6c412 into master Oct 26, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Used for documentation only issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant