tag-manager icon indicating copy to clipboard operation
tag-manager copied to clipboard

[Bug] "All Websites" still shown in website selector in the MTM screen

Open Stan-vw opened this issue 1 year ago • 3 comments

What happened?

In https://github.com/matomo-org/matomo/issues/20492 we removed "All websites" from the website selector. While this is correctly applied to the website selector on the dashboard, it seems not to have been applied to the every website selector everywhere on the platform. For example, I just found it in the website selector in the Matomo Tag Manager screen. Note: I haven't found other places where the change was not applied.

Screen Shot 2023-12-15 at 11 12 42 AM

What should happen?

  1. Remove "All websites" from the selector in the Tag Manager screen
  2. Check if there are any other website selectors where this change wasn't applied

How can this be reproduced?

  1. Go to Tag Manager (top right in dashboard screen)
  2. Click on the website selector
  3. All websites is at the bottom of the dropdown

Matomo version

Cloud (RC9)

PHP version

No response

Server operating system

No response

What browsers are you seeing the problem on?

No response

Computer operating system

No response

Relevant log output

No response

Validations

Stan-vw avatar Dec 14 '23 22:12 Stan-vw

This needs to be changed in tag manager itself.

sgiehl avatar Dec 15 '23 10:12 sgiehl

This needs to be changed in tag manager itself.

@sgiehl I did a search for CoreHome.SiteSelector and it looks like we have several plugins that use that component without setting the show-all-sites-item attribute to false. The plugins team will take care of those. I also noticed that plugins/CustomDimensions/templates/manage.twig uses it without setting that attribute as well. Is that intentional or will a core change be needed for that?

snake14 avatar Dec 17 '23 21:12 snake14

Makes sense to hide it for custom dimensions as well. I'll create a PR for that.

sgiehl avatar Dec 18 '23 09:12 sgiehl