feat(docs): enhance Matomo analytics tracking - #36743
Merged
Merged
Conversation
Add comprehensive tracking features to improve analytics data: - **Site search tracking**: Track Algolia search queries with result counts - **Download tracking**: Track downloads of common file types (PDF, ZIP, etc.) - **Event tracking**: Track user interactions including: - External link clicks with domain categorization (GitHub, Slack, etc.) - CTA button clicks (Get Started buttons) - Video plays on homepage - **Outbound link categorization**: Better insight into which external resources users visit most These improvements will provide better visibility into user behavior and help identify the most valuable content and resources. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Contributor
Code Review Agent Run #942b84Actionable Suggestions - 0Additional Suggestions - 1
Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
This comment was marked as outdated.
This comment was marked as outdated.
Include 127.0.0.1, ::1, and 0.0.0.0 in addition to localhost to prevent polluting analytics from local development sessions. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Pass results.length directly instead of results.length || false so Matomo correctly tracks searches with zero results. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Store handler function references when adding event listeners so they can be properly removed during cleanup, preventing memory leaks and duplicate tracking. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Replace hardcoded vendor categories with hostname-based tracking to maintain ASF vendor neutrality. All external links are now categorized by their domain (e.g., github.com, stackoverflow.com) without showing favoritism to any organization. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Comprehensive Matomo tracking enhancements: - Scroll depth: Track 25%, 50%, 75%, 100% milestones per page - 404 tracking: Detect and track not-found pages as Error events - Copy tracking: Track when users copy from code blocks - Custom dimensions: Track docs version and color mode preference - Color mode changes: Track when users toggle dark/light mode These additions provide deeper insight into user engagement and help identify content issues (pages users don't finish reading, broken links leading to 404s, most-copied code snippets). Note: Custom dimensions require configuration in Matomo admin (dimension IDs 1 and 2 for docs version and color mode). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Replace custom dimensions with regular events for color mode and docs version tracking - no Matomo admin config required. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
sadpandajoe
approved these changes
Dec 18, 2025
qfcwell
pushed a commit
to qfcwell/superset
that referenced
this pull request
May 12, 2026
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
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.
Summary
Comprehensive enhancement of Matomo analytics on the Superset docs site to capture richer user behavior data. This addresses the observation that our stats are lower than other ASF projects.
New Tracking Features
Implementation Details
Test plan
yarn start) and open browser consoletrackSiteSearchCode > CopyeventColor Mode Changeevent🤖 Generated with Claude Code