VSB-TUO/Disable matomo statistics fix - #1006
Merged
milanmajchrak merged 2 commits intoSep 23, 2025
Merged
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR implements an on/off switch for Matomo statistics tracking by adding an enabled configuration property that defaults to false. The change allows developers and administrators to easily disable Matomo tracking without removing the configuration.
- Added
enabledboolean property to MatomoConfig class - Updated configuration files to include the new
enabledproperty (defaulting to false) - Modified the addMatomoStatistics function to check the enabled flag before initializing tracking
- Added documentation explaining how to enable/disable Matomo tracking
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| src/main.browser.ts | Added early return when Matomo is disabled |
| src/config/matomo-config.ts | Added enabled property to MatomoConfig class |
| src/config/default-app-config.ts | Set default enabled value to false |
| src/environments/environment.test.ts | Set enabled to false for test environment |
| config/config.example.yml | Added enabled property to example config |
| MATOMO_CONFIGURATION.md | Added documentation for enabling/disabling Matomo |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
There was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 6 out of 6 changed files in this pull request and generated no new comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Closed
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.
Problem description
Turn off matomo statistics.