Skip to content

VSB-TUO/Disable matomo statistics - #1000

Closed
Paurikova2 wants to merge 11 commits into
customer/vsb-tuofrom
vsb-tuo/disable-matomo-statistic
Closed

VSB-TUO/Disable matomo statistics#1000
Paurikova2 wants to merge 11 commits into
customer/vsb-tuofrom
vsb-tuo/disable-matomo-statistic

Conversation

@Paurikova2

@Paurikova2 Paurikova2 commented Sep 19, 2025

Copy link
Copy Markdown
Phases MP MM MB MR JM Total
ETA 0 0 0 0 0 0
Developing 2 0 0 0 0 0
Review 0 0 0 0 0 0
Total - - - - - 0
ETA est. 0
ETA cust. - - - - - 0

Problem description

Disabling Matomo statistics is not enough; you also need to configure it in the backend.

@Paurikova2 Paurikova2 self-assigned this Sep 19, 2025
@Paurikova2
Paurikova2 requested a review from Copilot September 19, 2025 08:46
@Paurikova2 Paurikova2 linked an issue Sep 19, 2025 that may be closed by this pull request

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements proper configuration-based control for Matomo statistics tracking, allowing it to be completely disabled when not needed. The changes move away from runtime config fetching to compile-time environment configuration and add proper conditional logic throughout the application.

  • Adds an enabled flag to Matomo configuration that controls whether statistics tracking is initialized
  • Updates Matomo initialization to check the enabled flag before loading tracking scripts
  • Modifies the statistics component to show a disabled message when Matomo is turned off

Reviewed Changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/modules/app/browser-init.service.ts Wraps Matomo initialization in conditional check and updates API usage
src/main.browser.ts Adds environment-based Matomo enable/disable logic with debug logging
src/environments/environment.ts Adds Matomo configuration with enabled flag set to false by default
src/environments/environment.test.ts Updates test environment to include enabled flag
src/config/matomo-config.ts Adds enabled property to MatomoConfig interface
src/config/default-app-config.ts Updates default config to include enabled flag
src/app/item-page/clarin-matomo-statistics/clarin-matomo-statistics.component.ts Adds Matomo enabled check to prevent statistics fetching when disabled
src/app/item-page/clarin-matomo-statistics/clarin-matomo-statistics.component.html Adds conditional display for disabled Matomo message
config/config.example.yml Updates example config to include enabled flag
MATOMO_CONFIGURATION.md Adds documentation for Matomo configuration

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread src/main.browser.ts Outdated
Comment thread src/main.browser.ts Outdated
@Paurikova2
Paurikova2 requested a review from Copilot September 19, 2025 10:35

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 10 out of 10 changed files in this pull request and generated 8 comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread src/main.browser.ts Outdated
Comment thread src/modules/app/browser-init.service.ts Outdated
Comment thread src/modules/app/browser-init.service.ts Outdated
Comment thread src/modules/app/browser-init.service.ts Outdated
Comment thread src/modules/app/browser-init.service.ts Outdated
Comment thread src/modules/app/browser-init.service.ts Outdated
Comment thread src/main.browser.ts Outdated
Comment thread MATOMO_CONFIGURATION.md
@Paurikova2
Paurikova2 requested a review from Copilot September 19, 2025 12:05

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread src/main.browser.ts Outdated
@Paurikova2
Paurikova2 requested a review from Copilot September 19, 2025 12:14

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread src/main.browser.ts
Comment thread src/main.browser.ts
@Paurikova2
Paurikova2 requested a review from Copilot September 19, 2025 12:37

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 10 out of 10 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.

@Paurikova2
Paurikova2 requested a review from Copilot September 19, 2025 13:17

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread src/main.browser.ts Outdated
@Paurikova2
Paurikova2 requested a review from Copilot September 19, 2025 13:35

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread src/modules/app/browser-init.service.ts
Comment thread src/main.browser.ts Outdated
@Paurikova2
Paurikova2 requested a review from Copilot September 19, 2025 14:56

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread src/app/item-page/clarin-matomo-statistics/clarin-matomo-statistics.component.ts Outdated
Comment thread src/main.browser.ts Outdated
@Paurikova2
Paurikova2 requested a review from Copilot September 23, 2025 08:34

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread src/main.browser.ts
Comment thread src/main.browser.ts
@Paurikova2

Copy link
Copy Markdown
Author

new PR with review #1006

@Paurikova2 Paurikova2 closed this Sep 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

VSB-TUO/Vypnut matomo

2 participants